2021-08-03 09:04:02 +00:00
|
|
|
// +build linux
|
|
|
|
|
|
|
|
package quic
|
|
|
|
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
|
|
|
|
const msgTypeIPTOS = unix.IP_TOS
|
|
|
|
|
|
|
|
const (
|
|
|
|
ipv4RECVPKTINFO = unix.IP_PKTINFO
|
|
|
|
ipv6RECVPKTINFO = unix.IPV6_RECVPKTINFO
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
|
|
|
|
msgTypeIPv6PKTINFO = unix.IPV6_PKTINFO
|
|
|
|
)
|
2021-08-27 11:26:00 +00:00
|
|
|
|
|
|
|
const batchSize = 8 // needs to smaller than MaxUint8 (otherwise the type of oobConn.readPos has to be changed)
|