mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +00:00
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 #2193
This commit is contained in:
parent
604a8860de
commit
cd708b24db
@ -223,7 +223,7 @@ struct Net::Ipv4_address_prefix
|
||||
Ipv4_address address;
|
||||
Genode::uint8_t prefix = 32;
|
||||
|
||||
bool valid() const { return address.valid(); }
|
||||
bool valid() const { return address.valid() || !prefix; }
|
||||
|
||||
void print(Genode::Output &output) const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user