ipcount

Crates.ioipcount
lib.rsipcount
version0.1.0
sourcesrc
created_at2024-10-08 03:11:43.771479
updated_at2024-10-08 03:11:43.771479
descriptioncount IP addresses within a CIDR range, or make CIDR from a list of addresses
homepage
repository
max_upload_size
id1400738
size9,062
lake (statiolake)

documentation

README

ipcount

Expand the CIDR notation into a list of IP addresses, or inversely, unite the list of IP addresses into a CIDR notation.

Usage

$ 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
Commit count: 0

cargo fmt