Lines Matching refs:iaddr
37 static u8 ipvlan_get_v6_hash(const void *iaddr)
39 const struct in6_addr *ip6_addr = iaddr;
45 static u8 ipvlan_get_v6_hash(const void *iaddr)
51 static u8 ipvlan_get_v4_hash(const void *iaddr)
53 const struct in_addr *ip4_addr = iaddr;
59 static bool addr_equal(bool is_v6, struct ipvl_addr *addr, const void *iaddr)
62 struct in_addr *i4addr = (struct in_addr *)iaddr;
67 struct in6_addr *i6addr = (struct in6_addr *)iaddr;
77 const void *iaddr, bool is_v6)
82 hash = is_v6 ? ipvlan_get_v6_hash(iaddr) :
83 ipvlan_get_v4_hash(iaddr);
85 if (addr_equal(is_v6, addr, iaddr))
108 const void *iaddr, bool is_v6)
114 if (addr_equal(is_v6, addr, iaddr)) {
123 bool ipvlan_addr_busy(struct ipvl_port *port, void *iaddr, bool is_v6)
130 if (ipvlan_find_addr(ipvlan, iaddr, is_v6)) {