Kernel: Take a copy of MACAddress in RoutingDecision

This commit is contained in:
Conrad Pankoff 2019-08-29 11:18:32 +10:00 committed by Andreas Kling
commit 302d521485
Notes: sideshowbarker 2024-07-19 12:27:03 +09:00

View file

@ -5,7 +5,7 @@
struct RoutingDecision struct RoutingDecision
{ {
WeakPtr<NetworkAdapter> adapter; WeakPtr<NetworkAdapter> adapter;
const MACAddress& next_hop; MACAddress next_hop;
}; };
RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source); RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source);