stbuehler/rust-cidr

Accept IPv4 short forms like `10/8`

Closed this issue · 1 comments

The underlying rust parser for IpAddr / Ipv4Addr doesn't seem to accept these.

Support for this is deprecated and going to be removed in 0.3.0.

  • "192.168" should never have been parsed as 192.168.0.0/32 - perhaps as 192.168.0.0/16. New parsers module has support for that
  • POSIX inet_addr parses "192.168" as 192.0.0.168 - clearly there is no common scheme here, better to reject such inputs by default. The parsers module also supports inet_addr.