• Home
  • Raw
  • Download

Lines Matching refs:querylen

707     int querylen;  member
834 _dnsPacket_init(pack, e->query, e->querylen); in entry_hash()
840 static int entry_init_key(Entry* e, const void* query, int querylen) { in entry_init_key() argument
846 e->querylen = querylen; in entry_init_key()
849 _dnsPacket_init(pack, e->query, e->querylen); in entry_init_key()
859 size = sizeof(*e) + init->querylen + answerlen; in entry_alloc()
865 e->querylen = init->querylen; in entry_alloc()
867 memcpy((char*) e->query, init->query, e->querylen); in entry_alloc()
869 e->answer = e->query + e->querylen; in entry_alloc()
880 if (e1->querylen != e2->querylen) { in entry_equals()
883 _dnsPacket_init(pack1, e1->query, e1->querylen); in entry_equals()
884 _dnsPacket_init(pack2, e2->query, e2->querylen); in entry_equals()
1097 void _resolv_cache_query_failed(unsigned netid, const void* query, int querylen, uint32_t flags) { in _resolv_cache_query_failed() argument
1104 if (!entry_init_key(key, query, querylen)) return; in _resolv_cache_query_failed()
1197 res_pquery(oldest->query, oldest->querylen); in _cache_remove_oldest()
1226 ResolvCacheStatus resolv_cache_lookup(unsigned netid, const void* query, int querylen, void* answer, in resolv_cache_lookup() argument
1245 if (!entry_init_key(&key, query, querylen)) { in resolv_cache_lookup()
1302 res_pquery(e->query, e->querylen); in resolv_cache_lookup()
1326 int resolv_cache_add(unsigned netid, const void* query, int querylen, const void* answer, in resolv_cache_add() argument
1336 if (!entry_init_key(key, query, querylen)) { in resolv_cache_add()