Lines Matching refs:addr1

66 static int sctp_v6_cmp_addr(const union sctp_addr *addr1,
623 static int __sctp_v6_cmp_addr(const union sctp_addr *addr1, in __sctp_v6_cmp_addr() argument
626 if (addr1->sa.sa_family != addr2->sa.sa_family) { in __sctp_v6_cmp_addr()
627 if (addr1->sa.sa_family == AF_INET && in __sctp_v6_cmp_addr()
631 addr1->v4.sin_addr.s_addr) in __sctp_v6_cmp_addr()
635 addr1->sa.sa_family == AF_INET6 && in __sctp_v6_cmp_addr()
636 ipv6_addr_v4mapped(&addr1->v6.sin6_addr) && in __sctp_v6_cmp_addr()
637 addr1->v6.sin6_addr.s6_addr32[3] == in __sctp_v6_cmp_addr()
644 if (!ipv6_addr_equal(&addr1->v6.sin6_addr, &addr2->v6.sin6_addr)) in __sctp_v6_cmp_addr()
648 if ((ipv6_addr_type(&addr1->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) && 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()
659 static int sctp_v6_cmp_addr(const union sctp_addr *addr1, 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()
941 static int sctp_inet6_cmp_addr(const union sctp_addr *addr1, in sctp_inet6_cmp_addr() argument
948 af1 = sctp_get_af_specific(addr1->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()