Searched refs:tcp_nssock (Results 1 – 3 of 3) sorted by relevance
/packages/modules/DnsResolver/ |
D | res_send.cpp | 681 if (statp->tcp_nssock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() 686 if (getpeername(statp->tcp_nssock, (struct sockaddr*)(void*)&peer, &size) < 0 || in send_vc() 688 getsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc() 694 if (statp->tcp_nssock < 0 || (statp->_flags & RES_F_VC) == 0) { in send_vc() 695 if (statp->tcp_nssock >= 0) statp->closeSockets(); in send_vc() 697 statp->tcp_nssock.reset(socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0)); in send_vc() 698 if (statp->tcp_nssock < 0) { in send_vc() 711 resolv_tag_socket(statp->tcp_nssock, uid, statp->pid); in send_vc() 713 if (setsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &statp->_mark, in send_vc() 721 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
|