Lines Matching refs:nsap
420 struct sockaddr *nsap; in res_nsend() local
422 nsap = get_nsaddr(statp, ns); in res_nsend()
423 nsaplen = get_salen(nsap); in res_nsend()
433 act = (*statp->qhook)(&nsap, &buf, &buflen, in res_nsend()
458 getnameinfo(nsap, nsaplen, abuf, sizeof(abuf), in res_nsend()
512 act = (*statp->rhook)(nsap, buf, buflen, in res_nsend()
607 struct sockaddr *nsap; in send_vc() local
618 nsap = get_nsaddr(statp, ns); in send_vc()
619 nsaplen = get_salen(nsap); in send_vc()
632 !sock_eq((struct sockaddr *)&peer, nsap)) { in send_vc()
642 statp->_vcsock = socket(nsap->sa_family, SOCK_STREAM, 0); in send_vc()
697 if (connect(statp->_vcsock, nsap, nsaplen) < 0) { in send_vc()
699 Aerror(statp, stderr, "connect/vc", errno, nsap, in send_vc()
828 const struct sockaddr *nsap; in send_dg() local
841 nsap = get_nsaddr(statp, ns); in send_dg()
842 nsaplen = get_salen(nsap); in send_dg()
844 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM, 0); in send_dg()
876 if (connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) { in send_dg()
877 Aerror(statp, stderr, "connect(dg)", errno, nsap, in send_dg()
894 if (sendto(s, (const char*)buf, buflen, 0, nsap, nsaplen) != buflen) in send_dg()
896 Aerror(statp, stderr, "sendto", errno, nsap, nsaplen); in send_dg()