summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-events.c
diff options
context:
space:
mode:
authorGiuseppe Longo <giuseppelng@gmail.com>2014-03-24 11:59:46 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-03-24 12:08:14 +0100
commit60f00639ca42a95fd5425d6bb6ac08e5b29c6b18 (patch)
tree251436af54d3693b423ee91a42d78c14b3eef429 /iptables/xtables-events.c
parentd25f308e54730677698d93f29ca4630e25237935 (diff)
nft: replace nft_rule_attr_get_u8
Since the family declaration has been modified in libnftnl, from commit 3cd9cd06625f8181c713489cec2c1ce6722a7e16 the assertion is failed for {ip,ip6,arp}tables-compat when printing rules. iptables-compat -L Chain INPUT (policy ACCEPT) target prot opt source destination libnftnl: attribute 0 assertion failed in rule.c:273 ip6tables-compat -L Chain INPUT (policy ACCEPT) target prot opt source destination libnftnl: attribute 0 assertion failed in rule.c:273 arptables-compat -L Chain INPUT (policy ACCEPT) target prot opt source destination libnftnl: attribute 0 assertion failed in rule.c:273 Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-events.c')
-rw-r--r--iptables/xtables-events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-events.c b/iptables/xtables-events.c
index d8a732e4..4746825e 100644
--- a/iptables/xtables-events.c
+++ b/iptables/xtables-events.c
@@ -75,7 +75,7 @@ static int rule_cb(const struct nlmsghdr *nlh, int type)
goto err_free;
}
- family = nft_rule_attr_get_u8(r, NFT_RULE_ATTR_FAMILY);
+ family = nft_rule_attr_get_u32(r, NFT_RULE_ATTR_FAMILY);
switch (family) {
case AF_INET:
case AF_INET6: