rename files dealing with low level conns to sys_conn

This commit is contained in:
Marten Seemann
2022-03-27 10:03:18 +01:00
parent f68b38635a
commit 3126062aa7
14 changed files with 9 additions and 2 deletions

20
sys_conn_helper_linux.go Normal file
View File

@@ -0,0 +1,20 @@
//go:build linux
// +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
)
const batchSize = 8 // needs to smaller than MaxUint8 (otherwise the type of oobConn.readPos has to be changed)