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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 = unix.IP_RECVPKTINFO
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
msgTypeIPTOS = unix.IP_RECVTOS
ipv4PKTINFO = unix.IP_RECVPKTINFO
)
// ReadBatch only returns a single packet on OSX,