Home | History | Annotate | Download | only in resolv

Lines Matching defs:query

61  *  - it takes raw DNS query packet data as input, and returns raw DNS
73 * - the implementation is just a (query-data) => (answer-data) hash table
85 * - the client calls _resolv_cache_lookup() before performing a query
124 * * 1) we've added IPv6 support so each dns query results in 2 responses
145 /* set to 1 to debug query data */
333 /* dump the content of a query of packet to the log */
365 * ID : 16 : 16-bit unique query identification field
389 * QNAME : variable : Query DNS NAME
390 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
391 * CLASS : 16 : class of query (IN=1)
396 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
397 * CLASS : 16 : class of query (IN=1)
493 /** QUERY CHECKING
514 /* parse and skip a given QNAME stored in a query packet,
578 /* check the header of a DNS Query packet, return 1 if it is one
579 * type of query we can cache, or 0 otherwise
588 XLOG("query packet too small");
595 XLOG("query packet flags unsupported");
602 * - there is no point for a query packet sent to a server
604 * set the bit in the query buffer for its own needs
609 * - we consider that the result from a query might depend on
614 * comparing query packets, but not TC
624 XLOG("query packet contains non-query records");
629 XLOG("query packet doesn't contain query record");
643 /** QUERY DEBUGGING
750 /** QUERY HASHING SUPPORT
876 /** QUERY COMPARISON
959 /* compare query + TTL */
1055 const uint8_t* query;
1189 * data in the query (key) */
1195 _dnsPacket_init(pack, e->query, e->querylen);
1199 /* initialize an Entry as a search key, this also checks the input query packet
1202 entry_init_key( Entry* e, const void* query, int querylen )
1208 e->query = query;
1212 _dnsPacket_init(pack, query, querylen);
1230 e->query = (const uint8_t*)(e+1);
1233 memcpy( (char*)e->query, init->query, e->querylen );
1235 e->answer = e->query + e->querylen;
1251 _dnsPacket_init(pack1, e1->query, e1->querylen);
1252 _dnsPacket_init(pack2, e2->query, e2->querylen);
1402 /* notify the cache that the query failed */
1405 const void* query,
1411 if (!entry_init_key(key, query, querylen))
1493 _dump_query( const uint8_t* query, int querylen )
1498 _dnsPacket_init(pack, query, querylen);
1500 XLOG("QUERY: %s", temp);
1646 XLOG_QUERY(oldest->query, oldest->querylen);
1675 const void* query,
1690 XLOG_QUERY(query, querylen);
1693 if (!entry_init_key(key, query, querylen)) {
1694 XLOG("%s: unsupported query", __FUNCTION__);
1716 // that matching this query
1733 XLOG_QUERY(e->query, e->querylen);
1765 const void* query,
1776 /* don't assume that the query has already been cached
1778 if (!entry_init_key( key, query, querylen )) {
1779 XLOG( "%s: passed invalid query ?", __FUNCTION__);
1790 XLOG( "%s: query:", __FUNCTION__ );
1791 XLOG_QUERY(query,querylen);