summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-10 23:25:27 +0200
committerFlorian Westphal <fw@strlen.de>2018-06-25 11:51:29 +0200
commitdb84371beafd011e1f1cbe9688241c4dff1649f7 (patch)
tree07e655d24fd693336f0127f2a8692b99823d9d12 /iptables/nft-shared.h
parent20eac2ad174e43a3d4a4275c3d44f99c12bd04b9 (diff)
xtables: translate nft meta trace set 1 to -j TRACE
nft meta expr enables the nfnetlink based trace infrastruvture, so prefer to use that rather than xt_TRACE. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index 6d04b1a4..d74eeb00 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -43,6 +43,7 @@ enum {
NFT_XT_CTX_PAYLOAD = (1 << 0),
NFT_XT_CTX_META = (1 << 1),
NFT_XT_CTX_BITWISE = (1 << 2),
+ NFT_XT_CTX_IMMEDIATE = (1 << 3),
};
struct nft_xt_ctx {
@@ -63,6 +64,10 @@ struct nft_xt_ctx {
uint32_t key;
} meta;
struct {
+ uint32_t data[4];
+ uint32_t len, reg;
+ } immediate;
+ struct {
uint32_t mask[4];
uint32_t xor[4];
} bitwise;