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
870 * @NFT_CT_PKTS: conntrack packets870 * @NFT_CT_PKTS: conntrack packets
871 * @NFT_CT_BYTES: conntrack bytes871 * @NFT_CT_BYTES: conntrack bytes
872 * @NFT_CT_AVGPKT: conntrack average bytes per packet872 * @NFT_CT_AVGPKT: conntrack average bytes per packet
873 * @NFT_CT_ZONE: conntrack zone
873 */874 */
874enum nft_ct_keys {875enum nft_ct_keys {
875 NFT_CT_STATE,876 NFT_CT_STATE,
@@ -889,6 +890,7 @@ enum nft_ct_keys { · 13 unmodified lines
889 NFT_CT_PKTS,890 NFT_CT_PKTS,
890 NFT_CT_BYTES,891 NFT_CT_BYTES,
891 NFT_CT_AVGPKT,892 NFT_CT_AVGPKT,
893 NFT_CT_ZONE,
892};894};
893 895
894/**896/**