Searched refs:_vcsock (Results 1 – 3 of 3) sorted by relevance
/system/netd/resolv/ |
D | res_send.cpp | 731 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() 736 if (getpeername(statp->_vcsock, (struct sockaddr*) (void*) &peer, &size) < 0 || in send_vc() 738 getsockopt(statp->_vcsock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc() 745 if (statp->_vcsock < 0 || (statp->_flags & RES_F_VC) == 0) { in send_vc() 746 if (statp->_vcsock >= 0) res_nclose(statp); in send_vc() 748 statp->_vcsock = socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0); in send_vc() 749 if (statp->_vcsock < 0) { in send_vc() 762 fchown(statp->_vcsock, AID_DNS, -1); in send_vc() 764 if (setsockopt(statp->_vcsock, SOL_SOCKET, SO_MARK, &statp->_mark, in send_vc() 772 if (random_bind(statp->_vcsock, nsap->sa_family) < 0) { in send_vc() [all …]
|
D | res_init.cpp | 155 statp->_vcsock = -1; in res_vinit() 282 if (statp->_vcsock >= 0) { in res_nclose() 283 (void) close(statp->_vcsock); in res_nclose() 284 statp->_vcsock = -1; in res_nclose()
|
D | resolv_private.h | 106 int _vcsock; /* PRIVATE: for res_send VC i/o */ member
|