achanda / ipnetwork

A library to work with CIDRs in rust
Apache License 2.0
121 stars 38 forks source link

Be able to parse the netmask format #112

Closed vorner closed 4 years ago

vorner commented 4 years ago

Allow accepting the netmask format, eg 192.168.1.0/255.255.255.0, in addition to the more modern /24 prefix version.

Adding support for IPv4 only, as IPv6 never actually used that format in practice.

Closes #107.

achanda commented 4 years ago

Sorry for being late on this, I was on vacation. Thanks for the PR!