Lines Matching defs:hdr
1472 struct dns_hdr hdr;
1475 memset(&hdr, 0, sizeof(hdr));
1476 hdr.flags1 = flags;
1477 hdr.numquestions = lwip_htons(outpkt->questions);
1478 hdr.numanswers = lwip_htons(outpkt->answers);
1479 hdr.numauthrr = lwip_htons(outpkt->authoritative);
1480 hdr.numextrarr = lwip_htons(outpkt->additional);
1481 hdr.id = lwip_htons(outpkt->tx_id);
1482 pbuf_take(outpkt->pbuf, &hdr, sizeof(hdr));
1855 struct dns_hdr hdr;
1870 if (pbuf_copy_partial(p, &hdr, SIZEOF_DNS_HDR, offset) < SIZEOF_DNS_HDR) {
1876 if (DNS_HDR_GET_OPCODE(&hdr)) {
1887 packet.tx_id = lwip_ntohs(hdr.id);
1888 packet.questions = packet.questions_left = lwip_ntohs(hdr.numquestions);
1889 packet.answers = packet.answers_left = lwip_ntohs(hdr.numanswers) + lwip_ntohs(hdr.numauthrr) + lwip_ntohs(hdr.numextrarr);
1907 if (hdr.flags1 & DNS_FLAG1_RESPONSE) {