status-go/vendor/github.com/lucas-clemente/quic-go/sys_conn_helper_darwin.go

22 lines
392 B
Go
Raw Normal View History

2022-04-01 16:16:46 +00:00
//go:build darwin
package quic
import "golang.org/x/sys/unix"
const msgTypeIPTOS = unix.IP_RECVTOS
2022-04-01 16:16:46 +00:00
const (
ipv4RECVPKTINFO = unix.IP_RECVPKTINFO
ipv6RECVPKTINFO = 0x3d
)
const (
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
msgTypeIPv6PKTINFO = 0x2e
)
// ReadBatch only returns a single packet on OSX,
// see https://godoc.org/golang.org/x/net/ipv4#PacketConn.ReadBatch.
const batchSize = 1