aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/transport/dpdk/arp.hpp
blob: e71119bb352a0f027b66eb2bd1cb5fcaefbe943a (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
28
29
//
// Copyright 2019 Ettus Research, a National Instruments brand
//
// SPDX-License-Identifier: GPL-3.0-or-later
//
#ifndef _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_
#define _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_

#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 */
#endif /* _INCLUDED_UHDLIB_TRANSPORT_DPDK_ARP_HPP_ */