* [PATCH 1/1] ipv6: missed namespace context in ipv6_rthdr_rcv
@ 2008-07-10 12:09 Denis V. Lunev
2008-07-10 12:55 ` Daniel Lezcano
0 siblings, 1 reply; 3+ messages in thread
From: Denis V. Lunev @ 2008-07-10 12:09 UTC (permalink / raw)
To: davem
Cc: netdev, yoshfuji, dlezcano, benjamin.thery, Denis V. Lunev,
Denis V. Lunev
Signed-off-by: Denis V. Lunev <den@parallels.com>
---
net/ipv6/exthdrs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index 3cd1c99..dcf94fd 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -445,7 +445,7 @@ looped_back:
kfree_skb(skb);
return -1;
}
- if (!ipv6_chk_home_addr(&init_net, addr)) {
+ if (!ipv6_chk_home_addr(dev_net(skb->dst->dev), addr)) {
IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
IPSTATS_MIB_INADDRERRORS);
kfree_skb(skb);
--
1.5.3.rc5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ipv6: missed namespace context in ipv6_rthdr_rcv
2008-07-10 12:09 [PATCH 1/1] ipv6: missed namespace context in ipv6_rthdr_rcv Denis V. Lunev
@ 2008-07-10 12:55 ` Daniel Lezcano
2008-07-10 23:55 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2008-07-10 12:55 UTC (permalink / raw)
To: Denis V. Lunev; +Cc: davem, netdev, yoshfuji, benjamin.thery, Denis V. Lunev
Denis V. Lunev wrote:
> Signed-off-by: Denis V. Lunev <den@parallels.com>
> ---
> net/ipv6/exthdrs.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
> index 3cd1c99..dcf94fd 100644
> --- a/net/ipv6/exthdrs.c
> +++ b/net/ipv6/exthdrs.c
> @@ -445,7 +445,7 @@ looped_back:
> kfree_skb(skb);
> return -1;
> }
> - if (!ipv6_chk_home_addr(&init_net, addr)) {
> + if (!ipv6_chk_home_addr(dev_net(skb->dst->dev), addr)) {
> IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
> IPSTATS_MIB_INADDRERRORS);
> kfree_skb(skb);
Thanks Denis :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] ipv6: missed namespace context in ipv6_rthdr_rcv
2008-07-10 12:55 ` Daniel Lezcano
@ 2008-07-10 23:55 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2008-07-10 23:55 UTC (permalink / raw)
To: dlezcano; +Cc: den, netdev, yoshfuji, benjamin.thery, den
From: Daniel Lezcano <dlezcano@fr.ibm.com>
Date: Thu, 10 Jul 2008 14:55:57 +0200
> Denis V. Lunev wrote:
> > Signed-off-by: Denis V. Lunev <den@parallels.com>
> > ---
> > net/ipv6/exthdrs.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
> > index 3cd1c99..dcf94fd 100644
> > --- a/net/ipv6/exthdrs.c
> > +++ b/net/ipv6/exthdrs.c
> > @@ -445,7 +445,7 @@ looped_back:
> > kfree_skb(skb);
> > return -1;
> > }
> > - if (!ipv6_chk_home_addr(&init_net, addr)) {
> > + if (!ipv6_chk_home_addr(dev_net(skb->dst->dev), addr)) {
> > IP6_INC_STATS_BH(ip6_dst_idev(skb->dst),
> > IPSTATS_MIB_INADDRERRORS);
> > kfree_skb(skb);
>
> Thanks Denis :)
Applied to net-2.6, thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-10 23:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 12:09 [PATCH 1/1] ipv6: missed namespace context in ipv6_rthdr_rcv Denis V. Lunev
2008-07-10 12:55 ` Daniel Lezcano
2008-07-10 23:55 ` David Miller
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).