diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2008-01-10 06:25:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:27 -0500 |
commit | 6b175b26c1048d331508940ad3516ead1998084f (patch) | |
tree | 810b0a18cee4d87c573274fdfd4a59fc624cfed2 /include | |
parent | 8ad4942cd5bdad4143f7aa1d1bd4f7b2526c19c5 (diff) |
[NETNS]: Add netns parameter to inet_(dev_)add_type.
The patch extends the inet_addr_type and inet_dev_addr_type with the
network namespace pointer. That allows to access the different tables
relatively to the network namespace.
The modification of the signature function is reported in all the
callers of the inet_addr_type using the pointer to the well known
init_net.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/route.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/route.h b/include/net/route.h index 76b08c1affc0..b77700059252 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -117,8 +117,8 @@ extern int ip_route_input(struct sk_buff*, __be32 dst, __be32 src, u8 tos, stru | |||
117 | extern unsigned short ip_rt_frag_needed(struct iphdr *iph, unsigned short new_mtu); | 117 | extern unsigned short ip_rt_frag_needed(struct iphdr *iph, unsigned short new_mtu); |
118 | extern void ip_rt_send_redirect(struct sk_buff *skb); | 118 | extern void ip_rt_send_redirect(struct sk_buff *skb); |
119 | 119 | ||
120 | extern unsigned inet_addr_type(__be32 addr); | 120 | extern unsigned inet_addr_type(struct net *net, __be32 addr); |
121 | extern unsigned inet_dev_addr_type(const struct net_device *dev, __be32 addr); | 121 | extern unsigned inet_dev_addr_type(struct net *net, const struct net_device *dev, __be32 addr); |
122 | extern void ip_rt_multicast_event(struct in_device *); | 122 | extern void ip_rt_multicast_event(struct in_device *); |
123 | extern int ip_rt_ioctl(unsigned int cmd, void __user *arg); | 123 | extern int ip_rt_ioctl(unsigned int cmd, void __user *arg); |
124 | extern void ip_rt_get_source(u8 *src, struct rtable *rt); | 124 | extern void ip_rt_get_source(u8 *src, struct rtable *rt); |