MCPcopy Create free account
hub / github.com/apache/trafficserver / makeHostHash

Function makeHostHash

include/iocore/hostdb/HostDBProcessor.h:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84extern int hostdb_max_iobuf_index;
85
86static inline unsigned int
87makeHostHash(const char *string)
88{
89 ink_assert(string && *string);
90
91 if (string && *string) {
92 ATSHash32FNV1a fnv;
93 fnv.update(string, strlen(string), ATSHash::nocase());
94 fnv.final();
95 return fnv.get();
96 }
97
98 return 0;
99}
100
101//
102// Types

Callers 2

dns_processFunction · 0.85
process_srv_infoMethod · 0.85

Calls 4

nocaseClass · 0.85
updateMethod · 0.45
finalMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected