diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-04 16:47:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 16:47:47 -0500 |
commit | 5578689a4e3c04f2d43ea39736fd3fa396d80c6e (patch) | |
tree | 3fca397549e4b08bf71e07a14527dc2f793f15f9 /include/net | |
parent | 7b4da53229bb61469bdab321384b9a13406e3485 (diff) |
[NETNS][IPV6] route6 - make route6 per namespace
This patch makes the routing engine use the network namespaces to
access routing informations: Add a network namespace parameter to
ipv6_route_ioctl and propagate the network namespace value to all the
routing code that have not yet been changed.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip6_route.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 1444d358836d..2bcbfb826530 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -49,7 +49,9 @@ extern struct dst_entry * ip6_route_output(struct sock *sk, | |||
49 | extern int ip6_route_init(void); | 49 | extern int ip6_route_init(void); |
50 | extern void ip6_route_cleanup(void); | 50 | extern void ip6_route_cleanup(void); |
51 | 51 | ||
52 | extern int ipv6_route_ioctl(unsigned int cmd, void __user *arg); | 52 | extern int ipv6_route_ioctl(struct net *net, |
53 | unsigned int cmd, | ||
54 | void __user *arg); | ||
53 | 55 | ||
54 | extern int ip6_route_add(struct fib6_config *cfg); | 56 | extern int ip6_route_add(struct fib6_config *cfg); |
55 | extern int ip6_ins_rt(struct rt6_info *); | 57 | extern int ip6_ins_rt(struct rt6_info *); |