summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv6.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-09-08 23:53:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:45 +0100
commite83e35e236a33dfdf3e401adb7d7e18362cf1961 (patch)
treea09b5cc22651914241dffe9fb32ca3ce68909340 /iptables/nft-ipv6.c
parent7791905f7db3bce63d3316c5adaf2f735cff3c1d (diff)
nft: generalize rule addition family hook
This should help Giuseppe with his ARP support works, this change was missing in (618309c nft: refactoring parse operations for more genericity). Based on patch from Giuseppe. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r--iptables/nft-ipv6.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c
index 27e63a45..2efe95e3 100644
--- a/iptables/nft-ipv6.c
+++ b/iptables/nft-ipv6.c
@@ -22,8 +22,10 @@
#include "nft-shared.h"
-static int nft_ipv6_add(struct nft_rule *r, struct iptables_command_state *cs)
+static int nft_ipv6_add(struct nft_rule *r, void *data)
{
+ struct iptables_command_state *cs = data;
+
if (cs->fw6.ipv6.iniface[0] != '\0')
add_iniface(r, cs->fw6.ipv6.iniface, cs->fw6.ipv6.invflags);