Lines Matching defs:pkt
240 lwres_lwpacket_t pkt;
275 pkt.pktflags = 0;
276 pkt.serial = serial;
277 pkt.result = 0;
278 pkt.recvlength = LWRES_RECVLENGTH;
281 ret = lwres_gabnrequest_render(ctx, &request, &pkt, &b_out);
296 ret = lwres_lwpacket_parseheader(&b_in, &pkt);
303 if (pkt.serial != serial)
305 if (pkt.opcode != LWRES_OPCODE_GETADDRSBYNAME)
315 if (pkt.result != LWRES_R_SUCCESS) {
316 ret = pkt.result;
323 ret = lwres_gabnresponse_parse(ctx, &b_in, &pkt, &response);
356 lwres_lwpacket_t pkt;
385 pkt.pktflags = 0;
386 pkt.serial = serial;
387 pkt.result = 0;
388 pkt.recvlength = LWRES_RECVLENGTH;
391 ret = lwres_gnbarequest_render(ctx, &request, &pkt, &b_out);
406 ret = lwres_lwpacket_parseheader(&b_in, &pkt);
413 if (pkt.serial != serial)
415 if (pkt.opcode != LWRES_OPCODE_GETNAMEBYADDR)
425 if (pkt.result != LWRES_R_SUCCESS) {
426 ret = pkt.result;
433 ret = lwres_gnbaresponse_parse(ctx, &b_in, &pkt, &response);
463 lwres_lwpacket_t pkt;
500 pkt.pktflags = 0;
501 pkt.serial = serial;
502 pkt.result = 0;
503 pkt.recvlength = LWRES_RECVLENGTH;
506 ret = lwres_grbnrequest_render(ctx, &request, &pkt, &b_out);
521 ret = lwres_lwpacket_parseheader(&b_in, &pkt);
528 if (pkt.serial != serial)
530 if (pkt.opcode != LWRES_OPCODE_GETRDATABYNAME)
540 if (pkt.result != LWRES_R_SUCCESS) {
541 ret = pkt.result;
548 ret = lwres_grbnresponse_parse(ctx, &b_in, &pkt, &response);