aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Thery <benjamin.thery@bull.net>2008-01-30 22:09:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-31 22:27:20 -0500
commit2216b48376c40cf6984398d478a01b55e76c5434 (patch)
treea8f68ed7dd47c4bc9ddffcaa95a987ae15d40e22
parent4a19ec5800fc3bb64e2d87c4d9fdd9e636086fe0 (diff)
[NETNS]: Add missing initialization of nl_info.nl_net in rtm_to_fib6_config()
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> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/ipv6/route.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 4004c5f0b8d7..162cb66d4605 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1960,6 +1960,7 @@ static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh,
1960 1960
1961 cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid; 1961 cfg->fc_nlinfo.pid = NETLINK_CB(skb).pid;
1962 cfg->fc_nlinfo.nlh = nlh; 1962 cfg->fc_nlinfo.nlh = nlh;
1963 cfg->fc_nlinfo.nl_net = skb->sk->sk_net;
1963 1964
1964 if (tb[RTA_GATEWAY]) { 1965 if (tb[RTA_GATEWAY]) {
1965 nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16); 1966 nla_memcpy(&cfg->fc_gateway, tb[RTA_GATEWAY], 16);