Module format

Module format 

Source
Expand description

Value formatting utilities for network addresses.

Provides formatting functions for displaying network addresses in human-readable form:

  • IPv4 addresses (UInt32 -> dotted-decimal string)
  • IPv6 addresses (16 bytes -> RFC 5952 string)
  • MAC addresses (6 bytes -> colon-separated hex)

These functions are used by the CLI output formatter to automatically format address columns for display while keeping the underlying binary storage for efficient filtering and range queries.

Enums§

AddressKind
The kind of network address a column represents.

Functions§

detect_address_column
Detect if a column represents a network address based on its type and name.
format_ipv4
Format a UInt32 as an IPv4 address string in dotted-decimal notation.
format_ipv6
Format 16 bytes as an IPv6 address string.
format_mac
Format 6 bytes as a MAC address string in colon-separated hex format.