Lines Matching defs:req
58 getnamebyaddr request structure req to canonical format. The packet
60 The contents of *req are then appended to the buffer in canonical
115 /*% Uses resolver context ctx to convert getnamebyaddr request structure req to canonical format. */
117 lwres_gnbarequest_render(lwres_context_t *ctx, lwres_gnbarequest_t *req,
126 REQUIRE(req != NULL);
127 REQUIRE(req->addr.family != 0);
128 REQUIRE(req->addr.length != 0);
132 payload_length = 4 + 4 + 2 + + req->addr.length;
161 lwres_buffer_putuint32(b, req->flags);
162 lwres_buffer_putuint32(b, req->addr.family);
163 lwres_buffer_putuint16(b, req->addr.length);
164 lwres_buffer_putmem(b, (unsigned char *)req->addr.address,
165 req->addr.length);
174 lwres_gnbaresponse_render(lwres_context_t *ctx, lwres_gnbaresponse_t *req,
185 REQUIRE(req != NULL);
194 payload_length += 2 + req->realnamelen + 1; /* real name encoding */
195 for (x = 0; x < req->naliases; x++) /* each alias */
196 payload_length += 2 + req->aliaslen[x] + 1;
219 lwres_buffer_putuint32(b, req->flags);
222 lwres_buffer_putuint16(b, req->naliases);
225 datalen = req->realnamelen;
227 lwres_buffer_putmem(b, (unsigned char *)req->realname, datalen);
231 for (x = 0; x < req->naliases; x++) {
232 datalen = req->aliaslen[x];
234 lwres_buffer_putmem(b, (unsigned char *)req->aliases[x],