*BSD: Add ioctls for BPF/network interface operations - #3838
*BSD: Add ioctls for BPF/network interface operations#3838nathaniel-bennett wants to merge 1 commit into
Conversation
ca9b724 to
38e3cb3
Compare
semarie
left a comment
There was a problem hiding this comment.
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 |
semarie
left a comment
There was a problem hiding this comment.
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
semarie
left a comment
There was a problem hiding this comment.
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. |
|
I think this has some work left based on the above, or is there something specific needed from me?
We should get these with #3865, assuming that lands in the near future. @rustbot author |
|
@nathaniel-bennett gentle ping, are you able to update this? |
|
Closing as inactive. Please feel free to reopen if you get the chance! |
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