diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-05 02:20:06 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:53:39 -0400 |
commit | c71099acce933455123ee505cc75964610a209ad (patch) | |
tree | cf167c926350ff6c4040289dacce54849824c240 /net/ipv6/addrconf.c | |
parent | 5d0bbeeb144f631150881712607345c532e38e7e (diff) |
[IPV6]: Multiple Routing Tables
Adds the framework to support multiple IPv6 routing tables.
Currently all automatically generated routes are put into the
same table. This could be changed at a later point after
considering the produced locking overhead.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index c7852b38e03e..318767fcefdc 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1525,7 +1525,7 @@ addrconf_prefix_route(struct in6_addr *pfx, int plen, struct net_device *dev, | |||
1525 | if (dev->type == ARPHRD_SIT && (dev->flags&IFF_POINTOPOINT)) | 1525 | if (dev->type == ARPHRD_SIT && (dev->flags&IFF_POINTOPOINT)) |
1526 | rtmsg.rtmsg_flags |= RTF_NONEXTHOP; | 1526 | rtmsg.rtmsg_flags |= RTF_NONEXTHOP; |
1527 | 1527 | ||
1528 | ip6_route_add(&rtmsg, NULL, NULL, NULL); | 1528 | ip6_route_add(&rtmsg, NULL, NULL, NULL, RT6_TABLE_PREFIX); |
1529 | } | 1529 | } |
1530 | 1530 | ||
1531 | /* Create "default" multicast route to the interface */ | 1531 | /* Create "default" multicast route to the interface */ |
@@ -1542,7 +1542,7 @@ static void addrconf_add_mroute(struct net_device *dev) | |||
1542 | rtmsg.rtmsg_ifindex = dev->ifindex; | 1542 | rtmsg.rtmsg_ifindex = dev->ifindex; |
1543 | rtmsg.rtmsg_flags = RTF_UP; | 1543 | rtmsg.rtmsg_flags = RTF_UP; |
1544 | rtmsg.rtmsg_type = RTMSG_NEWROUTE; | 1544 | rtmsg.rtmsg_type = RTMSG_NEWROUTE; |
1545 | ip6_route_add(&rtmsg, NULL, NULL, NULL); | 1545 | ip6_route_add(&rtmsg, NULL, NULL, NULL, RT6_TABLE_LOCAL); |
1546 | } | 1546 | } |
1547 | 1547 | ||
1548 | static void sit_route_add(struct net_device *dev) | 1548 | static void sit_route_add(struct net_device *dev) |
@@ -1559,7 +1559,7 @@ static void sit_route_add(struct net_device *dev) | |||
1559 | rtmsg.rtmsg_flags = RTF_UP|RTF_NONEXTHOP; | 1559 | rtmsg.rtmsg_flags = RTF_UP|RTF_NONEXTHOP; |
1560 | rtmsg.rtmsg_ifindex = dev->ifindex; | 1560 | rtmsg.rtmsg_ifindex = dev->ifindex; |
1561 | 1561 | ||
1562 | ip6_route_add(&rtmsg, NULL, NULL, NULL); | 1562 | ip6_route_add(&rtmsg, NULL, NULL, NULL, RT6_TABLE_MAIN); |
1563 | } | 1563 | } |
1564 | 1564 | ||
1565 | static void addrconf_add_lroute(struct net_device *dev) | 1565 | static void addrconf_add_lroute(struct net_device *dev) |