TTLinks continues to improve with version 0.1.24, bringing enhanced functionality for IP and MAC services. This release focuses on performance optimizations, new IP conversion capabilities, and more flexible wildcard handling.
Key Updates:
IP Services:
1. **New IP Converters**:
- Added IP converters to directly convert decimal values to IP addresses, enhancing performance by leveraging bitwise operations instead of checking each bit individually.
2. **IP Binary to Decimal Conversion**:
- A new property method has been added to the `IPAddr` class to facilitate the conversion of IP addresses from binary to decimal format.
3. **`ip_factory.py` Module**:
- **Host Creation**: Generate IP host objects (both IPv4 and IPv6).
- **Subnet Creation**: Easily create subnet objects.
- **Wildcard Creation**: Create wildcard configurations.
- **Batch Processing**: Create multiple host or subnet objects using `batch_hosts` and `batch_subnets`.
- **Random Host Generation**: Generate random host configurations based on IP type (public, private, etc.).
- **Random Subnet Generation**: Create random subnet configurations.
- **Batch Random Host/Subnet Creation**: Generate multiple random hosts or subnets in batches.
4. **Wildcard Mask Update**:
- Renamed "netmask" for wildcard configurations to "mask" to better differentiate between wildcard masks and netmasks, reflecting their distinct purposes.
Network
Key Features:
IP Services:
- **IPv4 and IPv6 Subnet Calculations**: Compute subnets, CIDR blocks, and broadcast addresses with ease.
- **IP Address Classification**: Quickly identify if an IP is public, private, multicast, loopback, or other types of addresses.
- **Detect IPv4 or IPv6**: Automatically detect whether an IP is IPv4 or IPv6.
- **Netmask Expansion**: Generate all possible combinations of IP addresses by expanding netmask bits.
- **IP Address Conversion**: Easily convert between different IP address notations (e.g., dotted decimal, binary, hexadecimal) for both IPv4 and IPv6.
- **Minimum Wildcard Finder**: Given subnets, find the minimum wildcard, ideal for creating efficient ACLs.
- **Subnet Host Generator**: Generate all hosts within a subnet using a generator.
- **IP within Subnet or Wildcard Check**: Check if an IP address falls within a specified subnet or wildcard.
- **IPv4 Broadcast and Network ID Check**: Verify the broadcast and network IDs of IPv4 subnets.
- **Subnet Host Count**: Calculate the number of hosts in a given subnet.
- **Show Subnet Range**: Display the full range of IP addresses within a subnet.
- **Subnet Division and Merging**: Divide subnets into smaller subnets or merge them into larger networks.
- **IPv6 Type Check**: Identify the type of an IPv6 address.
MAC Services:
- **MAC Address Conversion**: Convert MAC addresses between formats such as octet, dashed-hex, and dot-hex formats.
- **OUI Lookup**: Identify device manufacturers by performing fast lookups in the OUI (Organizationally Unique Identifier) database.
- **Automatic OUI Check**: Automatically check the OUI when creating a MAC address instance.
- **Binary Conversion**: Translate MAC addresses into binary format for further analysis.
- **MAC to EUI-64 Conversion**: Convert MAC addresses to EUI-64 format for use in IPv6 networking.
- **Tri Algorithm for OUI Search**: Use an efficient Tri algorithm for searching OUI data.
- **Custom OUI Updates**: Customize and update OUI documents, with the ability to revert to the default state of the current version.
- **MAC Address Classification**: Classify MAC addresses as broadcast, unicast, or multicast.