* [RFC PATCH 4/4] netfilter: ip6t_NPT: Do not mix two prefixes.
@ 2013-01-26 18:38 YOSHIFUJI Hideaki
2013-02-07 18:15 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: YOSHIFUJI Hideaki @ 2013-01-26 18:38 UTC (permalink / raw)
To: netfilter-devel; +Cc: jm, fw, yoshfuji
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
---
net/ipv6/netfilter/ip6t_NPT.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/netfilter/ip6t_NPT.c b/net/ipv6/netfilter/ip6t_NPT.c
index 7d23d22..74e171d 100644
--- a/net/ipv6/netfilter/ip6t_NPT.c
+++ b/net/ipv6/netfilter/ip6t_NPT.c
@@ -56,7 +56,7 @@ static bool ip6t_npt_map_pfx(const struct ip6t_npt_tginfo *npt,
idx = i / 32;
addr->s6_addr32[idx] &= mask;
- addr->s6_addr32[idx] |= npt->dst_pfx.in6.s6_addr32[idx];
+ addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx];
}
if (pfx_len <= 48)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC PATCH 4/4] netfilter: ip6t_NPT: Do not mix two prefixes.
2013-01-26 18:38 [RFC PATCH 4/4] netfilter: ip6t_NPT: Do not mix two prefixes YOSHIFUJI Hideaki
@ 2013-02-07 18:15 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-02-07 18:15 UTC (permalink / raw)
To: YOSHIFUJI Hideaki; +Cc: netfilter-devel, jm, fw
Also applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-07 18:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26 18:38 [RFC PATCH 4/4] netfilter: ip6t_NPT: Do not mix two prefixes YOSHIFUJI Hideaki
2013-02-07 18:15 ` 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).