forked from quic-go/quic-go
use unix.IPV6_RECVPKTINFO and unix.IPV6_PKTINFO on all platforms (#3918)
This commit is contained in:
@@ -8,16 +8,10 @@ import (
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
const msgTypeIPTOS = unix.IP_TOS
|
||||
|
||||
const (
|
||||
ipv4RECVPKTINFO = unix.IP_PKTINFO
|
||||
ipv6RECVPKTINFO = unix.IPV6_RECVPKTINFO
|
||||
)
|
||||
|
||||
const (
|
||||
msgTypeIPTOS = unix.IP_TOS
|
||||
ipv4RECVPKTINFO = unix.IP_PKTINFO
|
||||
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
|
||||
msgTypeIPv6PKTINFO = unix.IPV6_PKTINFO
|
||||
)
|
||||
|
||||
const batchSize = 8 // needs to smaller than MaxUint8 (otherwise the type of oobConn.readPos has to be changed)
|
||||
|
||||
Reference in New Issue
Block a user