Crates.io | ipcount |
lib.rs | ipcount |
version | 0.1.0 |
source | src |
created_at | 2024-10-08 03:11:43.771479 |
updated_at | 2024-10-08 03:11:43.771479 |
description | count IP addresses within a CIDR range, or make CIDR from a list of addresses |
homepage | |
repository | |
max_upload_size | |
id | 1400738 |
size | 9,062 |
Expand the CIDR notation into a list of IP addresses, or inversely, unite the list of IP addresses into a CIDR notation.
$ echo -n "10.0.2.254\n10.0.2.255\n10.0.3.0\n10.0.3.1\n" | cargo run -q --bin ipunite
10.0.2.254/31
10.0.3.0/31
$ echo -n "10.0.2.254/31\n10.0.3.0/31\n" | cargo run -q --bin ipcount
10.0.2.254
10.0.2.255
10.0.3.0
10.0.3.1