libc
libc copied to clipboard
feat: add missing netfilter consts
This PR adds some missing netfilter constants from:
linux/netfilter.hlinux/netfilter_arp.hlinux/netfilter_bridge.hlinux/netfilter_ipv4.hlinux/netfilter_ipv6.h
Unresolved questions:
- [ ]
NF_NETDEV_NUMHOOKSandNF_NETDEV_INGRESSwere not moved fromsemver/linux-gnu.txttosemver/linux.txtduring #2152. Should that be rectified now? - [ ]
NF_NETDEV_NUMHOOKSvalue was changed from 1 to 2 in linux kernel 5.16 (https://github.com/torvalds/linux/commit/42df6e1d221dddc0f2acf2be37e68d553ad65f96) and hence some workaround was added tolibc_test/build.rs: https://github.com/rust-lang/libc/blob/acc7bb1a38e2b9d6a18f28279d80d464c4c25089/libc-test/build.rs#L1842 https://github.com/rust-lang/libc/blob/acc7bb1a38e2b9d6a18f28279d80d464c4c25089/libc-test/build.rs#L3940 Is it OK to chnage them to 2 now and remove those lines or do we have to maintain some level of backwards-compatibility? - [x] Similarly, what about new constants introduced later, e.g.
NF_IP_PRI_RAW_BEFORE_DEFRAGintroduced in 5.10?