Lines Matching refs:addr2
1114 const struct sockaddr_storage *addr2, int cmp_port) in cmp_addr() argument
1119 if (addr1->ss_family != addr2->ss_family) in cmp_addr()
1124 four2 = (const struct sockaddr_in *)addr2; in cmp_addr()
1129 six2 = (const struct sockaddr_in6 *)addr2; in cmp_addr()
1139 const struct sockaddr_storage *addr2, int cmp_port) in cmp_sock_addr() argument
1148 return cmp_addr(&addr1, addr2, cmp_port); in cmp_sock_addr()
1151 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument
1153 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip()
1156 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument
1158 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr()
1161 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument
1163 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()