History

netfilter: nf_tables: add support for matching IPv4 options

This is the kernel change for the overall changes with this description: Add capability to have rules matching IPv4 options. This is developed mainly to support dropping of IP packets with loose and/or strict source route route options.

Stephen Suryaputra committed 7 years ago

Commit dbb52811 parent f76c7bf3 files · +136 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+2−0
@@ -730,10 +730,12 @@ enum nft_exthdr_flags { · 729 unmodified lines
730730 *
731731 * @NFT_EXTHDR_OP_IPV6: match against ipv6 extension headers
732732 * @NFT_EXTHDR_OP_TCP: match against tcp options
733+ * @NFT_EXTHDR_OP_IPV4: match against ipv4 options
733734 */
734735 enum nft_exthdr_op {
735736 NFT_EXTHDR_OP_IPV6,
736737 NFT_EXTHDR_OP_TCPOPT,
738+ NFT_EXTHDR_OP_IPV4,
737739 __NFT_EXTHDR_OP_MAX
738740 };
739741 #define NFT_EXTHDR_OP_MAX (__NFT_EXTHDR_OP_MAX - 1)