mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-11 07:46:34 +00:00

- Updates fips-go to be the latest on cfsetup.yaml - Updates sumtype's x/tools to be latest to avoid Internal: nil pkg errors with fips.
22 lines
391 B
Go
22 lines
391 B
Go
// +build darwin
|
|
|
|
package quic
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
const msgTypeIPTOS = unix.IP_RECVTOS
|
|
|
|
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
|