Expand description
TCP services (port to name mapping).
This module provides mappings between well-known TCP port numbers
and their service names, similar to Scapy’s TCP_SERVICES.
Statics§
- TCP_
SERVICES - Well-known TCP services mapping (port -> name).
- TCP_
SERVICES_ BY_ NAME - Reverse mapping (name -> port).
Functions§
- is_
dynamic_ port - Check if a port is a dynamic/private port (49152-65535).
- is_
registered_ port - Check if a port is a registered port (1024-49151).
- is_
well_ known_ port - Check if a port is a well-known port (< 1024).
- service_
name - Get the service name for a port.
- service_
port - Get the port number for a service name.