Home
last modified time | relevance | path

Searched refs:tcp_nssock (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
Dres_send.cpp735 if (statp->tcp_nssock >= 0 && (statp->flags & RES_F_VC) != 0) { in send_vc()
740 if (getpeername(statp->tcp_nssock, (struct sockaddr*)(void*)&peer, &size) < 0 || in send_vc()
742 getsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &old_mark, &mark_size) < 0 || in send_vc()
748 if (statp->tcp_nssock < 0 || (statp->flags & RES_F_VC) == 0) { in send_vc()
749 if (statp->tcp_nssock >= 0) statp->closeSockets(); in send_vc()
751 statp->tcp_nssock.reset(socket(nsap->sa_family, SOCK_STREAM | SOCK_CLOEXEC, 0)); in send_vc()
752 if (statp->tcp_nssock < 0) { in send_vc()
766 resolv_tag_socket(statp->tcp_nssock, uid, statp->pid); in send_vc()
768 if (setsockopt(statp->tcp_nssock, SOL_SOCKET, SO_MARK, &statp->mark, in send_vc()
776 if (random_bind(statp->tcp_nssock, nsap->sa_family) < 0) { in send_vc()
[all …]
Dresolv_private.h123 tcp_nssock.reset(); in closeSockets()
143 android::base::unique_fd tcp_nssock; // TCP socket (but why not one per nameserver?) member