affected/package: syscall on darwin amd64 — macOS 13.0 darwin xnu #56861
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?Cross Compiling machine:
go env
OutputExecuting machine is MacBook Pro 2015 13” with Intel processor. No go installed
What did you do?
I wrote 3,000 lines of closed-source code wrapping the iffy golang.org/x/net/route.ParseRIB function to consume the mostly undocumented netlink socket output on macOS 13.0+ darwin xnu.
when cross-compiling GOOS=darwin GOARCH=amd64, the following syscall symbols are not defined:
I came up with some silly constructs for this to work transparently
However, when the Wi-Fi interface is turned off on amd64, macOS emits data including RTF_ROUTER
What did you expect to see?
My code to work like on macOS arm64, ie. amd64 to have the symbols present
What did you see instead?
My checkit and checkit again code found undefined bits in rtm_flags: RTF_ROUTER
I think darwin amd64 should include the 3 symbols
RTF_UP: https://github.com/apple/darwin-xnu/blob/main/bsd/net/route.h#L284
rt_msghdr: https://github.com/apple/darwin-xnu/blob/main/bsd/net/route.h#L345
The text was updated successfully, but these errors were encountered: