diff options
| author | Ana Rey <anarey@gmail.com> | 2014-08-24 08:08:36 -0400 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-08-24 08:08:46 -0400 |
| commit | afc5be3079796b024823bad42dc5ebf716453575 (patch) | |
| tree | 1e9d1b43eccd0e1bebca9d9771ef05890f3ceac5 /include/uapi/linux | |
| parent | e2a093ff0dbfa4c5d99f25241cf33325e9691d91 (diff) | |
netfilter: nft_meta: Add cpu attribute support
Add cpu support to meta expresion.
This allows you to match packets with cpu number.
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/netfilter/nf_tables.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h index 98144cdd8986..c9b6f00a3fb7 100644 --- a/include/uapi/linux/netfilter/nf_tables.h +++ b/include/uapi/linux/netfilter/nf_tables.h | |||
| @@ -572,6 +572,7 @@ enum nft_exthdr_attributes { | |||
| 572 | * @NFT_META_BRI_IIFNAME: packet input bridge interface name | 572 | * @NFT_META_BRI_IIFNAME: packet input bridge interface name |
| 573 | * @NFT_META_BRI_OIFNAME: packet output bridge interface name | 573 | * @NFT_META_BRI_OIFNAME: packet output bridge interface name |
| 574 | * @NFT_META_PKTTYPE: packet type (skb->pkt_type), special handling for loopback | 574 | * @NFT_META_PKTTYPE: packet type (skb->pkt_type), special handling for loopback |
| 575 | * @NFT_META_CPU: cpu id through smp_processor_id() | ||
| 575 | */ | 576 | */ |
| 576 | enum nft_meta_keys { | 577 | enum nft_meta_keys { |
| 577 | NFT_META_LEN, | 578 | NFT_META_LEN, |
| @@ -594,6 +595,7 @@ enum nft_meta_keys { | |||
| 594 | NFT_META_BRI_IIFNAME, | 595 | NFT_META_BRI_IIFNAME, |
| 595 | NFT_META_BRI_OIFNAME, | 596 | NFT_META_BRI_OIFNAME, |
| 596 | NFT_META_PKTTYPE, | 597 | NFT_META_PKTTYPE, |
| 598 | NFT_META_CPU, | ||
| 597 | }; | 599 | }; |
| 598 | 600 | ||
| 599 | /** | 601 | /** |
