Add additional Linux AF_PACKET options (libc 0.2)
Added socket options, structs and other miscellaneous constants that make memory-mapped packet sockets possible in Linux--PACKET_TX_RING, PACKET_RX_RING, etc.
(adding this to libc 0.2 as 0.3 is in early development)
r? @JohnTitor
(rustbot has picked a reviewer for you, use r? to override)
Sorry but could you add cfgs here? 0.2's MSRV is 1.13 and we need to add them, see https://github.com/rust-lang/libc/tree/libc-0.2#rust-version-support.
Added cfgs for union types in latest force-push
CI fails, seems you also need libc_align cfg.
@rustbot author
Added libc_align cfg to any structs that use repr(align)
Resolved other issues with libc_const_size_of--ready to merge
Removed the unintentional semicolon and rebased
Rebased to working CI and ready for review
r? @tgross35
This is a big-ish API surface so it's still taking me a while to going through it. Feel free to hold off rebasing until I get back to you.
Some brief notes below.
Linked to (https://github.com/rust-lang/rust/issues/43894), removed the spurious whitespace, and dropped the Debug implementations. This is a backport of a PR that was already added to the 1.0 branch, so I'll open up a PR taking out the bad Debug implementations there too
@rustbot label S-waiting-on-review
@rustbot label -S-waiting-on-author