DPDK 23.11.0
Loading...
Searching...
No Matches
rte_arp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2013 6WIND S.A.
3 */
5#ifndef _RTE_ARP_H_
6#define _RTE_ARP_H_
7
14#include <stdint.h>
15#include <rte_ether.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
30
36#define RTE_ARP_HRD_ETHER 1
39 uint8_t arp_hlen;
40 uint8_t arp_plen;
42#define RTE_ARP_OP_REQUEST 1
43#define RTE_ARP_OP_REPLY 2
44#define RTE_ARP_OP_REVREQUEST 3
45#define RTE_ARP_OP_REVREPLY 4
46#define RTE_ARP_OP_INVREQUEST 8
47#define RTE_ARP_OP_INVREPLY 9
49 struct rte_arp_ipv4 arp_data;
51
63struct rte_mbuf *
65 const struct rte_ether_addr *mac);
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* _RTE_ARP_H_ */
struct rte_mbuf * rte_net_make_rarp_packet(struct rte_mempool *mpool, const struct rte_ether_addr *mac)
uint32_t rte_be32_t
uint16_t rte_be16_t
#define __rte_packed
Definition rte_common.h:89
#define __rte_aligned(a)
Definition rte_common.h:70
rte_be16_t arp_protocol
Definition rte_arp.h:38
uint8_t arp_hlen
Definition rte_arp.h:39
rte_be16_t arp_opcode
Definition rte_arp.h:41
uint8_t arp_plen
Definition rte_arp.h:40
rte_be16_t arp_hardware
Definition rte_arp.h:35
struct rte_ether_addr arp_sha
Definition rte_arp.h:25
struct rte_ether_addr arp_tha
Definition rte_arp.h:27
rte_be32_t arp_sip
Definition rte_arp.h:26
rte_be32_t arp_tip
Definition rte_arp.h:28