Lines Matching refs:right
205 const struct sockaddr_in *right) in same_address_v4() argument
207 return left->sin_addr.s_addr == right->sin_addr.s_addr in same_address_v4()
208 && left->sin_port == right->sin_port; in same_address_v4()
215 const struct sockaddr_in6 *right) in same_address_v6() argument
217 return memcmp (&left->sin6_addr, &right->sin6_addr, in same_address_v6()
219 && left->sin6_port == right->sin6_port in same_address_v6()
220 && left->sin6_scope_id == right->sin6_scope_id; in same_address_v6()
224 same_address (const struct sockaddr *left, const struct sockaddr *right) in same_address() argument
226 if (left->sa_family != right->sa_family) in same_address()
232 (const struct sockaddr_in *) right); in same_address()
235 (const struct sockaddr_in6 *) right); in same_address()