Lines Matching refs:a_sockaddr
407 int iwpm_compare_sockaddr(struct sockaddr_storage *a_sockaddr, in iwpm_compare_sockaddr() argument
410 if (a_sockaddr->ss_family != b_sockaddr->ss_family) in iwpm_compare_sockaddr()
412 if (a_sockaddr->ss_family == AF_INET) { in iwpm_compare_sockaddr()
414 (struct sockaddr_in *)a_sockaddr; in iwpm_compare_sockaddr()
422 } else if (a_sockaddr->ss_family == AF_INET6) { in iwpm_compare_sockaddr()
424 (struct sockaddr_in6 *)a_sockaddr; in iwpm_compare_sockaddr()
528 static int get_hash_bucket(struct sockaddr_storage *a_sockaddr, in get_hash_bucket() argument
533 if (a_sockaddr->ss_family == AF_INET) { in get_hash_bucket()
534 a_hash = iwpm_ipv4_jhash((struct sockaddr_in *) a_sockaddr); in get_hash_bucket()
537 } else if (a_sockaddr->ss_family == AF_INET6) { in get_hash_bucket()
538 a_hash = iwpm_ipv6_jhash((struct sockaddr_in6 *) a_sockaddr); in get_hash_bucket()