achanda / ipnetwork

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

Parsing from ip/mask string #107

Closed vorner closed 4 years ago

vorner commented 4 years ago

Currently the Ipv4Network can be parsed from ip/prefix representation (eg. 192.168.2.1/24), but the older ip/mask (192.168.2.1/255.255.255.0) is rejected. Would it make sense to add such support too?

achanda commented 4 years ago

Sure, sounds good. The only reason it was not added is no one requested it :)

vorner commented 4 years ago

OK, I'll put it into my queue to send it it. It might happen in a week or two, hopefully.

achanda commented 4 years ago

Thanks @vorner!