Scroll to navigation

rte_arp.h(3) DPDK rte_arp.h(3)

NAME

rte_arp.h

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

#define RTE_ARP_OP_REQUEST 1

request to resolve address

Definition at line 7 of file rte_arp.h.

#define RTE_ARP_OP_REPLY 2

response to previous request

Definition at line 8 of file rte_arp.h.

#define RTE_ARP_OP_REVREQUEST 3

request proto addr given hardware

Definition at line 9 of file rte_arp.h.

#define RTE_ARP_OP_REVREPLY 4

response giving protocol address

Definition at line 10 of file rte_arp.h.

#define RTE_ARP_OP_INVREQUEST 8

request to identify peer

Definition at line 11 of file rte_arp.h.

#define RTE_ARP_OP_INVREPLY 9

response identifying peer

Definition at line 12 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 28 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 1 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.

Fri Dec 15 2023 Version 23.11.0