Lines Matching defs:req
64 getaddrbyname request structure req to canonical format. The packet
66 contents of *req are then appended to the buffer in canonical format.
119 /*% uses resolver context ctx to convert getaddrbyname request structure req to canonical format. */
121 lwres_gabnrequest_render(lwres_context_t *ctx, lwres_gabnrequest_t *req,
131 REQUIRE(req != NULL);
132 REQUIRE(req->name != NULL);
136 datalen = strlen(req->name);
138 payload_length = 4 + 4 + 2 + req->namelen + 1;
167 lwres_buffer_putuint32(b, req->flags);
172 lwres_buffer_putuint32(b, req->addrtypes);
179 lwres_buffer_putmem(b, (unsigned char *)req->name, datalen);
188 lwres_gabnresponse_render(lwres_context_t *ctx, lwres_gabnresponse_t *req,
200 REQUIRE(req != NULL);
207 payload_length += 2 + req->realnamelen + 1;
209 for (x = 0; x < req->naliases; x++)
210 payload_length += 2 + req->aliaslen[x] + 1;
213 addr = LWRES_LIST_HEAD(req->addrs);
220 INSIST(x == req->naddrs);
248 lwres_buffer_putuint32(b, req->flags);
251 lwres_buffer_putuint16(b, req->naliases);
252 lwres_buffer_putuint16(b, req->naddrs);
255 datalen = req->realnamelen;
257 lwres_buffer_putmem(b, (unsigned char *)req->realname, datalen);
261 for (x = 0; x < req->naliases; x++) {
262 datalen = req->aliaslen[x];
264 lwres_buffer_putmem(b, (unsigned char *)req->aliases[x],
270 addr = LWRES_LIST_HEAD(req->addrs);