Lines Matching defs:query
101 /* timeout -- Called by the event loop when a query times out. Removes the
102 * query from the queue.
194 * listening socket. Read the packet, create a new query, append it to the
247 LogRel(("query too short from %s\n", inet_ntoa(fromaddr.sin_addr)));
263 /* where is this query coming from? */
266 DPRINTF(("Internal query RD=%d\n", req->recursion));
270 DPRINTF(("External query RD=%d\n", RD(buf)));
276 /* overwrite the original query id */
342 LogRel(("query too short from %RTnaipv4\n", fromaddr.sin_addr));
382 LogRel(("NAT: dnsproxy: query: req %p dnsgen %u != %u on %R[natsock]\n",
397 DPRINTF(("External query RD=%d\n", RD(buf)));
403 /* overwrite the original query id */
458 * server. Find the corresponding query and send answer back to querying
477 struct request *query = NULL;
496 /* find corresponding query */
497 if ((query = hash_find_request(pData, *((unsigned short *)&buf))) == NULL) {
501 event_del(&query->timeout);
503 hash_remove_request(pData, query);
505 /* restore original query id */
506 memcpy(&buf[0], &query->clientid, 2);
509 (struct sockaddr *)&query->client,
517 free(query);
522 struct request *query = NULL;
537 query = hash_find_request(pData, *((unsigned short *)buf));
539 /* find corresponding query */
540 if (query == NULL)
547 Log2(("NAT: query wasn't found\n"));
554 hash_remove_request(pData, query);
556 /* restore original query id */
557 memcpy(&buf[0], &query->clientid, 2);
561 RTMemFree(query);
627 /* Create and bind query socket */