path: root/iptables/nft-shared.h
diff options
authorArturo Borrero <>2015-01-19 14:28:02 +0100
committerPablo Neira Ayuso <>2015-01-28 17:23:51 +0100
commit8acf8315a44fbee8227433daabb262b6de1e70f6 (patch)
treee261699a55e99e3ee8206ca6e99f459c3a127211 /iptables/nft-shared.h
parentcd414abfd21dae0288f53669672f057c0630c78a (diff)
ebtables-compat: fix nft payload bases
ebtables should use NFT_PAYLOAD_LL_HEADER to fetch basic payload information from packets in the bridge family. Let's allow the add_payload() function to know in which base it should work. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/nft-shared.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index feef24f9..33582aaa 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -103,7 +103,7 @@ struct nft_family_ops {
void add_meta(struct nft_rule *r, uint32_t key);
-void add_payload(struct nft_rule *r, int offset, int len);
+void add_payload(struct nft_rule *r, int offset, int len, uint32_t base);
void add_bitwise_u16(struct nft_rule *r, int mask, int xor);
void add_cmp_ptr(struct nft_rule *r, uint32_t op, void *data, size_t len);
void add_cmp_u8(struct nft_rule *r, uint8_t val, uint32_t op);