mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
sculpt: NIC ready only with IP other than 0.0.0.0
This patch refines the criterion of when the networking is considered as ready to use. Until now, any IP reported by the NIC router was taken as an indicator for connectivity. But as the NIC router reports an IP 0.0.0.0/32 when no network cable is plugged at the uplink, the condition was too loose.
This commit is contained in:
parent
94e2a64f60
commit
6528f50bfc
@ -35,7 +35,7 @@ struct Sculpt::Nic_state
|
||||
return Nic_state { result };
|
||||
}
|
||||
|
||||
bool ready() const { return ipv4.valid(); }
|
||||
bool ready() const { return ipv4.valid() && ipv4 != "0.0.0.0/32"; }
|
||||
};
|
||||
|
||||
#endif /* _MODEL__NIC_STATE_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user