Lines Matching defs:pData
110 hash_remove_request(pData, (struct request *)arg);
116 timeout(PNATState pData, struct socket *so, void *arg)
123 if ( req->dnsgen != pData->dnsgen
127 if (req->dnsgen != pData->dnsgen)
131 req, req->dnsgen, pData->dnsgen, so));
133 hash_remove_request(pData, req);
146 m = slirpDnsMbufAlloc(pData);
166 ip->ip_dst.s_addr = RT_H2N_U32(RT_N2H_U32(pData->special_addr.s_addr) | CTL_DNS);
177 dnsproxy_query(pData, so, m, iphlen);
209 dnsproxy_query(PNATState pData, struct socket *so, struct mbuf *m, int iphlen)
264 if (is_internal(pData, fromaddr.sin_addr)) {
274 hash_add_request(pData, req);
316 AssertPtr(pData);
364 req->dns_server = TAILQ_LAST(&pData->pDnsList, dns_list_head);
365 req->dnsgen = pData->dnsgen;
379 if (req->dnsgen != pData->dnsgen)
383 req, req->dnsgen, pData->dnsgen, so));
400 hash_add_request(pData, req);
411 if (req->dns_server->de_addr.s_addr == (pData->special_addr.s_addr | RT_H2N_U32_C(CTL_ALIAS))) {
471 dnsproxy_answer(PNATState pData, struct socket *so, struct mbuf *m)
497 if ((query = hash_find_request(pData, *((unsigned short *)&buf))) == NULL) {
503 hash_remove_request(pData, query);
524 AssertPtr(pData);
537 query = hash_find_request(pData, *((unsigned short *)buf));
554 hash_remove_request(pData, query);
568 dnsproxy_init(PNATState pData)