rte_flow_item_raw(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… NAME πŸ’…

rte_flow_item_raw

okay so bestie, welcome to the Library Functions Manual β€” yes that's the manual this page lives in, and yes we're gonna get through it together. This one's all about rte_flow_item_raw, the flow-item struct that lets you match straight-up raw bytes in a packet. no cap. πŸŽ€


✨ SYNOPSIS ✨

#include <rte_flow.h>

🌸 Data Fields

uint32_t relative:1
uint32_t search:1
uint32_t reserved:30
int32_t offset
uint16_t limit
uint16_t length
const uint8_t * pattern

πŸ¦‹ DESCRIPTION πŸ¦‹

So this whole thing is the documentation for RTE_FLOW_ITEM_TYPE_RAW, which β€” literally β€” matches a byte string of a given length at a given offset. that's the vibe. πŸ”₯

The offset is either:

  • absolute β€” measured from the start of the packet, or
  • relative to the end of the previous matched item in the stack β€” and in that case negative values are allowed. yes, negative. she's flexible. πŸ’…

If search is enabled, offset is used as the starting point. The search area can be delimited by setting limit to a nonzero value, which is the maximum number of bytes after offset where the pattern may start. iykyk. πŸ”

Matching a zero-length pattern is allowed β€” and doing so resets the relative offset for subsequent items. it's giving reset button energy. 🫢

⚠️ Heads up bestie: this type does not support ranges (struct rte_flow_item.last). that's just how it is, periodt.

Definition at line 846 of file rte_flow.h. πŸ“


πŸŽ€ Field Documentation πŸŽ€

🌈 uint32_t relative

Look for pattern after the previous item.

Definition at line 847 of file rte_flow.h.

Search pattern from offset (see also limit).

Definition at line 848 of file rte_flow.h.

🌈 uint32_t reserved

Reserved, must be set to zero.

Definition at line 849 of file rte_flow.h.

πŸ’€ not me begging you to actually set it to zero. "must" is not a suggestion bestie, it's a whole requirement.

🌈 int32_t offset

Absolute or relative offset for pattern.

Definition at line 850 of file rte_flow.h.

🌈 uint16_t limit

Search area limit for start of pattern.

Definition at line 851 of file rte_flow.h.

🌈 uint16_t length

Pattern length.

Definition at line 852 of file rte_flow.h.

🌈 const uint8_t* pattern

Byte string to look for.

Definition at line 853 of file rte_flow.h.


🧚 Author 🧚

Generated automatically by Doxygen for DPDK from the source code. she's not hand-written, she's auto-generated and she's still iconic. ✨


that's the whole page, bestie β€” you ate that. this adorable lil' doc is from DPDK Version 26.03.0 and it's the rte_flow_item_raw(3) page, so go forth and match those raw bytes. mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from