Lines Matching refs:addr2
880 const struct sockaddr_storage *addr2, int cmp_port) in cmp_addr() argument
885 if (addr1->ss_family != addr2->ss_family) in cmp_addr()
890 four2 = (const struct sockaddr_in *)addr2; in cmp_addr()
895 six2 = (const struct sockaddr_in6 *)addr2; in cmp_addr()
905 const struct sockaddr_storage *addr2, int cmp_port) in cmp_sock_addr() argument
914 return cmp_addr(&addr1, addr2, cmp_port); in cmp_sock_addr()
917 static int cmp_local_ip(int sock1, const struct sockaddr_storage *addr2) in cmp_local_ip() argument
919 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 0); in cmp_local_ip()
922 static int cmp_local_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_local_addr() argument
924 return cmp_sock_addr(getsockname, sock1, addr2, /*cmp_port*/ 1); in cmp_local_addr()
927 static int cmp_peer_addr(int sock1, const struct sockaddr_storage *addr2) in cmp_peer_addr() argument
929 return cmp_sock_addr(getpeername, sock1, addr2, /*cmp_port*/ 1); in cmp_peer_addr()