Lines Matching refs:addr2
67 const union sctp_addr *addr2);
624 const union sctp_addr *addr2) in __sctp_v6_cmp_addr() argument
626 if (addr1->sa.sa_family != addr2->sa.sa_family) { in __sctp_v6_cmp_addr()
628 addr2->sa.sa_family == AF_INET6 && in __sctp_v6_cmp_addr()
629 ipv6_addr_v4mapped(&addr2->v6.sin6_addr) && in __sctp_v6_cmp_addr()
630 addr2->v6.sin6_addr.s6_addr32[3] == in __sctp_v6_cmp_addr()
634 if (addr2->sa.sa_family == AF_INET && in __sctp_v6_cmp_addr()
638 addr2->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr()
644 if (!ipv6_addr_equal(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr)) in __sctp_v6_cmp_addr()
649 addr1->v6.sin6_scope_id && addr2->v6.sin6_scope_id && in __sctp_v6_cmp_addr()
650 addr1->v6.sin6_scope_id != addr2->v6.sin6_scope_id) in __sctp_v6_cmp_addr()
660 const union sctp_addr *addr2) in sctp_v6_cmp_addr() argument
662 return __sctp_v6_cmp_addr(addr1, addr2) && in sctp_v6_cmp_addr()
663 addr1->v6.sin6_port == addr2->v6.sin6_port; in sctp_v6_cmp_addr()
942 const union sctp_addr *addr2, in sctp_inet6_cmp_addr() argument
949 af2 = sctp_get_af_specific(addr2->sa.sa_family); in sctp_inet6_cmp_addr()
959 if (sctp_is_any(sk, addr1) || sctp_is_any(sk, addr2)) in sctp_inet6_cmp_addr()
962 if (addr1->sa.sa_family == AF_INET && addr2->sa.sa_family == AF_INET) in sctp_inet6_cmp_addr()
963 return addr1->v4.sin_addr.s_addr == addr2->v4.sin_addr.s_addr; in sctp_inet6_cmp_addr()
965 return __sctp_v6_cmp_addr(addr1, addr2); in sctp_inet6_cmp_addr()