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

Closed
riraccuia opened this issue Apr 29, 2021 · 3 comments
Closed

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

riraccuia opened this issue Apr 29, 2021 · 3 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Darwin
Milestone

Comments

@riraccuia
Copy link

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 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 added NeedsFix The path to resolution is known, but the work has not been done. OS-Darwin labels Apr 29, 2021
@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
@gopherbot
Copy link

Change https://golang.org/cl/343509 mentions this issue: unix: add RTF_GLOBAL on darwin

@tklauser
Copy link
Member

RTF_PROXY, RTF_ROUTER and RTF_DEAD are already present in the latest version of golang.org/x/sys. I've sent https://golang.org/cl/343509 to add the missing RTF_GLOBAL.

@golang golang locked and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. OS-Darwin
Projects
None yet
Development

No branches or pull requests

3 participants