Lines Matching refs:a1
57 static inline bool qeth_l3_addr_match_ip(struct qeth_ipaddr *a1,
60 if (a1->proto != a2->proto)
62 if (a1->proto == QETH_PROT_IPV6)
63 return ipv6_addr_equal(&a1->u.a6.addr, &a2->u.a6.addr);
64 return a1->u.a4.addr == a2->u.a4.addr;
67 static inline bool qeth_l3_addr_match_all(struct qeth_ipaddr *a1,
80 if (a1->type != a2->type)
82 if (a1->proto == QETH_PROT_IPV6)
83 return a1->u.a6.pfxlen == a2->u.a6.pfxlen;
84 return a1->u.a4.mask == a2->u.a4.mask;