From: Shivani Bhardwaj Date: Sun, 21 Feb 2016 18:52:48 +0000 (+0530) Subject: iptables: nft-ipv6: Use meta l4proto instead of nexthdr X-Git-Tag: v1.6.1~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=063759767279aaba0a4f1d213d3cce5079ce32f4;p=thirdparty%2Fiptables.git 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 --- 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);