Lines Matching refs:nsap
421 struct sockaddr *nsap; in res_nsend() local
423 nsap = get_nsaddr(statp, ns); in res_nsend()
424 nsaplen = get_salen(nsap); in res_nsend()
434 act = (*statp->qhook)(&nsap, &buf, &buflen, in res_nsend()
462 getnameinfo(nsap, nsaplen, abuf, sizeof(abuf), in res_nsend()
520 act = (*statp->rhook)(nsap, buf, buflen, in res_nsend()
621 struct sockaddr *nsap; in send_vc() local
632 nsap = get_nsaddr(statp, ns); in send_vc()
633 nsaplen = get_salen(nsap); in send_vc()
646 !sock_eq((struct sockaddr *)&peer, nsap)) { in send_vc()
656 statp->_vcsock = _socket(nsap->sa_family, SOCK_STREAM | in send_vc()
691 if (_connect(statp->_vcsock, nsap, nsaplen) < 0) { in send_vc()
693 Aerror(statp, stderr, "connect/vc", errno, nsap, in send_vc()
827 const struct sockaddr *nsap; in send_dg() local
844 nsap = get_nsaddr(statp, ns); in send_dg()
845 nsaplen = get_salen(nsap); in send_dg()
847 EXT(statp).nssocks[ns] = _socket(nsap->sa_family, in send_dg()
890 _connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) { in send_dg()
891 Aerror(statp, stderr, "connect(dg)", errno, nsap, in send_dg()
904 (const char*)buf, buflen, 0, nsap, nsaplen) != buflen) { in send_dg()
905 Aerror(statp, stderr, "sendto", errno, nsap, nsaplen); in send_dg()
915 if (_sendto(s, (const char*)buf, buflen, 0, nsap, nsaplen) != buflen) in send_dg()
917 Aerror(statp, stderr, "sendto", errno, nsap, nsaplen); in send_dg()