Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.
/ cidrr Public archive

Rust utility for converting between CIDR notation and lists of IP addresses

License

Notifications You must be signed in to change notification settings

stuarthicks/cidrr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust utility for converting between CIDR notation and lists of IP addresses

Resources

License

Stars

Watchers

Forks

Packages

No packages published