Lines Matching defs:req
31 lwres_grbnrequest_render(lwres_context_t *ctx, lwres_grbnrequest_t *req,
41 REQUIRE(req != NULL);
42 REQUIRE(req->name != NULL);
46 datalen = (lwres_uint16_t) strlen(req->name);
48 payload_length = 4 + 2 + 2 + 2 + req->namelen + 1;
77 lwres_buffer_putuint32(b, req->flags);
82 lwres_buffer_putuint16(b, req->rdclass);
87 lwres_buffer_putuint16(b, req->rdtype);
94 lwres_buffer_putmem(b, (unsigned char *)req->name, datalen);
104 lwres_grbnresponse_render(lwres_context_t *ctx, lwres_grbnresponse_t *req,
115 REQUIRE(req != NULL);
122 payload_length += 2 + req->realnamelen + 1;
124 for (x = 0; x < req->nrdatas; x++)
125 payload_length += 2 + req->rdatalen[x];
126 for (x = 0; x < req->nsigs; x++)
127 payload_length += 2 + req->siglen[x];
155 lwres_buffer_putuint32(b, req->flags);
158 lwres_buffer_putuint16(b, req->rdclass);
159 lwres_buffer_putuint16(b, req->rdtype);
160 lwres_buffer_putuint32(b, req->ttl);
161 lwres_buffer_putuint16(b, req->nrdatas);
162 lwres_buffer_putuint16(b, req->nsigs);
165 datalen = req->realnamelen;
167 lwres_buffer_putmem(b, (unsigned char *)req->realname, datalen);
171 for (x = 0; x < req->nrdatas; x++) {
172 datalen = req->rdatalen[x];
174 lwres_buffer_putmem(b, req->rdatas[x], datalen);
178 for (x = 0; x < req->nsigs; x++) {
179 datalen = req->siglen[x];
181 lwres_buffer_putmem(b, req->sigs[x], datalen);