diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-12-30 11:08:08 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-02-16 19:30:23 +0100 |
commit | 1e1c582ff0b502c49a87c945da351fbd5c0c6fe9 (patch) | |
tree | cd5dbd1b682c2074a8105a0320e7f84a7f73e7c5 | |
parent | 5e4c54e81e9b39de0647c302aa463777e2298318 (diff) |
iptables: nft-ipv6: Replace ip with ip6
Replace ip with ip6 to avoid conflict between the protocols in the
results obtained from ip6tables-translate utility.
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | iptables/nft-ipv6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 107a84e2..0b6ff97e 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -416,16 +416,16 @@ static int nft_ipv6_xlate(const void *data, struct xt_buf *buf) snprintf(protonum, sizeof(protonum), "%u", cs->fw6.ipv6.proto); protonum[sizeof(protonum) - 1] = '\0'; - xt_buf_add(buf, "ip protocol %s%s ", + xt_buf_add(buf, "ip6 nexthdr %s%s ", cs->fw6.ipv6.invflags & IP6T_INV_PROTO ? "!= " : "", pent ? pent->p_name : protonum); } } - xlate_ipv6_addr("ip saddr", &cs->fw6.ipv6.src, + xlate_ipv6_addr("ip6 saddr", &cs->fw6.ipv6.src, cs->fw6.ipv6.invflags & IP6T_INV_SRCIP, buf); - xlate_ipv6_addr("ip daddr", &cs->fw6.ipv6.dst, + xlate_ipv6_addr("ip6 daddr", &cs->fw6.ipv6.dst, cs->fw6.ipv6.invflags & IP6T_INV_DSTIP, buf); ret = xlate_matches(cs, buf); |