Lines Matching refs:addr
36 __be32 addr; member
40 struct in6_addr addr; member
46 static inline void qeth_l3_init_ipaddr(struct qeth_ipaddr *addr, in qeth_l3_init_ipaddr() argument
50 memset(addr, 0, sizeof(*addr)); in qeth_l3_init_ipaddr()
51 addr->type = type; in qeth_l3_init_ipaddr()
52 addr->proto = proto; in qeth_l3_init_ipaddr()
53 addr->disp_flag = QETH_DISP_ADDR_DO_NOTHING; in qeth_l3_init_ipaddr()
54 addr->ref_counter = 1; in qeth_l3_init_ipaddr()
63 return ipv6_addr_equal(&a1->u.a6.addr, &a2->u.a6.addr); in qeth_l3_addr_match_ip()
64 return a1->u.a4.addr == a2->u.a4.addr; in qeth_l3_addr_match_ip()
87 static inline u32 qeth_l3_ipaddr_hash(struct qeth_ipaddr *addr) in qeth_l3_ipaddr_hash() argument
89 if (addr->proto == QETH_PROT_IPV6) in qeth_l3_ipaddr_hash()
90 return ipv6_addr_hash(&addr->u.a6.addr); in qeth_l3_ipaddr_hash()
92 return ipv4_addr_hash(addr->u.a4.addr); in qeth_l3_ipaddr_hash()
98 char addr[16]; member
104 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr,
112 enum qeth_prot_versions proto, u8 *addr,