Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use code points from x/sys/unix for PKTINFO syscalls #3094

Merged
merged 1 commit into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conn_helper_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import "golang.org/x/sys/unix"
const msgTypeIPTOS = unix.IP_RECVTOS

const (
ipv4RECVPKTINFO = 0x1a
ipv4RECVPKTINFO = unix.IP_RECVPKTINFO
ipv6RECVPKTINFO = 0x3d
)

const (
msgTypeIPv4PKTINFO = 0x1a
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
msgTypeIPv6PKTINFO = 0x2e
)
8 changes: 4 additions & 4 deletions conn_helper_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import "golang.org/x/sys/unix"
const msgTypeIPTOS = unix.IP_TOS

const (
ipv4RECVPKTINFO = 0x8
ipv6RECVPKTINFO = 0x31
ipv4RECVPKTINFO = unix.IP_PKTINFO
ipv6RECVPKTINFO = unix.IPV6_RECVPKTINFO
)

const (
msgTypeIPv4PKTINFO = 0x8
msgTypeIPv6PKTINFO = 0x32
msgTypeIPv4PKTINFO = unix.IP_PKTINFO
msgTypeIPv6PKTINFO = unix.IPV6_PKTINFO
)