Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
FlowHash computes a symmetric flow hash for the given Ethernet type and data. It returns a 32-bit hash value based on the source and destination IP addresses, source and destination ports (for TCP/UDP), and the protocol number for other protocols. If the data is invalid or the Ethernet type is unsupported, it returns 0.
func MapToEphemeralPort ¶ added in v0.17.0
MapToEphemeralPort maps a given hash value to the ephemeral port range (49152-65535).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.