~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/net/addrconf.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
};
43
43
 
44
44
 
45
 
#ifdef __KERNEL__
46
 
 
47
45
#include <linux/netdevice.h>
48
46
#include <net/if_inet6.h>
49
47
#include <net/ipv6.h>
61
59
                                                     void __user *arg);
62
60
 
63
61
extern int                      ipv6_chk_addr(struct net *net,
64
 
                                              struct in6_addr *addr,
 
62
                                              const struct in6_addr *addr,
65
63
                                              struct net_device *dev,
66
64
                                              int strict);
67
65
 
68
66
#if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE)
69
67
extern int                      ipv6_chk_home_addr(struct net *net,
70
 
                                                   struct in6_addr *addr);
 
68
                                                   const struct in6_addr *addr);
71
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
72
                                                struct net_device *dev);
75
73
 
76
74
extern struct inet6_ifaddr      *ipv6_get_ifaddr(struct net *net,
89
87
extern int                      ipv6_rcv_saddr_equal(const struct sock *sk,
90
88
                                                    const struct sock *sk2);
91
89
extern void                     addrconf_join_solict(struct net_device *dev,
92
 
                                        struct in6_addr *addr);
 
90
                                        const struct in6_addr *addr);
93
91
extern void                     addrconf_leave_solict(struct inet6_dev *idev,
94
 
                                        struct in6_addr *addr);
 
92
                                        const struct in6_addr *addr);
95
93
 
96
94
static inline unsigned long addrconf_timeout_fixup(u32 timeout,
97
95
                                                    unsigned unit)
158
156
/*
159
157
 *      anycast prototypes (anycast.c)
160
158
 */
161
 
extern int ipv6_sock_ac_join(struct sock *sk,int ifindex,struct in6_addr *addr);
162
 
extern int ipv6_sock_ac_drop(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);
 
160
extern int ipv6_sock_ac_drop(struct sock *sk,int ifindex, const struct in6_addr *addr);
163
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);
167
 
extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, struct in6_addr *addr);
 
164
extern int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr);
 
165
extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
168
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
170
/* Device notifier */
285
283
#endif
286
284
 
287
285
#endif
288
 
#endif