From 063759767279aaba0a4f1d213d3cce5079ce32f4 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Mon, 22 Feb 2016 00:22:48 +0530 Subject: iptables: nft-ipv6: Use meta l4proto instead of nexthdr Use meta l4proto in place of nexthdr for ipv6 protocols as it is not necessary that all protocols be next header. Signed-off-by: Shivani Bhardwaj Signed-off-by: Pablo Neira Ayuso --- iptables/nft-ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables') diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 92d37a02..11501189 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -417,7 +417,7 @@ static int nft_ipv6_xlate(const void *data, struct xt_xlate *xl) snprintf(protonum, sizeof(protonum), "%u", cs->fw6.ipv6.proto); protonum[sizeof(protonum) - 1] = '\0'; - xt_xlate_add(xl, "ip6 nexthdr %s%s ", + xt_xlate_add(xl, "meta l4proto %s%s ", cs->fw6.ipv6.invflags & IP6T_INV_PROTO ? "!= " : "", pent ? pent->p_name : protonum); -- cgit v1.2.3