30 if (!header[6] && !header[7] && !header[8] &&
31 !header[9] && !header[10] && header[11] == 1) {
33 if (nametype[0] || nametype[1] || nametype[2] !=
DNS_T_OPT[1])
return pos;
36 if (opt_ttl[0])
return pos;
37 if (opt_ttl[1])
return pos;
39 uint16_unpack_big(opt_class,&size);
unsigned int dns_packet_copy(const char *buf, unsigned int len, unsigned int pos, char *out, unsigned int outlen)
unsigned int dns_packet_edns0(const char header[12], const char *buf, const int len, unsigned int pos)
unsigned int max_response_len