rte_flow_item_raw(3)
π 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.
π uint32_t search
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
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms