Expand description
§IP Range Management
This module provides models and utilities for managing contiguous ranges of IP addresses (both IPv4 and IPv6). It is designed for high-performance network scanning, where efficient storage and quick membership tests are critical.
Key components:
Ipv4Range: specialized 8-byte container for IPv4 corridors.Ipv6Range: specialized 32-byte container for IPv6 corridors.IpRange: a unified enum for protocol-agnostic API usage.cidr_range: constructor for ranges from CIDR notation.
Structs§
- Ipv4
Range - A contiguous range of IPv4 addresses defined by a start and end point.
- Ipv6
Range - A contiguous range of IPv6 addresses defined by a start and end point.
Enums§
- IpError
- Errors associated with IP address range operations.
- IpRange
- A unified representation of either an IPv4 or IPv6 range.
Functions§
- cidr_
range - Constructs an
IpRangefrom an IP address and a CIDR prefix length.