summaryrefslogtreecommitdiff
path: root/Kernel/Net/Routing.h
blob: 82ae87895b4e0df00eeeb2ea2771eaa3a49e36c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <Kernel/Net/NetworkAdapter.h>

struct RoutingDecision
{
    WeakPtr<NetworkAdapter> adapter;
    const MACAddress& next_hop;
};

RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source);

Lockable<HashMap<IPv4Address, MACAddress>>& arp_table();