Lines Matching defs:hdr
785 struct dns_hdr hdr;
827 memset(&hdr, 0, SIZEOF_DNS_HDR);
828 hdr.id = lwip_htons(entry->txid);
829 hdr.flags1 = DNS_FLAG1_RD;
830 hdr.numquestions = PP_HTONS(1);
846 pbuf_take_at(p, &hdr, SIZEOF_DNS_HDR, sizeof(udp_data_hdr));
848 pbuf_take(p, &hdr, SIZEOF_DNS_HDR);
851 pbuf_take(p, &hdr, SIZEOF_DNS_HDR);
1268 struct dns_hdr hdr;
1285 if (pbuf_copy_partial(p, &hdr, SIZEOF_DNS_HDR, 0) == SIZEOF_DNS_HDR) {
1287 txid = lwip_htons(hdr.id);
1295 nquestions = lwip_htons(hdr.numquestions);
1296 nanswers = lwip_htons(hdr.numanswers);
1299 if ((hdr.flags1 & DNS_FLAG1_RESPONSE) == 0) {
1363 if (hdr.flags2 & DNS_FLAG2_ERR_MASK) {