Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 82) sorted by relevance

1234

/trafficserver/tools/git/
H A Dgit_merge_log.pl61 foreach my $hash (keys %$status_branch) {
63 print STDERR "\r[$count / $total] hash: $hash";
76 die if ($status_master->{$hash}[0] ne '=' && $status_master->{$hash}[0] ne '>');
77 die if ($status_branch->{$hash}[0] ne '=' && $status_branch->{$hash}[0] ne '>');
80 shift(@{$status_branch->{$hash}});
83 my @show = `git show $hash`;
112 unshift(@{$status_branch->{$hash}}, 'found');
118 unshift(@{$status_branch->{$hash}}, 'found');
125 unshift(@{$status_branch->{$hash}}, 'found');
131 unshift(@{$status_branch->{$hash}}, 'found');
[all …]
/trafficserver/plugins/experimental/cookie_remap/
H A Dhash.c52 uint32_t hash; in fnv32_nbits() local
53 hash = hash_fnv32_buf(buf, len); in fnv32_nbits()
56 hash = ((hash >> nbits) ^ hash) & MASK(nbits); in fnv32_nbits()
58 hash = (hash >> nbits) ^ (hash & MASK(nbits)); in fnv32_nbits()
61 return hash; in fnv32_nbits()
67 uint32_t hash; in hash_fnv32_buckets() local
80 return hash; in hash_fnv32_buckets()
89 while (hash >= retry) { in hash_fnv32_buckets()
90 hash = (hash * FNV_32_PRIME) + FNV1_32_INIT; in hash_fnv32_buckets()
93 hash %= num_buckets; in hash_fnv32_buckets()
[all …]
/trafficserver/plugins/experimental/mysql_remap/lib/
H A Ddictionary.c124 unsigned hash; in dictionary_hash() local
130 hash += (hash << 10); in dictionary_hash()
131 hash ^= (hash >> 6); in dictionary_hash()
133 hash += (hash << 3); in dictionary_hash()
134 hash ^= (hash >> 11); in dictionary_hash()
135 hash += (hash << 15); in dictionary_hash()
136 return hash; in dictionary_hash()
228 if (hash == d->hash[i]) { in dictionary_get()
282 if (hash == d->hash[i]) { /* Same hash value */ in dictionary_set()
320 d->hash[i] = hash; in dictionary_set()
[all …]
/trafficserver/iocore/hostdb/
H A DHostDB.cc244 if (hash == c->hash.hash) { in is_pending_dns_for_hash()
548 uint64_t folded_hash = hash.hash.fold(); in probe()
568 if (hostDB.is_pending_dns_for_hash(hash.hash)) { in probe()
590 uint64_t folded_hash = hash.hash.fold(); in insert()
903 c->init(hash); in setby()
926 c->init(hash); in setby_srv()
1138 hostDB.pending_dns_for_hash(hash.hash).remove(this); in dnsPendingEvent()
1282 r->key = hash.hash.fold(); // always set the key in dnsEvent()
1588 if (hash.hash == c->hash.hash) { in set_check_pending_dns()
1607 if (hash.hash == c->hash.hash) { in remove_trigger_pending_dns()
[all …]
H A DP_HostDBProcessor.h204 bool is_pending_dns_for_hash(const CryptoHash &hash);
399 CryptoHash hash; ///< The hash value. member
432 HostDBHash hash; member
472 return hash.db_mark == HOSTDB_MARK_IPV4 || hash.db_mark == HOSTDB_MARK_IPV6; in is_byname()
477 return hash.db_mark == HOSTDB_MARK_SRV; in is_srv()
500 void init(HostDBHash const &hash, Options const &opt = DEFAULT_OPTIONS);
507 ink_zero(hash.hash); in HostDBContinuation()
513 master_hash(CryptoHash const &hash) in master_hash() argument
515 return static_cast<int>(hash[1] >> 32); in master_hash()
525 HostDBCache::pending_dns_for_hash(const CryptoHash &hash) in pending_dns_for_hash() argument
[all …]
H A DP_HostDB.h50 Ptr<HostDBInfo> probe(Ptr<ProxyMutex> mutex, CryptoHash const &hash, bool ignore_timeout);
52 void make_crypto_hash(CryptoHash &hash, const char *hostname, int len, int port, const char *pDNSSe…
/trafficserver/src/tscore/
H A DCryptoHash.cc82 ink_code_to_hex_str(char *dest, uint8_t const *hash) in ink_code_to_hex_str() argument
91 *(d + 0) = hex_digits[hash[i + 0] >> 4]; in ink_code_to_hex_str()
92 *(d + 1) = hex_digits[hash[i + 0] & 15]; in ink_code_to_hex_str()
93 *(d + 2) = hex_digits[hash[i + 1] >> 4]; in ink_code_to_hex_str()
94 *(d + 3) = hex_digits[hash[i + 1] & 15]; in ink_code_to_hex_str()
95 *(d + 4) = hex_digits[hash[i + 2] >> 4]; in ink_code_to_hex_str()
96 *(d + 5) = hex_digits[hash[i + 2] & 15]; in ink_code_to_hex_str()
97 *(d + 6) = hex_digits[hash[i + 3] >> 4]; in ink_code_to_hex_str()
98 *(d + 7) = hex_digits[hash[i + 3] & 15]; in ink_code_to_hex_str()
114 bwformat(ts::BufferWriter &w, ts::BWFSpec const &spec, ats::CryptoHash const &hash) in bwformat() argument
[all …]
H A DConsistentHash.cc36 ATSConsistentHash::ATSConsistentHash(int r, ATSHash64 *h) : replicas(r), hash(h) {} in ATSConsistentHash()
49 } else if (hash) { in insert()
50 thash = hash; in insert()
78 } else if (hash) { in lookup()
79 thash = hash; in lookup()
134 } else if (hash) { in lookup_available()
135 thash = hash; in lookup_available()
210 if (hash) { in ~ATSConsistentHash()
211 delete hash; in ~ATSConsistentHash()
H A DMMH.cc379 MMHContext::finalize(CryptoHash &hash) in finalize() argument
381 return 0 == ink_code_incr_MMH_final(hash.u8, &_ctx); in finalize()
407 unsigned char hash[16]; in main() member
419 ink_code_MMH((unsigned char *)sc1, strlen(sc1), h.hash); in main()
455 ink_code_MMH(s, l, h.hash); in main()
457 ink_code_MMH(s1, l, h.hash); in main()
459 ink_code_MMH(s2, l, h.hash); in main()
461 ink_code_MMH(s3, l, h.hash); in main()
473 ink_code_incr_MMH_final((char *)h.hash, &c); in main()
476 ink_code_MMH(s, q, h.hash); in main()
[all …]
H A Dink_code.cc46 MD5Context::finalize(CryptoHash &hash) in finalize() argument
48 return 0 != MD5_Final(hash.u8, &_ctx); in finalize()
/trafficserver/include/tscore/
H A DCryptoHash.h122 virtual bool finalize(CryptoHash &hash) = 0;
125 bool finalize(CryptoHash *hash);
130 bool hash_immediate(CryptoHash &hash, void const *data, int length);
134 CryptoContextBase::hash_immediate(CryptoHash &hash, void const *data, int length) in hash_immediate() argument
136 return this->update(data, length) && this->finalize(hash); in hash_immediate()
140 CryptoContextBase::finalize(CryptoHash *hash) in finalize() argument
142 return this->finalize(*hash); in finalize()
152 bool finalize(CryptoHash &hash) override;
178 CryptoContext::finalize(CryptoHash &hash) in finalize() argument
180 return reinterpret_cast<CryptoContextBase *>(_obj)->finalize(hash); in finalize()
[all …]
H A DSHA256.h46 finalize(CryptoHash &hash) override in finalize() argument
48 return SHA256_Final(hash.u8, &_ctx); in finalize()
/trafficserver/iocore/net/
H A DSSLSessionCache.cc55 uint64_t hash = sid.hash(); in getSessionBuffer() local
56 uint64_t target_bucket = hash % nbuckets; in getSessionBuffer()
65 uint64_t hash = sid.hash(); in getSession() local
66 uint64_t target_bucket = hash % nbuckets; in getSession()
73 target_bucket, bucket, buf, hash); in getSession()
82 uint64_t hash = sid.hash(); in removeSession() local
83 uint64_t target_bucket = hash % nbuckets; in removeSession()
90 target_bucket, bucket, buf, hash); in removeSession()
102 uint64_t hash = sid.hash(); in insertSession() local
103 uint64_t target_bucket = hash % nbuckets; in insertSession()
[all …]
/trafficserver/iocore/cache/
H A DCacheTest.cc561 CryptoHash hash; in test_RamCache() local
567 cache->put(&hash, data[i].get(), 1 << 15); in test_RamCache()
571 CryptoHash hash; in test_RamCache() local
575 cache->get(&hash, &data); in test_RamCache()
581 CryptoHash hash; in test_RamCache() local
586 if (!cache->get(&hash, &data)) { in test_RamCache()
602 CryptoHash hash; in test_RamCache() local
606 if (!cache->get(&hash, &get_data)) { in test_RamCache()
610 cache->put(&hash, data.back().get(), 1 << 15); in test_RamCache()
622 CryptoHash hash; in test_RamCache() local
[all …]
/trafficserver/plugins/prefetch/
H A Dfetch_policy_lru.cc94 LruHash hash; in acquire() local
95 hash.init(url.c_str(), url.length()); in acquire()
97 LruMapIterator it = _map.find(&hash); in acquire()
125 *_list.begin() = hash; in acquire()
/trafficserver/proxy/hdrs/
H A DHdrToken.cc271 uint32_t hash; member
282 hash_to_slot(uint32_t hash) in hash_to_slot() argument
284 return ((hash >> 15) ^ hash) & TINY_MASK(15); in hash_to_slot()
390 uint32_t hash = hdrtoken_hash(wks, hdrtoken_str_lengths[wks_idx]); in hdrtoken_hash_init() local
391 uint32_t slot = hash_to_slot(hash); in hdrtoken_hash_init()
399 hdrtoken_hash_table[slot].hash = hash; in hdrtoken_hash_init()
569 …uint32_t hash = hdrtoken_hash(reinterpret_cast<const unsigned char *>(string), static_cast<unsigne… in hdrtoken_tokenize() local
570 uint32_t slot = hash_to_slot(hash); in hdrtoken_tokenize()
573 …if ((bucket->wks != nullptr) && (bucket->hash == hash) && (hdrtoken_wks_to_length(bucket->wks) == … in hdrtoken_tokenize()
H A DURL.h177 void url_CryptoHash_get(const URLImpl *url, CryptoHash *hash, cache_generation_t generation = -1);
178 void url_host_CryptoHash_get(URLImpl *url, CryptoHash *hash);
248 void hash_get(CryptoHash *hash, cache_generation_t generation = -1) const;
249 void host_hash_get(CryptoHash *hash);
429 URL::hash_get(CryptoHash *hash, cache_generation_t generation) const in hash_get() argument
432 url_CryptoHash_get(m_url_impl, hash, generation); in hash_get()
439 URL::host_hash_get(CryptoHash *hash) in host_hash_get() argument
442 url_host_CryptoHash_get(m_url_impl, hash); in host_hash_get()
/trafficserver/tools/http_load/
H A Dtimers.c43 hash(Timer *t) in hash() function
56 int h = t->hash; in l_add()
95 int h = t->hash; in l_remove()
111 t->hash = hash(t); in l_resort()
155 t->hash = hash(t); in tmr_create()
/trafficserver/proxy/
H A DParentConsistentHash.cc40 …rent_record->parents[i]), parent_record->parents[i].weight, (ATSHash64 *)&hash[PRIMARY]); in ParentConsistentHash()
49 (ATSHash64 *)&hash[SECONDARY]); in ParentConsistentHash()
111 ATSHash64Sip24 *hash, bool *chash_init, bool *mapWrapped) in chash_lookup() argument
119 prtmp = (pRecord *)fhash->lookup(nullptr, chashIter, wrap_around, hash); in chash_lookup()
133 ATSHash64Sip24 hash; in selectParent() local
192 path_hash = getPathHash(request_info, (ATSHash64 *)&hash); in selectParent()
195 …, path_hash, &result->chashIter[last_lookup], &wrap_around[last_lookup], &hash, in selectParent()
279 …, path_hash, &result->chashIter[last_lookup], &wrap_around[last_lookup], &hash, in selectParent()
/trafficserver/doc/admin-guide/configuration/transparent-proxy/
H A Dwccp-service-config.en.rst68hash or mask, and if it is not set, it defaults to hash. If Traffic Server ever supports more tha…
70hash – This is the element of the packet that is used to compute the primary key. The value optio…
71hash – The protocol supports a two level hash. This attribute is a list with the same value optio…
/trafficserver/proxy/http/remap/
H A DNextHopConsistentHash.cc39 ATSHash64Sip24 *hash, bool *hash_init, bool *mapWrapped, uint64_t sm_id) in chash_lookup() argument
47 host_rec = static_cast<HostRecord *>(ring->lookup(nullptr, iter, wrapped, hash)); in chash_lookup()
66 ATSHash64Sip24 hash; in Init() local
113 hash_ring->insert(p, p->weight, &hash); in Init()
117 hash.clear(); in Init()
221 ATSHash64Sip24 hash; in findNextHop() local
265 hash_key = getHashKey(sm_id, request_info, &hash); in findNextHop()
269 …hostRec = chash_lookup(r, hash_key, &result.chashIter[cur_ring], &wrapped, &hash, &r… in findNextHop()
331 … = chash_lookup(r, hash_key, &result.chashIter[cur_ring], &wrapped, &hash, &result.chash_init… in findNextHop()
/trafficserver/example/plugins/c-api/secure_link/
H A Dsecure_link.c54 char *s, *ptr, *saveptr = NULL, *val, hash[32] = ""; in TSRemapDoRemap() local
116 sprintf(&hash[i * 2], "%02x", md[i]); in TSRemapDoRemap()
121 if (e < t || (NULL == token || 0 != strcmp(hash, token))) { in TSRemapDoRemap()
125 TSDebug(PLUGIN_NAME, "tokens mismatch: [%s] vs [%s]", hash, token); in TSRemapDoRemap()
/trafficserver/plugins/experimental/remap_stats/
H A Dremap_stats.cc52 static thread_local std::unordered_map<std::string, int> hash; in stat_add() local
55 if (unlikely(hash.find(name) == hash.cend())) { in stat_add()
71 hash.emplace(name, stat_id); in stat_add()
75 stat_id = hash.at(name); in stat_add()
/trafficserver/doc/developer-guide/internal-libraries/
H A Dintrusive-hash-map.en.rst16 .. _lib-intrusive-hash-map:
24 container for elements, each of which has a :arg:`key`. A hash function is applied to a key to
25 generate a :arg:`hash id` which is used to group the elements in to buckets for fast lookup. This
52 An unordered map using a hash function. The properties of the map are determined by types and
63 The type of the key used for hash computations. Deduced from the return type of the key
69 … The type of the hash of a :type:`key_type`. Deduced from the return type of the hash function.
73 …This describes the hash map, primarily via the operations required for the map. The related types …
82 Hash function - compute the hash value of the :arg:`key`.
172 The biggest change is that elements are stored in a single global list rather than per hash bucket.
/trafficserver/tools/traffic_via/
H A Dtraffic_via.pl216 my($char, $hash) = @_;
218 return exists $hash->{$char}

Completed in 170 milliseconds

1234