mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
nic_router: drop ARP requests when unconfigured
Whenever the nic_router encounters ARP requests on an interface that does not have a valid IP config it will ignore them. However, When increasing the verbosity of the component for diagnostic purposes the resulting 'Bad network protocol' message is misleading. Issue #4455.
This commit is contained in:
parent
80f85a854c
commit
aa7303f19f
@ -1591,6 +1591,9 @@ void Interface::_handle_eth(Ethernet_frame ð,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case Ethernet_frame::Type::ARP: {
|
||||||
|
throw Drop_packet("Ignore ARP request on unconfigured interface");
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
|
|
||||||
throw Bad_network_protocol();
|
throw Bad_network_protocol();
|
||||||
|
Loading…
Reference in New Issue
Block a user