gofmt: ran gofmt because noticed weird diffs in last commit, seemed OK though

This commit is contained in:
Patricio Whittingslow
2026-02-28 17:47:11 -03:00
parent f6e7801d8c
commit 02b4e71c2a
8 changed files with 19 additions and 21 deletions
+8 -8
View File
@@ -16,14 +16,14 @@ var (
errDropSegment error = lneto.ErrPacketDrop
errWindowTooLarge = errors.New("invalid window size > 2**16")
errBufferTooSmall error = lneto.ErrShortBuffer
errNeedClosedTCBToOpen = errors.New("need closed TCB to call open")
errInvalidState = errors.New("invalid state")
errConnNotExist = errors.New("connection does not exist")
errConnectionClosing = errors.New("connection closing")
errExpectedSYN = errors.New("seqs:expected SYN")
errBadSegack = errors.New("seqs:bad segack")
errFinwaitExpectedACK = errors.New("seqs:finwait1 expected ACK")
errBufferTooSmall error = lneto.ErrShortBuffer
errNeedClosedTCBToOpen = errors.New("need closed TCB to call open")
errInvalidState = errors.New("invalid state")
errConnNotExist = errors.New("connection does not exist")
errConnectionClosing = errors.New("connection closing")
errExpectedSYN = errors.New("seqs:expected SYN")
errBadSegack = errors.New("seqs:bad segack")
errFinwaitExpectedACK = errors.New("seqs:finwait1 expected ACK")
errWindowOverflow = newRejectErr("wnd > 2**16")
errSeqNotInWindow = newRejectErr("seq not in snd/rcv.wnd")
-1
View File
@@ -177,7 +177,6 @@ func (tfrm Frame) String() string {
// Validation API
//
// func (tfrm Frame) Validate(v *lneto.Validator) {
// tfrm.ValidateSize(v)
// tfrm.ValidateExceptCRC(v)
+2 -2
View File
@@ -214,7 +214,7 @@ func TestWindowReject_ChallengeACK(t *testing.T) {
t.Run("SeqNotInWindow", func(t *testing.T) {
tcb := setup()
retransmit := Segment{
SEQ: issB, // Before rcv.NXT (issB+512).
SEQ: issB, // Before rcv.NXT (issB+512).
ACK: issA,
Flags: FlagACK,
WND: 64240,
@@ -237,7 +237,7 @@ func TestWindowReject_ChallengeACK(t *testing.T) {
t.Run("LastNotInWindow", func(t *testing.T) {
tcb := setup()
seg := Segment{
SEQ: issB + 512, // At rcv.NXT (in window).
SEQ: issB + 512, // At rcv.NXT (in window).
ACK: issA,
Flags: FlagACK,
WND: 64240,