Home | History | Annotate | Download | only in resolv

Lines Matching refs:query

55  *  - it takes raw DNS query packet data as input, and returns raw DNS
67 * - the implementation is just a (query-data) => (answer-data) hash table
79 * - the client calls _resolv_cache_lookup() before performing a query
157 /* set to 1 to debug query data */
338 /* dump the content of a query of packet to the log */
373 * ID : 16 : 16-bit unique query identification field
397 * QNAME : variable : Query DNS NAME
398 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
399 * CLASS : 16 : class of query (IN=1)
404 * TYPE : 16 : type of query (A=1, PTR=12, MX=15, AAAA=28, ALL=255)
405 * CLASS : 16 : class of query (IN=1)
501 /** QUERY CHECKING
522 /* parse and skip a given QNAME stored in a query packet,
588 /* check the header of a DNS Query packet, return 1 if it is one
589 * type of query we can cache, or 0 otherwise
598 XLOG("query packet too small");
605 XLOG("query packet flags unsupported");
612 * - there is no point for a query packet sent to a server
614 * set the bit in the query buffer for its own needs
620 * query might be different, hence that the RD bit
624 * comparing query packets, but not TC
634 XLOG("query packet contains non-query records");
639 XLOG("query packet doesn't contain query record");
653 /** QUERY DEBUGGING
760 /** QUERY HASHING SUPPORT
864 /** QUERY COMPARISON
1003 const uint8_t* query;
1081 * data in the query (key) */
1087 _dnsPacket_init(pack, e->query, e->querylen);
1091 /* initialize an Entry as a search key, this also checks the input query packet
1094 entry_init_key( Entry* e, const void* query, int querylen )
1100 e->query = query;
1104 _dnsPacket_init(pack, query, querylen);
1122 e->query = (const uint8_t*)(e+1);
1125 memcpy( (char*)e->query, init->query, e->querylen );
1127 e->answer = e->query + e->querylen;
1143 _dnsPacket_init(pack1, e1->query, e1->querylen);
1144 _dnsPacket_init(pack2, e2->query, e2->querylen);
1258 _dump_query( const uint8_t* query, int querylen )
1263 _dnsPacket_init(pack, query, querylen);
1265 XLOG("QUERY: %s", temp);
1410 XLOG_QUERY(oldest->query, oldest->querylen);
1418 const void* query,
1434 XLOG_QUERY(query, querylen);
1437 if (!entry_init_key(key, query, querylen)) {
1438 XLOG("%s: unsupported query", __FUNCTION__);
1460 XLOG_QUERY(e->query, e->querylen);
1492 const void* query,
1502 /* don't assume that the query has already been cached
1504 if (!entry_init_key( key, query, querylen )) {
1505 XLOG( "%s: passed invalid query ?", __FUNCTION__);
1511 XLOG( "%s: query:", __FUNCTION__ );
1512 XLOG_QUERY(query,querylen);