summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-10-08 22:17:51 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-09 13:04:30 +0200
commitab1e03849d7fb60e861b9715d90681f7120c3bbb (patch)
treee9ebf3e38f1ee3cb7c24a9b253da2e98f8db67bb /iptables/nft-shared.c
parent3d2e3c1838bf728e6b88912a77b0f9d8535f011b (diff)
arptables-compat: allow to not specify a target
arptables allows this: # arptables -I INPUT however, arptables-compat says: arptables v1.4.21: No target provided or initalization failed Try `arptables -h' or 'arptables --help' for more information. the compat utility must mimic the same behaviour. Fix this by introducing the arptables_command_state abstraction that is already available in ip{6}tables. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.c')
-rw-r--r--iptables/nft-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c
index c22e83d3..86b7ac90 100644
--- a/iptables/nft-shared.c
+++ b/iptables/nft-shared.c
@@ -303,7 +303,7 @@ static void *nft_get_data(struct nft_xt_ctx *ctx)
case NFPROTO_IPV6:
return ctx->state.cs;
case NFPROTO_ARP:
- return ctx->state.fw;
+ return ctx->state.cs_arp;
default:
/* Should not happen */
return NULL;