Lines Matching refs:req
60 * request structure req to canonical format. The packet header structure
61 * pkt is initialised and transferred to buffer b. The contents of *req
114 /*% Uses resolver context ctx to convert no-op request structure req to canonical format. */
116 lwres_nooprequest_render(lwres_context_t *ctx, lwres_nooprequest_t *req,
125 REQUIRE(req != NULL);
129 payload_length = sizeof(lwres_uint16_t) + req->datalength;
158 lwres_buffer_putuint16(b, req->datalength);
159 lwres_buffer_putmem(b, req->data, req->datalength);
169 lwres_noopresponse_render(lwres_context_t *ctx, lwres_noopresponse_t *req,
178 REQUIRE(req != NULL);
182 payload_length = sizeof(lwres_uint16_t) + req->datalength;
210 lwres_buffer_putuint16(b, req->datalength);
211 lwres_buffer_putmem(b, req->data, req->datalength);
224 lwres_nooprequest_t *req;
234 req = CTXMALLOC(sizeof(lwres_nooprequest_t));
235 if (req == NULL)
242 req->datalength = lwres_buffer_getuint16(b);
244 if (!SPACE_REMAINING(b, req->datalength)) {
248 req->data = b->base + b->current;
249 lwres_buffer_forward(b, req->datalength);
257 *structp = req;
262 CTXFREE(req, sizeof(lwres_nooprequest_t));
272 lwres_noopresponse_t *req;
282 req = CTXMALLOC(sizeof(lwres_noopresponse_t));
283 if (req == NULL)
290 req->datalength = lwres_buffer_getuint16(b);
292 if (!SPACE_REMAINING(b, req->datalength)) {
296 req->data = b->base + b->current;
298 lwres_buffer_forward(b, req->datalength);
305 *structp = req;
310 CTXFREE(req, sizeof(lwres_noopresponse_t));