DPDK  23.11.0
Data Structures | Macros | Functions | Variables
rte_arp.h File Reference
#include <stdint.h>
#include <rte_ether.h>

Go to the source code of this file.

Data Structures

struct  rte_arp_ipv4
 
struct  rte_arp_hdr
 

Macros

#define RTE_ARP_HRD_ETHER   1
 
#define RTE_ARP_OP_REQUEST   1
 
#define RTE_ARP_OP_REPLY   2
 
#define RTE_ARP_OP_REVREQUEST   3
 
#define RTE_ARP_OP_REVREPLY   4
 
#define RTE_ARP_OP_INVREQUEST   8
 
#define RTE_ARP_OP_INVREPLY   9
 

Functions

struct rte_mbufrte_net_make_rarp_packet (struct rte_mempool *mpool, const struct rte_ether_addr *mac)
 

Variables

struct rte_ether_addr arp_sha
 
rte_be32_t arp_sip
 
struct rte_ether_addr arp_tha
 
rte_be32_t arp_tip
 
rte_be16_t arp_hardware
 
rte_be16_t arp_protocol
 
uint8_t arp_hlen
 
uint8_t arp_plen
 
rte_be16_t arp_opcode
 

Detailed Description

ARP-related defines

Definition in file rte_arp.h.

Macro Definition Documentation

◆ RTE_ARP_HRD_ETHER

#define RTE_ARP_HRD_ETHER   1

ARP Ethernet address format

Examples:
examples/bond/main.c.

Definition at line 57 of file rte_arp.h.

◆ RTE_ARP_OP_REQUEST

#define RTE_ARP_OP_REQUEST   1

request to resolve address

Examples:
examples/bond/main.c.

Definition at line 63 of file rte_arp.h.

◆ RTE_ARP_OP_REPLY

#define RTE_ARP_OP_REPLY   2

response to previous request

Examples:
examples/bond/main.c.

Definition at line 64 of file rte_arp.h.

◆ RTE_ARP_OP_REVREQUEST

#define RTE_ARP_OP_REVREQUEST   3

request proto addr given hardware

Definition at line 65 of file rte_arp.h.

◆ RTE_ARP_OP_REVREPLY

#define RTE_ARP_OP_REVREPLY   4

response giving protocol address

Definition at line 66 of file rte_arp.h.

◆ RTE_ARP_OP_INVREQUEST

#define RTE_ARP_OP_INVREQUEST   8

request to identify peer

Definition at line 67 of file rte_arp.h.

◆ RTE_ARP_OP_INVREPLY

#define RTE_ARP_OP_INVREPLY   9

response identifying peer

Definition at line 68 of file rte_arp.h.

Function Documentation

◆ rte_net_make_rarp_packet()

struct rte_mbuf* rte_net_make_rarp_packet ( struct rte_mempool mpool,
const struct rte_ether_addr mac 
)

Make a RARP packet based on MAC addr.

Parameters
mpoolPointer to the rte_mempool
macPointer to the MAC addr
Returns
  • RARP packet pointer on success, or NULL on error

Variable Documentation

◆ arp_sha

struct rte_ether_addr arp_sha

sender hardware address

Definition at line 56 of file rte_arp.h.

◆ arp_sip

rte_be32_t arp_sip

sender IP address

Definition at line 57 of file rte_arp.h.

◆ arp_tha

struct rte_ether_addr arp_tha

target hardware address

Definition at line 58 of file rte_arp.h.

◆ arp_tip

rte_be32_t arp_tip

target IP address

Definition at line 59 of file rte_arp.h.

◆ arp_hardware

rte_be16_t arp_hardware

format of hardware address

Definition at line 56 of file rte_arp.h.

◆ arp_protocol

rte_be16_t arp_protocol

format of protocol address

Definition at line 59 of file rte_arp.h.

◆ arp_hlen

uint8_t arp_hlen

length of hardware address

Definition at line 60 of file rte_arp.h.

◆ arp_plen

uint8_t arp_plen

length of protocol address

Definition at line 61 of file rte_arp.h.

◆ arp_opcode

rte_be16_t arp_opcode

ARP opcode (command)

Definition at line 62 of file rte_arp.h.