Defines | Functions | Variables

MMH.cc File Reference

A brief file description. More...

#include <stdlib.h>
#include <string.h>
#include "ink_assert.h"
#include "ink_platform.h"
#include "MMH.h"
Include dependency graph for MMH.cc:

Go to the source code of this file.

Defines

#define MMH_X_SIZE   512
#define memcpy   _memcpy

Functions

static void _memcpy (void *dest, const void *src, int nbytes)
int ink_code_incr_MMH_init (MMH_CTX *ctx)
int ink_code_MMH (unsigned char *input, int len, unsigned char *sixteen_byte_hash)
static void MMH_update (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updateb1 (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updateb2 (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updateb3 (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updatel1 (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updatel2 (MMH_CTX *ctx, unsigned char *ab)
static void MMH_updatel3 (MMH_CTX *ctx, unsigned char *ab)
int ink_code_incr_MMH_update (MMH_CTX *ctx, const char *ainput, int input_length)
void _memset (unsigned char *b, int c, int len)
int ink_code_incr_MMH_final (uint8_t *presult, MMH_CTX *ctx)

Variables

static uint64_t MMH_x [MMH_X_SIZE+8]

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file MMH.cc.


Define Documentation

#define memcpy   _memcpy

Definition at line 188 of file MMH.cc.

Referenced by _dupstr(), _mime_field_block_copy(), ClusterHandler::add_small_controlmsg_descriptors(), agg_copy(), Http2Frame::alloc(), SparseClassAllocator< C >::alloc(), ClassAllocator< C >::alloc(), append_protocol(), ats_base64_encode(), ats_ip6_set(), ats_ip_copy(), ats_ip_getbestaddrinfo(), ats_ip_pton(), HttpTransact::build_request(), cache_handler(), cache_op_ClusterFunction(), cache_op_result_ClusterFunction(), CacheTestSM::CacheTestSM(), check_n_attach_prefetch_transform(), Cluster_deref(), Cluster_link(), ClusterLoadMonitor::cluster_load_ping_rethandler(), cluster_ping(), Cluster_read(), Cluster_remove(), Cluster_write(), ClusterMachine::ClusterMachine(), RamCacheCLFUS::compress_entries(), DiagsConfig::config_diags_norecords(), convert_http_hdr_to_string(), convert_mime_hdr_to_string(), cookie_debug(), Vec< C, A, S >::copy(), NBlockHash< C, AHashFns, N, A >::copy(), cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), HTTPCacheAlt::copy_frag_offsets_from(), MultiCacheBase::copy_heap_data(), textBuffer::copyFrom(), dns_process(), HostDBContinuation::dnsEvent(), HttpSM::do_hostdb_lookup(), CacheContinuation::do_remote_lookup(), HdrHeap::dump_heap(), HdrHeap::duplicate_str(), FetchSM::ext_read_data(), LogUtils::file_is_writeable(), RemapProcessor::finish_remap(), FileImpl::fread(), ClusterProcessor::free_remote_data(), FileImpl::fwrite(), RamCacheCLFUS::get(), FetchSM::get_info_from_buffer(), handle_callbacks(), StatPagesManager::handle_http(), ShowCache::handleCacheScanCallback(), CacheVC::handleRead(), CacheVC::handleReadDone(), how_to_open_connection(), http_hdr_copy_onto(), http_hdr_print(), HttpProxyPort::HttpProxyPort(), detail::HttpSessionAcceptOptions::HttpSessionAcceptOptions(), ObjectReloadCont::Init(), LogAccessHttp::init(), HttpBodySet::init(), HostDBContinuation::init(), DNSEntry::init(), ink_code_incr_MMH_update(), ink_filepath_merge(), ink_res_mkquery(), ink_sys_name_release(), INKUDPSendTo(), HttpTransactHeaders::insert_hsts_header_in_response(), HttpTransactHeaders::insert_supported_methods_in_response(), HttpTransactHeaders::insert_via_header_in_request(), HttpTransactHeaders::insert_via_header_in_response(), LogUtils::int64_to_str(), ClusterProcessor::internal_invoke_remote(), ClusterProcessor::invoke_remote_data(), iobufferblock_memcpy(), StatPagesManager::is_cache_inspector_page(), StatPagesManager::is_stat_page(), Cache::link(), load_string(), loadSocksAuthInfo(), log_test_handler(), LogHost::LogHost(), main(), SocksProxy::mainEvent(), SocksEntry::mainEvent(), HostDBTestRR::mainEvent(), CacheSync::mainEvent(), CacheLookupHttpConfig::marshal(), HTTPInfo::marshal(), HdrHeap::marshal(), LogAccessHttp::marshal_http_header_field(), LogAccessHttp::marshal_http_header_field_escapify(), LogAccess::marshal_ip(), LogAccess::marshal_mem(), LogAccess::marshal_record(), CacheHostMatcher::Match(), memcpy_and_advance(), mime_field_print(), mime_field_value_append(), mime_field_value_extend_comma_val(), mime_field_value_str_from_strlist(), mime_hdr_copy_onto(), mime_mem_print(), mime_scanner_append(), HttpTransact::ModifyRequest(), NBlockHash< C, AHashFns, N, A >::move(), ICPRequestCont::NetToHostICPMsg(), new_incoming_UDPPacket(), new_UDPPacket(), obj_copy(), obj_copy_data(), NetVCOptions::operator=(), LogFormat::parse_format_string(), parseConfigLine(), HttpTransact::perform_accept_encoding_filtering(), Vec< C, A, S >::prepend(), process_regex_mapping_config(), ClusterHandler::process_small_control_msgs(), HttpProxyPort::processOptions(), ParentRecord::ProcessParents(), HTTPInfo::push_frag_offset(), RamCacheCLFUS::put(), MIOBuffer::puts(), CoreUtils::read_from_core(), PrefetchConfiguration::readHtmlTags(), ClusterControl::real_alloc_data(), IOBufferBlock::realloc_set_internal(), MultiCacheBase::rebuild(), RecMessageMarshal_Realloc(), RecMessageReadFromDisk(), DiagsConfig::reconfigure_diags(), reconfigure_diags(), HttpSM::redirect_request(), HostDBMD5::refresh(), remap_parse_config_bti(), Vec< C, A, S >::reserve(), LogBuffer::resolve_custom_entry(), BaseStatPagesHandler::resp_add(), restore_state(), Vec< C, A, S >::reverse(), reverse_dns_name(), save_state(), SDK_API_TSHttpHdr(), HostDBRoundRobin::select_best_http(), set_channel_data_ClusterFunction(), ClusterVConnection::set_http_info(), detail::HttpSessionAcceptOptions::setHostResPreference(), CacheContinuation::setup_local_vc(), HttpTransact::State::setup_per_txn_configs(), SocksProxy::setupHttpRequest(), socks5PasswdAuthHandler(), Span::Span(), spdy_recv_callback(), squid_timestamp_to_buf(), ssl_context_enable_tickets(), Arena::str_store(), sync_cache_dir_on_shutdown(), synclient_txn_read_response(), synclient_txn_write_request(), synserver_txn_read_request(), synserver_txn_write_response(), test_url_print(), thread_alloc_init(), Tokenizer::Tokenizer(), transfer_data(), ts_host_res_global_init(), TSCacheKeyHostNameSet(), TSMimeHdrFieldAppend(), UDPClient_handle_callbacks(), CacheLookupHttpConfig::unmarshal(), HTTPInfo::unmarshal(), LogAccess::unmarshal_http_status(), LogAccess::unmarshal_http_version(), LogAccess::unmarshal_int_to_str(), LogAccess::unmarshal_int_to_str_hex(), LogAccess::unmarshal_record(), LogAccess::unmarshal_str(), ATSHash64Sip24::update(), ICPConfiguration::UpdatePeerConfig(), url_MD5_get_fast(), url_rewrite_remap_request(), url_string_get(), url_to_string(), wipeField(), MIOBuffer::write(), write_and_advance(), LogFile::write_ascii_logbuffer(), and write_stats_snap().

#define MMH_X_SIZE   512

Definition at line 30 of file MMH.cc.


Function Documentation

static void _memcpy ( void *  dest,
const void *  src,
int  nbytes 
) [inline, static]

Definition at line 182 of file MMH.cc.

void _memset ( unsigned char *  b,
int  c,
int  len 
) [inline]

Definition at line 406 of file MMH.cc.

Referenced by ink_code_incr_MMH_final().

int ink_code_incr_MMH_final ( uint8_t *  presult,
MMH_CTX ctx 
)
int ink_code_incr_MMH_init ( MMH_CTX ctx  ) 

Definition at line 192 of file MMH.cc.

References MMH_CTX::blocks, MMH_CTX::buffer_size, MMH_x, and MMH_CTX::state.

Referenced by ink_code_MMH(), and MMHContext::MMHContext().

int ink_code_incr_MMH_update ( MMH_CTX ctx,
const char *  ainput,
int  input_length 
)
int ink_code_MMH ( unsigned char *  input,
int  len,
unsigned char *  sixteen_byte_hash 
)
static void MMH_update ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 214 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_final(), and ink_code_incr_MMH_update().

static void MMH_updateb1 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 225 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().

static void MMH_updateb2 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 241 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().

static void MMH_updateb3 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 257 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().

static void MMH_updatel1 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 273 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().

static void MMH_updatel2 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 289 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().

static void MMH_updatel3 ( MMH_CTX ctx,
unsigned char *  ab 
) [inline, static]

Definition at line 305 of file MMH.cc.

References MMH_CTX::blocks, MMH_x, and MMH_CTX::state.

Referenced by ink_code_incr_MMH_update().


Variable Documentation

uint64_t MMH_x[MMH_X_SIZE+8] [static]