2022-04-01 16:16:46 +00:00
|
|
|
//go:build linux
|
|
|
|
// +build linux
|
|
|
|
|
|
|
|
package quic
|
|
|
|
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
|
2022-08-19 16:34:07 +00:00
|
|
|
const msgTypeIPTOS = unix.IP_TOS
|
2022-04-01 16:16:46 +00:00
|
|
|
|
|
|
|
const (
|
|
|
|
ipv4RECVPKTINFO = unix.IP_PKTINFO
|
|
|
|
ipv6RECVPKTINFO = unix.IPV6_RECVPKTINFO
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
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)
|