DPDK  21.08.0
Data Structures | 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
 

Functions

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

Variables

struct rte_ether_addr arp_sha
 
uint32_t arp_sip
 
struct rte_ether_addr arp_tha
 
uint32_t arp_tip
 

Detailed Description

ARP-related defines

Definition in file rte_arp.h.

Function Documentation

◆ rte_net_make_rarp_packet()

__rte_experimental struct rte_mbuf* rte_net_make_rarp_packet ( struct rte_mempool mpool,
const struct rte_ether_addr mac 
)
Warning
EXPERIMENTAL: this API may change without prior notice

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 74 of file rte_arp.h.

◆ arp_sip

uint32_t arp_sip

sender IP address

Definition at line 75 of file rte_arp.h.

◆ arp_tha

struct rte_ether_addr arp_tha

target hardware address

Definition at line 76 of file rte_arp.h.

◆ arp_tip

uint32_t arp_tip

target IP address

Definition at line 77 of file rte_arp.h.