fix: add missing definitions for io-sock QNX - #5469
Conversation
fbbe72e to
b32f2a1
Compare
b32f2a1 to
543e03a
Compare
There was a problem hiding this comment.
Looks reasonable enough to me but the target maintainers should review/test. Cc @flba-eb @gh-tr @jonathanpallant @japaric
@rustbot label +S-waiting-on-maintainer
| // https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L549 | ||
| pub struct ip_mreqn { | ||
| pub imr_multiaddr: in_addr, | ||
| pub imr_address: in_addr, | ||
| pub imr_ifindex: c_int, | ||
| } |
There was a problem hiding this comment.
Please put these links into the commit message, rather than in comments
There was a problem hiding this comment.
Updated! Also fixed the the in_addr fields to crate::in_addr since that's what the rest of the file is using
This comment has been minimized.
This comment has been minimized.
|
b539bb3 to
54be82a
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
54be82a to
33e91af
Compare
For reference, the QNX io-sock networking stack is based on FreeBSD 13.2 release: https://www.qnx.com/developers/docs/relnotes8.0/com.qnx.doc.release_notes/topic/sdp8_rn.html See `What's new in QNX SDP? > Networking` for details Following under are the references to the FreeBSD headers: - `ip_mreqn`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L549 - `ip_mreq_source`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L558 - `TCP_KEEPIDLE`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/tcp.h#L208 - `TCP_KEEPINTVL`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/tcp.h#L209 - `TCP_KEEPCNT`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/tcp.h#L210 - `IP_RECVTOS`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L487 - `IP_ADD_SOURCE_MEMBERSHIP`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3e/sys/netinet/in.h#L490 - `IP_DROP_SOURCE_MEMBERSHIP`: https://github.com/freebsd/freebsd-src/blob/f0cf0b8266eef39b13917f7bed808daf6d6a2d3esys/netinet/in.h#L491
33e91af to
53c3ebe
Compare
I'm currently working on getting socket2 to compile for QNX8 networking stack. This PR adds some missing network related structs and constants.