#ip-address #cidr #list #addresses #blocks #cli #converting

app cidrr

CLI tool for expanding CIDR blocks into lists of IP addresses

2 releases

Uses old Rust 2015

0.1.1 Apr 25, 2016
0.1.0 Jul 26, 2015

#16 in #lists

Custom license

7KB
128 lines

Cidrr Build Status Coverage Status


CLI utility for converting between CIDR blocks (eg, 10.0.0.0/8) and lists of IP address covered by that block. Might be useful to someone (maybe even myself), but exists mainly as a project for learning the basics of rust.

Usage: cidrr <CIDR>
       cidrr (-h | --help)
       cidrr (-v | --version)

Example:

$ ./target/debug/cidrr 192.168.1.0/24
192.168.1.0
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6
192.168.1.7
192.168.1.8
192.168.1.9
...
[truncated output]

Dependencies

TODO

  • Take list of IPs on stdin and calculate minimum set of cidr blocks to cover all IPs.
  • Writer nicer looking rust.
  • Figure out how to test docopt parsing.

License

Apache 2.0

Dependencies

~4MB
~84K SLoC