---
name: "rte_arp.h"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_arp.h"
---

# rte\_arp.h(3)

## NAME

rte\_arp.h

## SYNOPSIS

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

### Functions

struct **\_\_rte\_aligned** (2) rte\_arp\_ipv4\
 struct **rte\_mbuf** \* **rte\_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

### struct \_\_rte\_aligned (2)

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 **1** of file **rte\_arp.h**.

### 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

## Author

Generated automatically by Doxygen for DPDK from the source code.
