mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
parent
fb2398dbf2
commit
b8d8bc3142
@ -272,6 +272,9 @@ void Interface::_adapt_eth(Ethernet_frame ð,
|
||||
Packet_descriptor const &pkt,
|
||||
Interface &interface)
|
||||
{
|
||||
if (!interface.domain().ip_config().valid) {
|
||||
throw Packet_ignored("target domain has yet no IP config");
|
||||
}
|
||||
Ipv4_address const &hop_ip = interface._domain.next_hop(ip);
|
||||
try { eth.dst(interface._arp_cache.find_by_ip(hop_ip).mac()); }
|
||||
catch (Arp_cache::No_match) {
|
||||
|
Loading…
Reference in New Issue
Block a user