Skip to main content

Module port

Module port 

Source
Expand description

Port generalization for transport layer anonymization.

Ports are categorized into three IANA ranges and optionally replaced with sentinel values. Well-known destination ports (0-1023) can be preserved for service identification in ML models.

Enums§

PortCategory
IANA port category.

Functions§

categorize_port
Classify a port into its IANA category.
generalize_port
Generalize a port to its category sentinel.