Lines Matching refs:addr

63 int ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
65 int ipv6_chk_addr_and_flags(struct net *net, const struct in6_addr *addr,
70 int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr);
73 bool ipv6_chk_custom_prefix(const struct in6_addr *addr,
77 int ipv6_chk_prefix(const struct in6_addr *addr, struct net_device *dev);
80 const struct in6_addr *addr,
86 int __ipv6_get_lladdr(struct inet6_dev *idev, struct in6_addr *addr,
88 int ipv6_get_lladdr(struct net_device *dev, struct in6_addr *addr,
91 void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr);
92 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
122 u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr,
129 const struct in6_addr *addr);
131 const struct in6_addr *addr);
136 int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr);
137 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
138 int ipv6_dev_mc_dec(struct net_device *dev, const struct in6_addr *addr);
157 const struct in6_addr *addr);
159 const struct in6_addr *addr);
205 const struct in6_addr *addr);
207 const struct in6_addr *addr);
210 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr);
211 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
214 const struct in6_addr *addr);
216 const struct in6_addr *addr);
306 static inline void addrconf_addr_solict_mult(const struct in6_addr *addr,
312 htonl(0xFF000000) | addr->s6_addr32[3]);
315 static inline bool ipv6_addr_is_ll_all_nodes(const struct in6_addr *addr)
318 __be64 *p = (__be64 *)addr;
321 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
322 addr->s6_addr32[1] | addr->s6_addr32[2] |
323 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0;
327 static inline bool ipv6_addr_is_ll_all_routers(const struct in6_addr *addr)
330 __be64 *p = (__be64 *)addr;
333 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
334 addr->s6_addr32[1] | addr->s6_addr32[2] |
335 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0;
339 static inline bool ipv6_addr_is_isatap(const struct in6_addr *addr)
341 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE);
344 static inline bool ipv6_addr_is_solict_mult(const struct in6_addr *addr)
347 __be64 *p = (__be64 *)addr;
352 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) |
353 addr->s6_addr32[1] |
354 (addr->s6_addr32[2] ^ htonl(0x00000001)) |
355 (addr->s6_addr[12] ^ 0xff)) == 0;