Lines Matching defs:req
40 lwres_grbnrequest_render(lwres_context_t *ctx, lwres_grbnrequest_t *req,
50 REQUIRE(req != NULL);
51 REQUIRE(req->name != NULL);
55 datalen = strlen(req->name);
57 payload_length = 4 + 2 + 2 + 2 + req->namelen + 1;
86 lwres_buffer_putuint32(b, req->flags);
91 lwres_buffer_putuint16(b, req->rdclass);
96 lwres_buffer_putuint16(b, req->rdtype);
103 lwres_buffer_putmem(b, (unsigned char *)req->name, datalen);
113 lwres_grbnresponse_render(lwres_context_t *ctx, lwres_grbnresponse_t *req,
124 REQUIRE(req != NULL);
131 payload_length += 2 + req->realnamelen + 1;
133 for (x = 0; x < req->nrdatas; x++)
134 payload_length += 2 + req->rdatalen[x];
135 for (x = 0; x < req->nsigs; x++)
136 payload_length += 2 + req->siglen[x];
164 lwres_buffer_putuint32(b, req->flags);
167 lwres_buffer_putuint16(b, req->rdclass);
168 lwres_buffer_putuint16(b, req->rdtype);
169 lwres_buffer_putuint32(b, req->ttl);
170 lwres_buffer_putuint16(b, req->nrdatas);
171 lwres_buffer_putuint16(b, req->nsigs);
174 datalen = req->realnamelen;
176 lwres_buffer_putmem(b, (unsigned char *)req->realname, datalen);
180 for (x = 0; x < req->nrdatas; x++) {
181 datalen = req->rdatalen[x];
183 lwres_buffer_putmem(b, req->rdatas[x], datalen);
187 for (x = 0; x < req->nsigs; x++) {
188 datalen = req->siglen[x];
190 lwres_buffer_putmem(b, req->sigs[x], datalen);