Lines Matching refs:header
57 struct dns_header *header = (struct dns_header *)daemon->packet;
58 unsigned char *p = (unsigned char *)(header+1);
63 header->id = rand16();
64 header->ancount = header->nscount = header->arcount = htons(0);
65 header->qdcount = htons(1);
66 header->hb3 = HB3_RD;
67 header->hb4 = 0;
68 SET_OPCODE(header, QUERY);
80 return p - (unsigned char *)header;