simplify syscall consts used for requesting / parsing IPv4 packet info (#3919)

This commit is contained in:
Marten Seemann
2023-06-26 10:39:47 +02:00
committed by GitHub
parent 4b0ca320a3
commit d361637419
4 changed files with 8 additions and 11 deletions

View File

@@ -5,9 +5,8 @@ package quic
import "golang.org/x/sys/unix"
const (
msgTypeIPTOS = unix.IP_RECVTOS
ipv4RECVPKTINFO = 0x7
msgTypeIPv4PKTINFO = 0x7
msgTypeIPTOS = unix.IP_RECVTOS
ipv4PKTINFO = 0x7
)
const batchSize = 8