aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/transport/dpdk/arp.hpp
blob: 684c3c370990e669470e2ba1008d1e99970ed390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Copyright 2019 Ettus Research, a National Instruments brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#pragma once

#include <uhdlib/transport/dpdk/common.hpp>
#include <uhdlib/transport/dpdk/service_queue.hpp>
#include <rte_arp.h>

namespace uhd { namespace transport { namespace dpdk {

struct arp_request
{
    struct ether_addr tha;
    port_id_t port;
    ipv4_addr tpa;
};

struct arp_entry
{
    struct ether_addr mac_addr;
    std::vector<wait_req*> reqs;
};

}}} /* namespace uhd::transport::dpdk */