forked from quic-go/quic-go
disable GSO and ECN on kernels older than version 5 (#4456)
This commit is contained in:
@@ -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() }
|
||||
|
||||
Reference in New Issue
Block a user