Lines Matching refs:query
57 * - it takes raw DNS query packet data as input, and returns raw DNS
69 * - the implementation is just a (query-data) => (answer-data) hash table
81 * - the client calls _resolv_cache_lookup() before performing a query
130 * * 1) we've added IPv6 support so each dns query results in 2 responses
152 /* set to 1 to debug query data */
332 /* dump the content of a query of packet to the log */
367 * ID : 16 : 16-bit unique query identification field
391 * QNAME : variable : Query DNS NAME
392 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
393 * CLASS : 16 : class of query (IN=1)
398 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
399 * CLASS : 16 : class of query (IN=1)
495 /** QUERY CHECKING
516 /* parse and skip a given QNAME stored in a query packet,
580 /* check the header of a DNS Query packet, return 1 if it is one
581 * type of query we can cache, or 0 otherwise
590 XLOG("query packet too small");
597 XLOG("query packet flags unsupported");
604 * - there is no point for a query packet sent to a server
606 * set the bit in the query buffer for its own needs
612 * query might be different, hence that the RD bit
616 * comparing query packets, but not TC
626 XLOG("query packet contains non-query records");
631 XLOG("query packet doesn't contain query record");
645 /** QUERY DEBUGGING
752 /** QUERY HASHING SUPPORT
854 /** QUERY COMPARISON
993 const uint8_t* query;
1127 * data in the query (key) */
1133 _dnsPacket_init(pack, e->query, e->querylen);
1137 /* initialize an Entry as a search key, this also checks the input query packet
1140 entry_init_key( Entry* e, const void* query, int querylen )
1146 e->query = query;
1150 _dnsPacket_init(pack, query, querylen);
1168 query = (const uint8_t*)(e+1);
1171 memcpy( (char*)e->query, init->query, e->querylen );
1173 e->answer = e->query + e->querylen;
1189 _dnsPacket_init(pack1, e1->query, e1->querylen);
1190 _dnsPacket_init(pack2, e2->query, e2->querylen);
1336 /* notify the cache that the query failed */
1339 const void* query,
1345 if (!entry_init_key(key, query, querylen))
1425 _dump_query( const uint8_t* query, int querylen )
1430 _dnsPacket_init(pack, query, querylen);
1432 XLOG("QUERY: %s", temp);
1578 XLOG_QUERY(oldest->query, oldest->querylen);
1607 const void* query,
1622 XLOG_QUERY(query, querylen);
1625 if (!entry_init_key(key, query, querylen)) {
1626 XLOG("%s: unsupported query", __FUNCTION__);
1648 // that matching this query
1665 XLOG_QUERY(e->query, e->querylen);
1697 const void* query,
1708 /* don't assume that the query has already been cached
1710 if (!entry_init_key( key, query, querylen )) {
1711 XLOG( "%s: passed invalid query ?", __FUNCTION__);
1722 XLOG( "%s: query:", __FUNCTION__ );
1723 XLOG_QUERY(query,querylen);