Lines Matching refs:sa
148 struct sockaddr *sa; in server_print() local
151 sa = (struct sockaddr*)_res._u._ext.nsaddrs[0]; in server_print()
152 if (!sa) in server_print()
154 sa = (struct sockaddr*)&_res.nsaddr_list[0]; in server_print()
155 server = xmalloc_sockaddr2dotted_noport(sa); in server_print()
175 if (lsa->u.sa.sa_family == AF_INET) { in set_default_dns()
185 if (lsa->u.sa.sa_family == AF_INET6) { in set_default_dns()
530 pfd.fd = xsocket_type(&local_lsa, ns->lsa->u.sa.sa_family, SOCK_DGRAM); in send_queries()
537 xbind(pfd.fd, &local_lsa->u.sa, local_lsa->len); in send_queries()
540 xconnect(pfd.fd, &ns->lsa->u.sa, ns->lsa->len); in send_queries()
583 auto_string(xmalloc_sockaddr2dotted(&ns->lsa->u.sa)) in send_queries()