diff options
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r-- | include/net/addrconf.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 23710aa6a181..582e4ae70753 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -42,8 +42,6 @@ struct prefix_info { | |||
42 | }; | 42 | }; |
43 | 43 | ||
44 | 44 | ||
45 | #ifdef __KERNEL__ | ||
46 | |||
47 | #include <linux/netdevice.h> | 45 | #include <linux/netdevice.h> |
48 | #include <net/if_inet6.h> | 46 | #include <net/if_inet6.h> |
49 | #include <net/ipv6.h> | 47 | #include <net/ipv6.h> |
@@ -61,16 +59,16 @@ extern int addrconf_set_dstaddr(struct net *net, | |||
61 | void __user *arg); | 59 | void __user *arg); |
62 | 60 | ||
63 | extern int ipv6_chk_addr(struct net *net, | 61 | extern int ipv6_chk_addr(struct net *net, |
64 | struct in6_addr *addr, | 62 | const struct in6_addr *addr, |
65 | struct net_device *dev, | 63 | struct net_device *dev, |
66 | int strict); | 64 | int strict); |
67 | 65 | ||
68 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) | 66 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
69 | extern int ipv6_chk_home_addr(struct net *net, | 67 | extern int ipv6_chk_home_addr(struct net *net, |
70 | struct in6_addr *addr); | 68 | const struct in6_addr *addr); |
71 | #endif | 69 | #endif |
72 | 70 | ||
73 | extern int ipv6_chk_prefix(struct in6_addr *addr, | 71 | extern int ipv6_chk_prefix(const struct in6_addr *addr, |
74 | struct net_device *dev); | 72 | struct net_device *dev); |
75 | 73 | ||
76 | extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, | 74 | extern struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, |
@@ -89,9 +87,9 @@ extern int ipv6_get_lladdr(struct net_device *dev, | |||
89 | extern int ipv6_rcv_saddr_equal(const struct sock *sk, | 87 | extern int ipv6_rcv_saddr_equal(const struct sock *sk, |
90 | const struct sock *sk2); | 88 | const struct sock *sk2); |
91 | extern void addrconf_join_solict(struct net_device *dev, | 89 | extern void addrconf_join_solict(struct net_device *dev, |
92 | struct in6_addr *addr); | 90 | const struct in6_addr *addr); |
93 | extern void addrconf_leave_solict(struct inet6_dev *idev, | 91 | extern void addrconf_leave_solict(struct inet6_dev *idev, |
94 | struct in6_addr *addr); | 92 | const struct in6_addr *addr); |
95 | 93 | ||
96 | static inline unsigned long addrconf_timeout_fixup(u32 timeout, | 94 | static inline unsigned long addrconf_timeout_fixup(u32 timeout, |
97 | unsigned unit) | 95 | unsigned unit) |
@@ -158,15 +156,15 @@ extern void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len); | |||
158 | /* | 156 | /* |
159 | * anycast prototypes (anycast.c) | 157 | * anycast prototypes (anycast.c) |
160 | */ | 158 | */ |
161 | extern int ipv6_sock_ac_join(struct sock *sk,int ifindex,struct in6_addr *addr); | 159 | extern int ipv6_sock_ac_join(struct sock *sk,int ifindex, const struct in6_addr *addr); |
162 | extern int ipv6_sock_ac_drop(struct sock *sk,int ifindex,struct in6_addr *addr); | 160 | extern int ipv6_sock_ac_drop(struct sock *sk,int ifindex, const struct in6_addr *addr); |
163 | extern void ipv6_sock_ac_close(struct sock *sk); | 161 | extern void ipv6_sock_ac_close(struct sock *sk); |
164 | extern int inet6_ac_check(struct sock *sk, struct in6_addr *addr, int ifindex); | 162 | extern int inet6_ac_check(struct sock *sk, const struct in6_addr *addr, int ifindex); |
165 | 163 | ||
166 | extern int ipv6_dev_ac_inc(struct net_device *dev, struct in6_addr *addr); | 164 | extern int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr); |
167 | extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, struct in6_addr *addr); | 165 | extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr); |
168 | extern int ipv6_chk_acast_addr(struct net *net, struct net_device *dev, | 166 | extern int ipv6_chk_acast_addr(struct net *net, struct net_device *dev, |
169 | struct in6_addr *addr); | 167 | const struct in6_addr *addr); |
170 | 168 | ||
171 | 169 | ||
172 | /* Device notifier */ | 170 | /* Device notifier */ |
@@ -285,4 +283,3 @@ extern void if6_proc_exit(void); | |||
285 | #endif | 283 | #endif |
286 | 284 | ||
287 | #endif | 285 | #endif |
288 | #endif | ||