• Home
  • Raw
  • Download

Lines Matching refs:addr

50 static int ipv6_dev_ac_dec(struct net_device *dev, const struct in6_addr *addr);
52 static u32 inet6_acaddr_hash(struct net *net, const struct in6_addr *addr) in inet6_acaddr_hash() argument
54 u32 val = ipv6_addr_hash(addr) ^ net_hash_mix(net); in inet6_acaddr_hash()
63 int ipv6_sock_ac_join(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_join() argument
77 if (ipv6_addr_is_multicast(addr)) in ipv6_sock_ac_join()
83 if (ipv6_chk_addr_and_flags(net, addr, dev, true, 0, IFA_F_TENTATIVE)) in ipv6_sock_ac_join()
90 pac->acl_addr = *addr; in ipv6_sock_ac_join()
95 rt = rt6_lookup(net, addr, NULL, 0, NULL, 0); in ipv6_sock_ac_join()
132 if (!ipv6_chk_prefix(addr, dev)) { in ipv6_sock_ac_join()
139 err = __ipv6_dev_ac_inc(idev, addr); in ipv6_sock_ac_join()
155 int ipv6_sock_ac_drop(struct sock *sk, int ifindex, const struct in6_addr *addr) in ipv6_sock_ac_drop() argument
167 ipv6_addr_equal(&pac->acl_addr, addr)) in ipv6_sock_ac_drop()
254 const struct in6_addr *addr) in aca_alloc() argument
262 aca->aca_addr = *addr; in aca_alloc()
277 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr) in __ipv6_dev_ac_inc() argument
293 if (ipv6_addr_equal(&aca->aca_addr, addr)) { in __ipv6_dev_ac_inc()
301 f6i = addrconf_f6i_alloc(net, idev, addr, true, GFP_ATOMIC); in __ipv6_dev_ac_inc()
306 aca = aca_alloc(f6i, addr); in __ipv6_dev_ac_inc()
338 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr) in __ipv6_dev_ac_dec() argument
347 if (ipv6_addr_equal(&aca->aca_addr, addr)) in __ipv6_dev_ac_dec()
374 static int ipv6_dev_ac_dec(struct net_device *dev, const struct in6_addr *addr) in ipv6_dev_ac_dec() argument
380 return __ipv6_dev_ac_dec(idev, addr); in ipv6_dev_ac_dec()
409 static bool ipv6_chk_acast_dev(struct net_device *dev, const struct in6_addr *addr) in ipv6_chk_acast_dev() argument
418 if (ipv6_addr_equal(&aca->aca_addr, addr)) in ipv6_chk_acast_dev()
430 const struct in6_addr *addr) in ipv6_chk_acast_addr() argument
438 found = ipv6_chk_acast_dev(dev, addr); in ipv6_chk_acast_addr()
440 unsigned int hash = inet6_acaddr_hash(net, addr); in ipv6_chk_acast_addr()
447 if (ipv6_addr_equal(&aca->aca_addr, addr)) { in ipv6_chk_acast_addr()
461 const struct in6_addr *addr) in ipv6_chk_acast_addr_src() argument
464 (ipv6_addr_type(addr) & IPV6_ADDR_LINKLOCAL ? in ipv6_chk_acast_addr_src()
466 addr); in ipv6_chk_acast_addr_src()