Lines Matching refs:hdr
563 struct dns_hdr *hdr;
581 hdr = (struct dns_hdr*)p->payload;
582 memset(hdr, 0, SIZEOF_DNS_HDR);
583 hdr->id = htons(id);
584 hdr->flags1 = DNS_FLAG1_RD;
585 hdr->numquestions = PP_HTONS(1);
586 query = (char*)hdr + SIZEOF_DNS_HDR;
737 struct dns_hdr *hdr;
764 hdr = (struct dns_hdr*)dns_payload;
765 i = htons(hdr->id);
771 pEntry->err = hdr->flags2 & DNS_FLAG2_ERR_MASK;
775 nquestions = htons(hdr->numquestions);
776 nanswers = htons(hdr->numanswers);
779 if (((hdr->flags1 & DNS_FLAG1_RESPONSE) == 0) || (pEntry->err != 0) || (nquestions != 1)) {