rte_flow_i...p_eth_ipv4(3)

πŸ’– NAME πŸ’–

rte_flow_item_arp_eth_ipv4 β€” bestie, this is the ARP-matching struct from DPDK's flow API, and yes it's as iconic as it sounds πŸŽ€


✨ SYNOPSIS ✨

#include <rte_flow.h>

That's literally it. Include the header and you're in πŸ’…


πŸ“– Detailed Description πŸ“–

Okay so: RTE_FLOW_ITEM_TYPE_ARP_ETH_IPV4.

This item type matches an ARP header for Ethernet/IPv4. That's the whole vibe. ARP said "who has this IP," Ethernet said "me," and this struct is the receipts 🧚

Definition at line 1394 of file rte_flow.h.


🧚 Field Documentation 🧚

not me about to walk you through every single field, no skips, no skimming, we do this properly 😭

rte_be16_t hrd

Hardware type, normally 1. (Ethernet energy, always.)

Definition at line 1401 of file rte_flow.h.

rte_be16_t pro

Protocol type, normally 0x0800. That's IPv4 in hex, iykyk ✨

Definition at line 1402 of file rte_flow.h.

uint8_t hln

Hardware address length, normally 6. Six bytes of MAC address, as the ancestors intended πŸ’–

Definition at line 1403 of file rte_flow.h.

uint8_t pln

Protocol address length, normally 4. Four bytes, one IPv4 address, periodt 🌸

Definition at line 1404 of file rte_flow.h.

rte_be16_t op

Opcode β€” 1 for request, 2 for reply. So she's either asking or answering, no in-between πŸ’…

Definition at line 1405 of file rte_flow.h.

struct rte_ether_addr sha

Sender hardware address. That's the MAC of whoever sent this thing πŸ¦‹

Definition at line 1406 of file rte_flow.h.

rte_be32_t spa

Sender IPv4 address. The "who dis" IP, adorable 🌈

Definition at line 1407 of file rte_flow.h.

struct rte_ether_addr tha

Target hardware address. The MAC she's looking for πŸ‘‘

Definition at line 1408 of file rte_flow.h.

rte_be32_t tpa

Target IPv4 address. The IP she's out here hunting for, main character behaviour fr fr πŸ”₯

Definition at line 1409 of file rte_flow.h.

struct rte_arp_hdr hdr

ARP header definition. The whole header, wrapped up cute πŸŽ€

Definition at line 1411 of file rte_flow.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. (Not a human, just a little robot doing her best 🫢)


And that's the whole page, bestie β€” this one came from DPDK, Version 25.11.3, and the manpage answers to rte_flow_i...p_eth_ipv4(3). Slay, stay matched, and go read your flow rules πŸ’œ

πŸ“¦ where this page comes from