netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1][NETNS] Add missing initialization of nl_info.nl_net in rtm_to_fib6_config()
       [not found] <20080124103220.265806220@theryb.frec.bull.fr>
@ 2008-01-24 10:32 ` Benjamin Thery
  2008-01-31  3:09   ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Thery @ 2008-01-24 10:32 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, Denis V. Lunev, Daniel Lezcano, Benjamin Thery

[-- Attachment #1: route6-finalize-add-netns-to-nl_info-structure.patch --]
[-- Type: text/plain, Size: 730 bytes --]

Add missing initialization of the new nl_info.nl_net field in 
rtm_to_fib6_config(). This will be needed the store network namespace
associated to the fib6_config struct.

Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
---
 net/ipv6/route.c |    1 +
 1 file changed, 1 insertion(+)

Index: net-2.6.25/net/ipv6/route.c
===================================================================
--- net-2.6.25.orig/net/ipv6/route.c
+++ net-2.6.25/net/ipv6/route.c
@@ -1955,6 +1955,7 @@ static int rtm_to_fib6_config(struct sk_
 
 	cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid;
 	cfg->fc_nlinfo.nlh = nlh;
+	cfg->fc_nlinfo.nl_net = skb->sk->sk_net;
 
 	if (tb[RTA_GATEWAY]) {
 		nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16);

-- 

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

* Re: [PATCH 1/1][NETNS] Add missing initialization of nl_info.nl_net in rtm_to_fib6_config()
  2008-01-24 10:32 ` [PATCH 1/1][NETNS] Add missing initialization of nl_info.nl_net in rtm_to_fib6_config() Benjamin Thery
@ 2008-01-31  3:09   ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-01-31  3:09 UTC (permalink / raw)
  To: benjamin.thery; +Cc: netdev, den, dlezcano

From: Benjamin Thery <benjamin.thery@bull.net>
Date: Thu, 24 Jan 2008 11:32:21 +0100

> Add missing initialization of the new nl_info.nl_net field in 
> rtm_to_fib6_config(). This will be needed the store network namespace
> associated to the fib6_config struct.
> 
> Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>

Applied, thanks.

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

end of thread, other threads:[~2008-01-31  3:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20080124103220.265806220@theryb.frec.bull.fr>
2008-01-24 10:32 ` [PATCH 1/1][NETNS] Add missing initialization of nl_info.nl_net in rtm_to_fib6_config() Benjamin Thery
2008-01-31  3:09   ` 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).