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_an
  • uint8_t short_length:6
  • rte_be32_t packet_number
ngl the :6 on short_length is 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