Repository navigation
add pktinfo consts and structs for linux and apple - #980
Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
|
@bors: r+ |
|
📌 Commit 0e3cf47 has been approved by |
add pktinfo consts and structs for linux and apple The constants and structs are from `/usr/include/linux/in.h`, `/usr/include/linux/in6.h` for Linux (+ Android) and `/usr/include/netinet/in.h`, `/usr/include/netinet6/in6.h` for Apple. With Apple it's important to mention that I'm choosing the RFC 3542 versions of the constants in alignment with other critical pieces of software like [nginx](http://hg.nginx.org/nginx/rev/9fb994513776), and Linux also defaults to this RFC version.
|
☀️ Test successful - status-appveyor, status-travis |
add remaining pktinfo consts/structs for the other BSDs This continues the work from #980, adding a more complete set of supported platforms for the "I want to know what destination this UDP packet had" problem.
The constants and structs are from
/usr/include/linux/in.h,/usr/include/linux/in6.hfor Linux (+ Android) and/usr/include/netinet/in.h,/usr/include/netinet6/in6.hfor Apple.With Apple it's important to mention that I'm choosing the RFC 3542 versions of the constants in alignment with other critical pieces of software like nginx, and Linux also defaults to this RFC version.