Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
wmem_map_int.h File Reference

Go to the source code of this file.

Functions

WS_DLL_LOCAL void wmem_init_hashing (void)
 Initialize internal hashing parameters for the wmem subsystem.
 

Detailed Description

Definitions for the Wireshark Memory Manager Hash Map Internals Copyright 2014, Evan Huus eapac.nosp@m.he@g.nosp@m.mail..nosp@m.com

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ wmem_init_hashing()

WS_DLL_LOCAL void wmem_init_hashing ( void  )

Initialize internal hashing parameters for the wmem subsystem.

Generates random values used to seed the hashing mechanism, including a random odd multiplier and a preseed value. These values help randomize hash behavior to reduce collision risks and improve distribution.

This function should be called once during initialization before any hashing operations.