Searched refs:tcp_nssock (Results 1 – 3 of 3) sorted by relevance
/packages/modules/DnsResolver/ |
D | res_send.cpp | 690 if (statp->tcp_nssock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() 695 if (getpeername(statp->tcp_nssock, (struct sockaddr*)(void*)&peer, &size) < 0 || in send_vc() 697 getsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc() 703 if (statp->tcp_nssock < 0 || (statp->_flags & RES_F_VC) == 0) { in send_vc() 704 if (statp->tcp_nssock >= 0) statp->closeSockets(); in send_vc() 706 statp->tcp_nssock.reset(socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0)); in send_vc() 707 if (statp->tcp_nssock < 0) { in send_vc() 720 resolv_tag_socket(statp->tcp_nssock, uid, statp->pid); in send_vc() 722 if (setsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &statp->_mark, in send_vc() 730 if (random_bind(statp->tcp_nssock, nsap->sa_family) < 0) { in send_vc() [all …]
|
D | res_init.cpp | 108 statp->tcp_nssock.reset(); in res_init() 129 resOutput.tcp_nssock.reset(); in fromResState()
|
D | resolv_private.h | 90 tcp_nssock.reset(); in closeSockets() 110 android::base::unique_fd tcp_nssock; // TCP socket (but why not one per nameserver?) member
|