Lines Matching defs:pkt
56 header structure pkt is initialised and transferred to buffer b. The
63 packet pkt to a lwres_gabnrequest_t structure. Buffer b provides space
113 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
124 REQUIRE(pkt != NULL);
138 pkt->length = (lwres_uint32_t)buflen;
139 pkt->version = LWRES_LWPACKETVERSION_0;
140 pkt->pktflags &= ~LWRES_LWPACKETFLAG_RESPONSE;
141 pkt->opcode = LWRES_OPCODE_GETADDRSBYNAME;
142 pkt->result = 0;
143 pkt->authtype = 0;
144 pkt->authlength = 0;
146 ret = lwres_lwpacket_renderheader(b, pkt);
180 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
192 REQUIRE(pkt != NULL);
219 pkt->length = (lwres_uint32_t)buflen;
220 pkt->version = LWRES_LWPACKETVERSION_0;
221 pkt->pktflags |= LWRES_LWPACKETFLAG_RESPONSE;
222 pkt->opcode = LWRES_OPCODE_GETADDRSBYNAME;
223 pkt->authtype = 0;
224 pkt->authlength = 0;
226 ret = lwres_lwpacket_renderheader(b, pkt);
270 INSIST(LWRES_BUFFER_USEDCOUNT(b) == pkt->length);
274 /*% Uses context ctx to convert the contents of packet pkt to a lwres_gabnrequest_t structure. */
277 lwres_lwpacket_t *pkt, lwres_gabnrequest_t **structp)
287 REQUIRE(pkt != NULL);
291 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) != 0)
327 lwres_lwpacket_t *pkt, lwres_gabnresponse_t **structp)
339 REQUIRE(pkt != NULL);
345 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) == 0)