netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] iptables: nft-ipv6: Use meta l4proto instead of nexthdr
@ 2016-02-21 18:52 Shivani Bhardwaj
  2016-02-21 18:53 ` [PATCH 2/2] extensions: libip6t_mh: Add translation to nft Shivani Bhardwaj
  2016-03-02 19:02 ` [PATCH 1/2] iptables: nft-ipv6: Use meta l4proto instead of nexthdr Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Shivani Bhardwaj @ 2016-02-21 18:52 UTC (permalink / raw)
  To: netfilter-devel

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 <shivanib134@gmail.com>
---
 iptables/nft-ipv6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c
index 0ee7957..bbf289b 100644
--- a/iptables/nft-ipv6.c
+++ b/iptables/nft-ipv6.c
@@ -416,7 +416,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);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-02 19:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 18:52 [PATCH 1/2] iptables: nft-ipv6: Use meta l4proto instead of nexthdr Shivani Bhardwaj
2016-02-21 18:53 ` [PATCH 2/2] extensions: libip6t_mh: Add translation to nft Shivani Bhardwaj
2016-03-02 19:02   ` Pablo Neira Ayuso
2016-03-02 19:02 ` [PATCH 1/2] iptables: nft-ipv6: Use meta l4proto instead of nexthdr Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).