rte_arp.h - Man Page

Synopsis

#include <stdint.h>
#include <rte_ether.h>

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_mbuf * rte_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

#define RTE_ARP_HRD_ETHER   1

ARP Ethernet address format

Definition at line 36 of file rte_arp.h.

#define RTE_ARP_OP_REQUEST   1

request to resolve address

Definition at line 42 of file rte_arp.h.

#define RTE_ARP_OP_REPLY   2

response to previous request

Definition at line 43 of file rte_arp.h.

#define RTE_ARP_OP_REVREQUEST   3

request proto addr given hardware

Definition at line 44 of file rte_arp.h.

#define RTE_ARP_OP_REVREPLY   4

response giving protocol address

Definition at line 45 of file rte_arp.h.

#define RTE_ARP_OP_INVREQUEST   8

request to identify peer

Definition at line 46 of file rte_arp.h.

#define RTE_ARP_OP_INVREPLY   9

response identifying peer

Definition at line 47 of file rte_arp.h.

Function Documentation

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

mpool Pointer to the rte_mempool
mac Pointer to the MAC addr

Returns
  • RARP packet pointer on success, or NULL on error

Variable Documentation

struct rte_ether_addr arp_sha

sender hardware address

Definition at line 0 of file rte_arp.h.

rte_be32_t arp_sip

sender IP address

Definition at line 1 of file rte_arp.h.

struct rte_ether_addr arp_tha

target hardware address

Definition at line 2 of file rte_arp.h.

rte_be32_t arp_tip

target IP address

Definition at line 3 of file rte_arp.h.

rte_be16_t arp_hardware

format of hardware address

Definition at line 0 of file rte_arp.h.

rte_be16_t arp_protocol

format of protocol address

Definition at line 3 of file rte_arp.h.

uint8_t arp_hlen

length of hardware address

Definition at line 4 of file rte_arp.h.

uint8_t arp_plen

length of protocol address

Definition at line 5 of file rte_arp.h.

rte_be16_t arp_opcode

ARP opcode (command)

Definition at line 6 of file rte_arp.h.

Author

Generated automatically by Doxygen for DPDK from the source code.

Referenced By

The man pages RTE_ARP_HRD_ETHER(3), RTE_ARP_OP_INVREPLY(3), RTE_ARP_OP_INVREQUEST(3), RTE_ARP_OP_REPLY(3), RTE_ARP_OP_REQUEST(3), RTE_ARP_OP_REVREPLY(3), RTE_ARP_OP_REVREQUEST(3) and rte_net_make_rarp_packet(3) are aliases of rte_arp.h(3).

Version 23.11.0 DPDK