[NETNS][IPV6] anycast - handle several network namespace
Make use of the network namespace information to have this protocol to handle several network namespace. 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>
This commit is contained in:

committed by
David S. Miller

parent
a233352506
commit
6ab57e7e7f
@@ -591,8 +591,8 @@ extern int ip6_mc_msfget(struct sock *sk, struct group_filter *gsf,
|
||||
int __user *optlen);
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
extern int ac6_proc_init(void);
|
||||
extern void ac6_proc_exit(void);
|
||||
extern int ac6_proc_init(struct net *net);
|
||||
extern void ac6_proc_exit(struct net *net);
|
||||
extern int raw6_proc_init(void);
|
||||
extern void raw6_proc_exit(void);
|
||||
extern int tcp6_proc_init(struct net *net);
|
||||
@@ -607,15 +607,10 @@ extern int snmp6_register_dev(struct inet6_dev *idev);
|
||||
extern int snmp6_unregister_dev(struct inet6_dev *idev);
|
||||
|
||||
#else
|
||||
static inline int snmp6_register_dev(struct inet6_dev *idev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int snmp6_unregister_dev(struct inet6_dev *idev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int ac6_proc_init(struct net *net) { return 0; }
|
||||
static inline void ac6_proc_exit(struct net *net) { }
|
||||
static inline int snmp6_register_dev(struct inet6_dev *idev) { return 0; }
|
||||
static inline int snmp6_unregister_dev(struct inet6_dev *idev) { return 0; }
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
|
Reference in New Issue
Block a user