DPDK  24.11.0-rc3
Functions
rte_arp.h File Reference
#include <stdint.h>
#include <rte_ether.h>

Go to the source code of this file.

Functions

struct __rte_aligned (2) rte_arp_ipv4
 
struct rte_mbufrte_net_make_rarp_packet (struct rte_mempool *mpool, const struct rte_ether_addr *mac)
 

Detailed Description

ARP-related defines

Definition in file rte_arp.h.

Function Documentation

◆ __rte_aligned()

struct __rte_aligned ( )

ARP header IPv4 payload.

ARP header.

< sender hardware address

< sender IP address

< target hardware address

< target IP address

< format of hardware address

< format of protocol address

< length of hardware address

< length of protocol address

< ARP opcode (command)

Definition at line 24 of file rte_arp.h.

◆ 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