hotfix(pmtud): increase TCP margin from 150 to 300 compared to ICMP found MTU

This commit is contained in:
Quentin McGaw
2026-02-19 17:24:06 +00:00
parent c6b211ef9b
commit 007c5159f4
2 changed files with 9 additions and 5 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
package test
import "math"
import (
"fmt"
"math"
)
// MakeMTUsToTest determines a slice of MTU values to test
// between minMTU and maxMTU inclusive. It creates an MTU
@@ -17,7 +20,7 @@ func MakeMTUsToTest(minMTU, maxMTU uint32) (mtus []uint32) {
diff := maxMTU - minMTU
switch {
case minMTU > maxMTU:
panic("minMTU > maxMTU")
panic(fmt.Sprintf("minMTU %d is greater than maxMTU %d", minMTU, maxMTU))
case diff <= mtusLength:
mtus = make([]uint32, 0, diff)
for mtu := minMTU; mtu <= maxMTU; mtu++ {