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

x/sys/unix: define new RTF flags introduced by macOS 11.3 #45848

Open
riraccuia opened this issue Apr 29, 2021 · 1 comment
Open

x/sys/unix: define new RTF flags introduced by macOS 11.3 #45848

riraccuia opened this issue Apr 29, 2021 · 1 comment

Comments

@riraccuia
Copy link

@riraccuia riraccuia commented Apr 29, 2021

@kumpfdp and I noticed there is a bunch of new routing flags that are being actively used starting with macOS 11.3

The sdk files don't seem to be out yet (or i just can't find it) at opensource.apple.com but here's one unofficial link: https://github.com/plentico/osxcross-target/blob/master/SDK/MacOSX11.3.sdk/usr/include/net/route.h

#define RTF_PROXY       0x8000000       /* proxying, no interface scope */
#define RTF_ROUTER      0x10000000      /* host is a router */
#define RTF_DEAD        0x20000000      /* Route entry is being freed */
#define RTF_GLOBAL      0x40000000      /* route to destination of the global internet */
@tklauser
Copy link
Member

@tklauser tklauser commented Apr 29, 2021

Please note that the syscall package is frozen per the package level godoc. These new constants should be added to the golang.org/x/sys/unix package instead.

@tklauser tklauser changed the title syscall/zerrors_darwin_*.go: define new RTF flags introduced by macOS 11.3 x/sys/unix: define new RTF flags introduced by macOS 11.3 Apr 29, 2021
@gopherbot gopherbot added this to the Unreleased milestone Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants