mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
committed by
Christian Helmuth
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) {
|
||||
|
||||
Reference in New Issue
Block a user