Lines Matching refs:addr2
465 const union sctp_addr *addr2) in sctp_v6_cmp_addr() argument
467 if (addr1->sa.sa_family != addr2->sa.sa_family) { in sctp_v6_cmp_addr()
469 addr2->sa.sa_family == AF_INET6 && in sctp_v6_cmp_addr()
470 IPV6_ADDR_MAPPED == ipv6_addr_type(&addr2->v6.sin6_addr)) { in sctp_v6_cmp_addr()
471 if (addr2->v6.sin6_port == addr1->v4.sin_port && in sctp_v6_cmp_addr()
472 addr2->v6.sin6_addr.s6_addr32[3] == in sctp_v6_cmp_addr()
476 if (addr2->sa.sa_family == AF_INET && in sctp_v6_cmp_addr()
479 if (addr1->v6.sin6_port == addr2->v4.sin_port && in sctp_v6_cmp_addr()
481 addr2->v4.sin_addr.s_addr) in sctp_v6_cmp_addr()
486 if (ipv6_addr_cmp(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr)) in sctp_v6_cmp_addr()
490 if (addr1->v6.sin6_scope_id && addr2->v6.sin6_scope_id && in sctp_v6_cmp_addr()
491 (addr1->v6.sin6_scope_id != addr2->v6.sin6_scope_id)) { in sctp_v6_cmp_addr()
793 const union sctp_addr *addr2, in sctp_inet6_cmp_addr() argument
799 af2 = sctp_get_af_specific(addr2->sa.sa_family); in sctp_inet6_cmp_addr()
804 if (sctp_is_any(addr1) || sctp_is_any(addr2)) in sctp_inet6_cmp_addr()
807 if (addr1->sa.sa_family != addr2->sa.sa_family) in sctp_inet6_cmp_addr()
810 return af1->cmp_addr(addr1, addr2); in sctp_inet6_cmp_addr()