Lines Matching refs:request

70 struct request;
102 struct request *timeout_list[TIMEOUT];
106 struct request *request_hash[1 << HASHSIZE];
110 struct request {
112 * Request ID that we use in relayed request.
117 * pxdns::generation used for this request
127 * PCB from which we have received this request. lwIP doesn't
134 * Client this request is from and its original request ID.
143 struct request **pprev_hash;
144 struct request *next_hash;
149 struct request **pprev_timeout;
150 struct request *next_timeout;
168 * Client request. ID is replaced with ours, original saved in
170 * don't want to hold onto pbuf of the request.
187 static int pxdns_rexmit(struct pxdns *pxdns, struct request *req);
188 static int pxdns_forward_outbound(struct pxdns *pxdns, struct request *req);
193 static void pxdns_request_register(struct pxdns *pxdns, struct request *req);
194 static void pxdns_request_deregister(struct pxdns *pxdns, struct request *req);
195 static struct request *pxdns_request_find(struct pxdns *pxdns, u16_t id);
197 static void pxdns_hash_add(struct pxdns *pxdns, struct request *req);
198 static void pxdns_hash_del(struct pxdns *pxdns, struct request *req);
199 static void pxdns_timeout_add(struct pxdns *pxdns, struct request *req);
200 static void pxdns_timeout_del(struct pxdns *pxdns, struct request *req);
202 static void pxdns_request_free(struct request *req);
398 pxdns_request_free(struct request *req)
411 pxdns_hash_add(struct pxdns *pxdns, struct request *req)
413 struct request **chain;
427 pxdns_timeout_add(struct pxdns *pxdns, struct request *req)
429 struct request **chain;
451 pxdns_hash_del(struct pxdns *pxdns, struct request *req)
466 pxdns_timeout_del(struct pxdns *pxdns, struct request *req)
487 * Do bookkeeping on new request. Called from pxdns_query().
490 pxdns_request_register(struct pxdns *pxdns, struct request *req)
503 pxdns_request_deregister(struct pxdns *pxdns, struct request *req)
516 * Find request by the id we used when relaying it and remove it from
520 static struct request *
523 struct request *req = NULL;
527 /* find request in the id->req hash */
552 struct request **chain, *req;
559 * expired requests. If any expired request is retransmitted, we
571 struct request *expired = req;
622 struct request *req;
631 req = calloc(1, sizeof(struct request) - 1 + p->tot_len);
637 /* copy request data */
641 /* save client identity and client's request id */
647 /* slap our request id onto it */
678 * Forward request to the req::residx resolver in the pxdns::resolvers
684 pxdns_forward_outbound(struct pxdns *pxdns, struct request *req)
732 * Forward request to the next resolver in the pxdns::resolvers array
736 pxdns_rexmit(struct pxdns *pxdns, struct request *req)
765 struct request *req;
848 * Called on lwIP thread via request::msg_reply callback.
853 struct request *req = (struct request *)ctx;