aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/route.c
diff options
context:
space:
mode:
authorBenjamin Thery <benjamin.thery@bull.net>2008-02-26 18:10:03 -0800
committerDavid S. Miller <davem@davemloft.net>2008-02-26 18:42:37 -0800
commitf1243c2db6e3b8e5a602b1be2d256b582fc78ce4 (patch)
tree7764c3e6492a6ef84d58f6ef272098b88c724122 /net/ipv6/route.c
parent[MACVLAN]: Update Kconfig to refer to iproute (diff)
downloadlinux-dev-f1243c2db6e3b8e5a602b1be2d256b582fc78ce4.tar.xz
linux-dev-f1243c2db6e3b8e5a602b1be2d256b582fc78ce4.zip
[IPV6]: Add missing initializations of the new nl_info.nl_net field
Add some more missing initializations of the new nl_info.nl_net field in IPv6 stack. This field will be used when network namespaces are fully supported. Signed-off-by: Benjamin Thery <benjamin.thery@bull.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r--net/ipv6/route.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 6e7b56ef4449..e8b241cb60bc 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1719,6 +1719,8 @@ static void rtmsg_to_fib6_config(struct in6_rtmsg *rtmsg,
cfg->fc_src_len = rtmsg->rtmsg_src_len;
cfg->fc_flags = rtmsg->rtmsg_flags;
+ cfg->fc_nlinfo.nl_net = &init_net;
+
ipv6_addr_copy(&cfg->fc_dst, &rtmsg->rtmsg_dst);
ipv6_addr_copy(&cfg->fc_src, &rtmsg->rtmsg_src);
ipv6_addr_copy(&cfg->fc_gateway, &rtmsg->rtmsg_gateway);