diff options
author | Benjamin Thery <benjamin.thery@bull.net> | 2008-02-26 21:10:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-26 21:42:37 -0500 |
commit | f1243c2db6e3b8e5a602b1be2d256b582fc78ce4 (patch) | |
tree | 7764c3e6492a6ef84d58f6ef272098b88c724122 /net/ipv6/addrconf.c | |
parent | 3dbf8d56a2b7e0d738950daa16682e1e6dafb28b (diff) |
[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/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index e40213db9e4c..101e0e70ba27 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1557,6 +1557,7 @@ addrconf_prefix_route(struct in6_addr *pfx, int plen, struct net_device *dev, | |||
1557 | .fc_expires = expires, | 1557 | .fc_expires = expires, |
1558 | .fc_dst_len = plen, | 1558 | .fc_dst_len = plen, |
1559 | .fc_flags = RTF_UP | flags, | 1559 | .fc_flags = RTF_UP | flags, |
1560 | .fc_nlinfo.nl_net = &init_net, | ||
1560 | }; | 1561 | }; |
1561 | 1562 | ||
1562 | ipv6_addr_copy(&cfg.fc_dst, pfx); | 1563 | ipv6_addr_copy(&cfg.fc_dst, pfx); |
@@ -1583,6 +1584,7 @@ static void addrconf_add_mroute(struct net_device *dev) | |||
1583 | .fc_ifindex = dev->ifindex, | 1584 | .fc_ifindex = dev->ifindex, |
1584 | .fc_dst_len = 8, | 1585 | .fc_dst_len = 8, |
1585 | .fc_flags = RTF_UP, | 1586 | .fc_flags = RTF_UP, |
1587 | .fc_nlinfo.nl_net = &init_net, | ||
1586 | }; | 1588 | }; |
1587 | 1589 | ||
1588 | ipv6_addr_set(&cfg.fc_dst, htonl(0xFF000000), 0, 0, 0); | 1590 | ipv6_addr_set(&cfg.fc_dst, htonl(0xFF000000), 0, 0, 0); |
@@ -1599,6 +1601,7 @@ static void sit_route_add(struct net_device *dev) | |||
1599 | .fc_ifindex = dev->ifindex, | 1601 | .fc_ifindex = dev->ifindex, |
1600 | .fc_dst_len = 96, | 1602 | .fc_dst_len = 96, |
1601 | .fc_flags = RTF_UP | RTF_NONEXTHOP, | 1603 | .fc_flags = RTF_UP | RTF_NONEXTHOP, |
1604 | .fc_nlinfo.nl_net = &init_net, | ||
1602 | }; | 1605 | }; |
1603 | 1606 | ||
1604 | /* prefix length - 96 bits "::d.d.d.d" */ | 1607 | /* prefix length - 96 bits "::d.d.d.d" */ |