Lines Matching defs:pkt
52 * pkt is initialised and transferred to buffer b. The contents of *req
59 * packet pkt to a lwres_nooprequest_t structure. Buffer b provides space
108 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
117 REQUIRE(pkt != NULL);
128 pkt->length = (lwres_uint32_t)buflen;
129 pkt->version = LWRES_LWPACKETVERSION_0;
130 pkt->pktflags &= ~LWRES_LWPACKETFLAG_RESPONSE;
131 pkt->opcode = LWRES_OPCODE_NOOP;
132 pkt->result = 0;
133 pkt->authtype = 0;
134 pkt->authlength = 0;
136 ret = lwres_lwpacket_renderheader(b, pkt);
161 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
170 REQUIRE(pkt != NULL);
181 pkt->length = (lwres_uint32_t)buflen;
182 pkt->version = LWRES_LWPACKETVERSION_0;
183 pkt->pktflags |= LWRES_LWPACKETFLAG_RESPONSE;
184 pkt->opcode = LWRES_OPCODE_NOOP;
185 pkt->authtype = 0;
186 pkt->authlength = 0;
188 ret = lwres_lwpacket_renderheader(b, pkt);
209 /*% Uses context ctx to convert the contents of packet pkt to a lwres_nooprequest_t structure. */
212 lwres_lwpacket_t *pkt, lwres_nooprequest_t **structp)
219 REQUIRE(pkt != NULL);
222 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) != 0)
260 lwres_lwpacket_t *pkt, lwres_noopresponse_t **structp)
267 REQUIRE(pkt != NULL);
270 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) == 0)