Explorar el Código

Net: When routing to loopback, use the loopback adapter's MAC address

Otherwise the routing decision gets interpreted as "host unreachable."
Andreas Kling hace 5 años
padre
commit
271bc4b2f2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Kernel/Net/Routing.cpp

+ 1 - 1
Kernel/Net/Routing.cpp

@@ -46,7 +46,7 @@ bool RoutingDecision::is_zero() const
 RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source)
 {
     if (target[0] == 127)
-        return { LoopbackAdapter::the(), {} };
+        return { LoopbackAdapter::the(), LoopbackAdapter::the().mac_address() };
 
     auto target_addr = target.to_u32();
     auto source_addr = source.to_u32();