path: root/iptables/nft-shared.h
diff options
authorPablo Neira Ayuso <>2013-03-24 13:15:23 +0100
committerPablo Neira Ayuso <>2013-12-30 23:50:28 +0100
commit4ef77b6d1b52e1fe52a7fd48d38d9233f0961640 (patch)
tree08fa0bf0917dcb00a9665dc25c5162599815ce2a /iptables/nft-shared.h
parent98ffe9f8a5aa730fed0a5b2f2ac337ca2511700e (diff)
xtables: fix missing protocol and invflags
xtables -I INPUT -p tcp --dport 22 -j ACCEPT iptables: Target problem. Run `dmesg' for more information x_tables: ip_tables: tcp match: only valid for protocol Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/nft-shared.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index f55d6f68..b301d411 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -63,6 +63,7 @@ void add_addr(struct nft_rule *r, int offset,
void *data, size_t len, int invflags);
void add_proto(struct nft_rule *r, int offset, size_t len,
uint32_t proto, int invflags);
+void add_compat(struct nft_rule *r, uint32_t proto, bool inv);
bool is_same_interfaces(const char *a_iniface, const char *a_outiface,
unsigned const char *a_iniface_mask,