up hardcoded number of IP protocols to 3 (ICMP,TCP,UDP)

This commit is contained in:
Patricio Whittingslow
2026-04-10 19:43:08 -03:00
parent 41dffbb074
commit 68907ef898
4 changed files with 12 additions and 1 deletions
+2
View File
@@ -181,6 +181,7 @@ func newTCPStacks(t testing.TB, randSeed int64, mtu int) (s1, s2 *StackAsync, c1
MaxActiveTCPPorts: 1,
HardwareAddress: [6]byte{0xbe, 0xef, 0, 0, 0, byte1},
MTU: uint16(mtu),
ICMPQueueLimit: 2,
})
if err != nil {
t.Fatal(err)
@@ -194,6 +195,7 @@ func newTCPStacks(t testing.TB, randSeed int64, mtu int) (s1, s2 *StackAsync, c1
MaxActiveTCPPorts: 1,
HardwareAddress: [6]byte{0xbe, 0xef, 0, 0, 0, byte2},
MTU: uint16(mtu),
ICMPQueueLimit: 2,
})
if err != nil {
t.Fatal(err)