summaryrefslogtreecommitdiffstats
path: root/iptables/nft-shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r--iptables/nft-shared.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h
index 3d1f433f..7260fddc 100644
--- a/iptables/nft-shared.h
+++ b/iptables/nft-shared.h
@@ -178,11 +178,11 @@ extern char *opcodes[];
#include <linux/netfilter_arp/arp_tables.h>
-static inline struct xt_entry_target *nft_arp_get_target(struct arpt_entry *fw)
+static inline struct xt_entry_target *nft_arp_get_target(struct arpt_entry *fw)
{
struct xt_entry_target **target;
- target = (void *) fw + fw->target_offset;
+ target = (void *) &fw->elems;
return *target;
}