IPv4: treat 0.0.0.0/0 as valid IPv4 prefix

0.0.0.0/x is now only seen as invalid if x > 0.

Ref 
This commit is contained in:
Martin Stein 2016-12-19 21:09:29 +01:00 committed by Norman Feske
parent 604a8860de
commit cd708b24db

@ -223,7 +223,7 @@ struct Net::Ipv4_address_prefix
Ipv4_address address; Ipv4_address address;
Genode::uint8_t prefix = 32; Genode::uint8_t prefix = 32;
bool valid() const { return address.valid(); } bool valid() const { return address.valid() || !prefix; }
void print(Genode::Output &output) const; void print(Genode::Output &output) const;