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

#include <Kernel/Net/NetworkAdapter.h>

struct RoutingDecision
{
    WeakPtr<NetworkAdapter> adapter;
    MACAddress next_hop;

    bool is_zero() const;
};

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

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