Lines Matching refs:pkt
61 * pkt is initialised and transferred to buffer b. The contents of *req
68 * packet pkt to a lwres_nooprequest_t structure. Buffer b provides space
117 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
126 REQUIRE(pkt != NULL);
137 pkt->length = buflen;
138 pkt->version = LWRES_LWPACKETVERSION_0;
139 pkt->pktflags &= ~LWRES_LWPACKETFLAG_RESPONSE;
140 pkt->opcode = LWRES_OPCODE_NOOP;
141 pkt->result = 0;
142 pkt->authtype = 0;
143 pkt->authlength = 0;
145 ret = lwres_lwpacket_renderheader(b, pkt);
170 lwres_lwpacket_t *pkt, lwres_buffer_t *b)
179 REQUIRE(pkt != NULL);
190 pkt->length = buflen;
191 pkt->version = LWRES_LWPACKETVERSION_0;
192 pkt->pktflags |= LWRES_LWPACKETFLAG_RESPONSE;
193 pkt->opcode = LWRES_OPCODE_NOOP;
194 pkt->authtype = 0;
195 pkt->authlength = 0;
197 ret = lwres_lwpacket_renderheader(b, pkt);
218 /*% Uses context ctx to convert the contents of packet pkt to a lwres_nooprequest_t structure. */
221 lwres_lwpacket_t *pkt, lwres_nooprequest_t **structp)
228 REQUIRE(pkt != NULL);
231 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) != 0)
269 lwres_lwpacket_t *pkt, lwres_noopresponse_t **structp)
276 REQUIRE(pkt != NULL);
279 if ((pkt->pktflags & LWRES_LWPACKETFLAG_RESPONSE) == 0)