From cd708b24dba424827a9c5adaa4cb170b94539d53 Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 19 Dec 2016 21:09:29 +0100 Subject: [PATCH] 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 --- repos/os/include/net/ipv4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/os/include/net/ipv4.h b/repos/os/include/net/ipv4.h index 8ebaac33d1..b256996518 100644 --- a/repos/os/include/net/ipv4.h +++ b/repos/os/include/net/ipv4.h @@ -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;