-
Notifications
You must be signed in to change notification settings - Fork 1k
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
*BSD: Add ioctls for BPF/network interface operations #3838
base: main
Are you sure you want to change the base?
Conversation
ca9b724
to
38e3cb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on OpenBSD, the test suite fails, see the remark inlined.
else, some values seems wrong:
bad SIOCAIFADDR_IN6 value at byte 2: rust: 32 (0x20) != c 128 (0x80)
bad SIOCDIFADDR_IN6 value at byte 3: rust: 128 (0x80) != c 129 (0x81)
bad SIOCSIFBRDADDR value at byte 3: rust: 192 (0xc0) != c 128 (0x80)
bad SIOCSIFFLAGS value at byte 3: rust: 192 (0xc0) != c 128 (0x80)
bad SIOCAIFADDR value at byte 2: rust: 32 (0x20) != c 64 (0x40)
bad SIOCIFCREATE value at byte 3: rust: 192 (0xc0) != c 128 (0x80)
385709d
to
468478c
Compare
Resolves #3626 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks. still some fixes needed.
a890fc9
to
d95544b
Compare
@semarie you may want to put up a proposal at some point in rust-lang/rust to promote one of the OpenBSD targets to Tier2 if there is sufficient demand, not sure if that has been brought up before. This would let us start testing it in CI here. |
d95544b
to
46605da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for OpenBSD. thanks !
@rustbot label stable-nominated |
Looks like this has been approved by semarie, just needs to be merged @tgross35 |
This is labeled S-waiting-on-review so it is already in my queue. I am just trying to get the branch branches better in sync and fix some testing things before I merge more new features (and this is a bigger-ish change, anything where I need to dig through multiple platforms' headers to cross check takes forever. If you have links to headers or docs that helps a ton!) |
I've converted this to a draft as I discovered that different flavors of BSD have differing sizes for I'll eventually get around to adding the |
☔ The latest upstream changes (presumably #3945) made this pull request unmergeable. Please resolve the merge conflicts. |
Adds a few additional structs for BPF operations (
bpf_version
,bpf_stat
,bpf_zbuf
) as well as ioctl constants. Adds constants used for creating/manipulating network interfaces via ioctls.Resolves #3626