summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv4.c
diff options
context:
space:
mode:
authorGiuseppe Longo <giuseppelng@gmail.com>2014-10-16 16:29:53 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-10-18 14:40:58 +0200
commit2dde9356888733a98867a4e769609f9f59a3bf65 (patch)
tree2f44e5f61df3131559798ee592bcd59efa0bd7a9 /iptables/nft-ipv4.c
parent84f6bf6345f59d442fd62c47abb03089eb9b2134 (diff)
nft-ipv46: replace offset var with ctx->payload.offset
The offset variable (undefined) is passed to DEBUGP function, so you get a compilation error if you try to build iptables with debug enabled Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-ipv4.c')
-rw-r--r--iptables/nft-ipv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c
index eedcb509..a2c58060 100644
--- a/iptables/nft-ipv4.c
+++ b/iptables/nft-ipv4.c
@@ -205,7 +205,7 @@ static void nft_ipv4_parse_payload(struct nft_xt_ctx *ctx,
cs->fw.ip.invflags |= IPT_INV_FRAG;
break;
default:
- DEBUGP("unknown payload offset %d\n", offset);
+ DEBUGP("unknown payload offset %d\n", ctx->payload.offset);
break;
}
}