addrconf.h (5f0e5afa0de4522abb3ea7d1369039b94e740ec5) addrconf.h (8965779d2c0e6ab246c82a405236b1fb2adae6b2)
1#ifndef _ADDRCONF_H
2#define _ADDRCONF_H
3
4#define MAX_RTR_SOLICITATIONS 3
5#define RTR_SOLICITATION_INTERVAL (4*HZ)
6
7#define MIN_VALID_LIFETIME (2*3600) /* 2 hours */
8

--- 72 unchanged lines hidden (view full) ---

81 struct net_device *dev,
82 int strict);
83
84extern int ipv6_dev_get_saddr(struct net *net,
85 const struct net_device *dev,
86 const struct in6_addr *daddr,
87 unsigned int srcprefs,
88 struct in6_addr *saddr);
1#ifndef _ADDRCONF_H
2#define _ADDRCONF_H
3
4#define MAX_RTR_SOLICITATIONS 3
5#define RTR_SOLICITATION_INTERVAL (4*HZ)
6
7#define MIN_VALID_LIFETIME (2*3600) /* 2 hours */
8

--- 72 unchanged lines hidden (view full) ---

81 struct net_device *dev,
82 int strict);
83
84extern int ipv6_dev_get_saddr(struct net *net,
85 const struct net_device *dev,
86 const struct in6_addr *daddr,
87 unsigned int srcprefs,
88 struct in6_addr *saddr);
89extern int __ipv6_get_lladdr(struct inet6_dev *idev,
90 struct in6_addr *addr,
91 unsigned char banned_flags);
89extern int ipv6_get_lladdr(struct net_device *dev,
90 struct in6_addr *addr,
91 unsigned char banned_flags);
92extern int ipv6_rcv_saddr_equal(const struct sock *sk,
93 const struct sock *sk2);
94extern void addrconf_join_solict(struct net_device *dev,
95 const struct in6_addr *addr);
96extern void addrconf_leave_solict(struct inet6_dev *idev,

--- 53 unchanged lines hidden (view full) ---

150extern void ipv6_mc_init_dev(struct inet6_dev *idev);
151extern void ipv6_mc_destroy_dev(struct inet6_dev *idev);
152extern void addrconf_dad_failure(struct inet6_ifaddr *ifp);
153
154extern bool ipv6_chk_mcast_addr(struct net_device *dev,
155 const struct in6_addr *group,
156 const struct in6_addr *src_addr);
157
92extern int ipv6_get_lladdr(struct net_device *dev,
93 struct in6_addr *addr,
94 unsigned char banned_flags);
95extern int ipv6_rcv_saddr_equal(const struct sock *sk,
96 const struct sock *sk2);
97extern void addrconf_join_solict(struct net_device *dev,
98 const struct in6_addr *addr);
99extern void addrconf_leave_solict(struct inet6_dev *idev,

--- 53 unchanged lines hidden (view full) ---

153extern void ipv6_mc_init_dev(struct inet6_dev *idev);
154extern void ipv6_mc_destroy_dev(struct inet6_dev *idev);
155extern void addrconf_dad_failure(struct inet6_ifaddr *ifp);
156
157extern bool ipv6_chk_mcast_addr(struct net_device *dev,
158 const struct in6_addr *group,
159 const struct in6_addr *src_addr);
160
161extern void ipv6_mc_dad_complete(struct inet6_dev *idev);
158/*
159 * identify MLD packets for MLD filter exceptions
160 */
161static inline bool ipv6_is_mld(struct sk_buff *skb, int nexthdr, int offset)
162{
163 struct icmp6hdr *hdr;
164
165 if (nexthdr != IPPROTO_ICMPV6 ||

--- 178 unchanged lines hidden ---
162/*
163 * identify MLD packets for MLD filter exceptions
164 */
165static inline bool ipv6_is_mld(struct sk_buff *skb, int nexthdr, int offset)
166{
167 struct icmp6hdr *hdr;
168
169 if (nexthdr != IPPROTO_ICMPV6 ||

--- 178 unchanged lines hidden ---