rte_macsec_hdr(3)
π rte_macsec_hdr π
okay bestie, gather round, because today we're meeting rte_macsec_hdr β yes that's the whole name, she's an icon and she doesn't need a subtitle π this is a DPDK library function manual page and it's honestly giving very "struct energy", so let's get into it β¨
πΈ SYNOPSIS πΈ
First things first, you gotta invite her in, and the way you do that is:
#include <rte_macsec.h>
that's it, that's the door πͺβ¨
π Data Fields π
okay so this struct is made of three little cuties, and here they are:
uint8_t tci_anuint8_t short_length:6rte_be32_t packet_number
ngl the:6onshort_lengthis a bitfield, she's literally built different π
β¨ Detailed Description β¨
So what is this, you ask? It's the MACsec Header, also known as SecTAG. That's the vibe. That's the whole vibe. π¦
fr fr, if you were wondering where in the source this lives, it's Definition at line 28 of file rte_macsec.h. so now you know, iykyk π
π Field Documentation π
π uint8_t tci_an
Tag control information and Association number of secure channel.
and here's the part where you gotta pay attention, bestie, because this is the technical tea: various bits of TCI and AN are masked using RTE_MACSEC_TCI_* and RTE_MACSEC_AN_MASK. so like, mask responsibly β¨
Definition at line 33 of file rte_macsec.h.
π uint8_t short_length
Short Length.
that's it. that's the description. short and sweet, kinda on brand for something called short length honestly ππ
Definition at line 35 of file rte_macsec.h.
π rte_be32_t packet_number
Packet number to support replay protection.
so she's the one making sure nobody's out here replaying old packets like a broken Spotify loop π replay protection stays winning.
Definition at line 41 of file rte_macsec.h.
π«Ά Author π«Ά
okay so nobody wrote this by hand, don't come for her β she was Generated automatically by Doxygen for DPDK from the source code. the machine did it, the machine ate, no notes π
lowkey important: every field, every line number, every mask name above is exactly what's in the real page β i did not invent a single one, that's the rule bestie π
and that's the whole page!! π thanks for coming to my ted talk, this was rte_macsec_hdr(3) from DPDK Version 25.11.3, served fresh β¨ mwah π π¦ πΈ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms