Lines Matching refs:ResState

157 static int setupUdpSocket(ResState* statp, const sockaddr* sockap, unique_fd* fd_out, int* terrno);
158 static int send_dg(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
160 static int send_vc(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans,
162 static int send_mdns(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* terrno,
170 static int res_private_dns_send(ResState*, const Slice query, const Slice answer, int* rcode,
172 static int res_tls_send(const std::list<DnsTlsServer>& tlsServers, ResState*, const Slice query,
174 static ssize_t res_doh_send(ResState*, const Slice query, const Slice answer, int* rcode);
314 static int res_ourserver_p(ResState* statp, const sockaddr* sa) { in res_ourserver_p()
439 int res_nsend(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* rcode, in res_nsend()
687 static struct timespec get_timeout(ResState* statp, const res_params* params, const int addrIndex) { in get_timeout()
708 static int send_vc(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans, in send_vc()
980 static std::vector<pollfd> extractUdpFdset(ResState* statp, const short events = POLLIN) { in extractUdpFdset()
988 static Result<std::vector<int>> udpRetryingPoll(ResState* statp, const timespec* finish) { in udpRetryingPoll()
1014 static Result<std::vector<int>> udpRetryingPollWrapper(ResState* statp, int addrInfo, in udpRetryingPollWrapper()
1026 bool ignoreInvalidAnswer(ResState* statp, const sockaddr_storage& from, span<const uint8_t> msg, in ignoreInvalidAnswer()
1053 static int setupUdpSocket(ResState* statp, const sockaddr* sockap, unique_fd* fd_out, int* terrno) { in setupUdpSocket()
1085 static int send_dg(ResState* statp, res_params* params, span<const uint8_t> msg, span<uint8_t> ans, in send_dg()
1211 static int send_mdns(ResState* statp, span<const uint8_t> msg, span<uint8_t> ans, int* terrno, in send_mdns()
1305 static int res_private_dns_send(ResState* statp, const Slice query, const Slice answer, int* rcode, in res_private_dns_send()
1375 ssize_t res_doh_send(ResState* statp, const Slice query, const Slice answer, int* rcode) { in res_doh_send()
1412 int res_tls_send(const std::list<DnsTlsServer>& tlsServers, ResState* statp, const Slice query, in res_tls_send()
1462 ResState res(netContext, event); in resolv_res_nsend()