Lines Matching refs:sa
156 struct sockaddr sa; member
194 if ( !bind( s, &u.sa, slen ) ) in random_bind()
205 return bind( s, &u.sa, slen ); in random_bind()
223 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument
228 switch (sa->sa_family) { in res_ourserver_p()
230 inp = (const struct sockaddr_in *)(const void *)sa; in res_ourserver_p()
243 in6p = (const struct sockaddr_in6 *)(const void *)sa; in res_ourserver_p()
683 get_salen(sa) in get_salen() argument
684 const struct sockaddr *sa; in get_salen()
689 if (sa->sa_len)
690 return (sa->sa_len);
693 if (sa->sa_family == AF_INET)
695 else if (sa->sa_family == AF_INET6)