/* * Copyright (c) 2018-2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include namespace Kernel { struct RoutingDecision { RefPtr adapter; MACAddress next_hop; bool is_zero() const; }; void update_arp_table(const IPv4Address&, const MACAddress&); RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source, const RefPtr through = nullptr); Lockable>& arp_table(); }