Lines Matching refs:sa1
4530 key_sockaddrcmp(const struct sockaddr *sa1, const struct sockaddr *sa2, in key_sockaddrcmp() argument
4533 if (sa1->sa_family != sa2->sa_family || sa1->sa_len != sa2->sa_len) in key_sockaddrcmp()
4536 switch (sa1->sa_family) { in key_sockaddrcmp()
4539 if (sa1->sa_len != sizeof(struct sockaddr_in)) in key_sockaddrcmp()
4541 if (satosin(sa1)->sin_addr.s_addr != in key_sockaddrcmp()
4545 if (port && satosin(sa1)->sin_port != satosin(sa2)->sin_port) in key_sockaddrcmp()
4551 if (sa1->sa_len != sizeof(struct sockaddr_in6)) in key_sockaddrcmp()
4553 if (satosin6(sa1)->sin6_scope_id != in key_sockaddrcmp()
4557 if (!IN6_ARE_ADDR_EQUAL(&satosin6(sa1)->sin6_addr, in key_sockaddrcmp()
4562 satosin6(sa1)->sin6_port != satosin6(sa2)->sin6_port) { in key_sockaddrcmp()
4568 if (bcmp(sa1, sa2, sa1->sa_len) != 0) in key_sockaddrcmp()
4578 key_sockaddrcmp_withmask(const struct sockaddr *sa1, in key_sockaddrcmp_withmask() argument
4581 if (sa1->sa_family != sa2->sa_family || sa1->sa_len != sa2->sa_len) in key_sockaddrcmp_withmask()
4584 switch (sa1->sa_family) { in key_sockaddrcmp_withmask()
4587 return (!key_bbcmp(&satosin(sa1)->sin_addr, in key_sockaddrcmp_withmask()
4592 if (satosin6(sa1)->sin6_scope_id != in key_sockaddrcmp_withmask()
4595 return (!key_bbcmp(&satosin6(sa1)->sin6_addr, in key_sockaddrcmp_withmask()