mirror of
https://github.com/soypat/lneto.git
synced 2026-09-11 17:19:30 +00:00
Maximum segment size fixes (#25)
* Fixed MSS sent in SYN and SYN-ACK * Fixed tests
This commit is contained in:
+2
-1
@@ -217,9 +217,10 @@ func newTCPStacks(t *testing.T, randSeed int64, mtu int) (s1, s2 *StackAsync, c1
|
||||
}
|
||||
|
||||
func testerFrom(t *testing.T, mtu int) *tester {
|
||||
carrierDataSize := mtu + 14
|
||||
return &tester{
|
||||
t: t,
|
||||
buf: make([]byte, mtu),
|
||||
buf: make([]byte, carrierDataSize),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user