History

netfilter: nft_ct: add zone id get support

Just like with counters the direction attribute is optional. We set priv->dir to MAX unconditionally to avoid duplicating the assignment for all keys with optional direction. For keys where direction is mandatory, existing code already returns an error.

Florian Westphal committed 9 years ago

Commit ab238211 parent 665153f2 files · +21 −3Browse files

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

Unified · Split

include/uapi/linux/netfilter/nf_tables.h+2−0
@@ -870,6 +870,7 @@ enum nft_rt_attributes { · 869 unmodified lines
870870 * @NFT_CT_PKTS: conntrack packets
871871 * @NFT_CT_BYTES: conntrack bytes
872872 * @NFT_CT_AVGPKT: conntrack average bytes per packet
873+ * @NFT_CT_ZONE: conntrack zone
873874 */
874875 enum nft_ct_keys {
875876 NFT_CT_STATE,
@@ -889,6 +890,7 @@ enum nft_ct_keys { · 13 unmodified lines
889890 NFT_CT_PKTS,
890891 NFT_CT_BYTES,
891892 NFT_CT_AVGPKT,
893+ NFT_CT_ZONE,
892894 };
893895
894896 /**