mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
parent
e3783b00bb
commit
a9c4ebc9e9
@ -24,7 +24,7 @@ namespace Genode
|
||||
inline Nic_driver_mode read_nic_driver_mode(Xml_node const &driver_cfg)
|
||||
{
|
||||
String<16> const mode_str {
|
||||
driver_cfg.attribute_value("mode", String<16>("")) };
|
||||
driver_cfg.attribute_value("mode", String<16>("default")) };
|
||||
|
||||
if (mode_str == "nic_server") {
|
||||
|
||||
@ -34,7 +34,12 @@ namespace Genode
|
||||
|
||||
return Nic_driver_mode::UPLINK_CLIENT;
|
||||
}
|
||||
return Nic_driver_mode::NIC_SERVER;
|
||||
if (mode_str == "default") {
|
||||
|
||||
return Nic_driver_mode::NIC_SERVER;
|
||||
}
|
||||
class Bad_mode { };
|
||||
throw Bad_mode { };
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user