disable GSO and ECN on kernels older than version 5 (#4456)

This commit is contained in:
Marten Seemann
2024-04-24 16:10:22 +02:00
committed by GitHub
parent 394aa5640d
commit 12aa63824c
5 changed files with 70 additions and 8 deletions

View File

@@ -33,4 +33,6 @@ func parseIPv4PktInfo(body []byte) (ip netip.Addr, ifIndex uint32, ok bool) {
return netip.AddrFrom4(*(*[4]byte)(body[8:12])), binary.LittleEndian.Uint32(body), true
}
func isGSOSupported(syscall.RawConn) bool { return false }
func isGSOEnabled(syscall.RawConn) bool { return false }
func isECNEnabled() bool { return !isECNDisabledUsingEnv() }