rte_mpls_hdr(3)
π rte_mpls_hdr β bestie edition π¦
okay so this is the manual page for rte_mpls_hdr, from the DPDK library functions crew. it's a struct, it's an MPLS header, and it's lowkey tiny but every bit of it matters. let's get into it π
β¨ SYNOPSIS β¨
#include <rte_mpls.h>
π Data Fields
rte_be16_t tag_msbuint8_t tag_lsb:4uint8_t tc:3uint8_t bs:1uint8_t ttl
πΈ DESCRIPTION πΈ
it's the MPLS header. that's the whole vibe. it lives at Definition at line 21 of file rte_mpls.h β that's its address, its home, its little spot in the source π
ngl bestie, if you're parsing MPLS packets, this is your girl. it's giving "small struct, big responsibility" π
π₯ FIELD DOCUMENTATION π₯
rte_be16_t tag_msb
Label(msb). β the most-significant-bits chunk of the label β¨
π Definition at line 22 of file rte_mpls.h.
uint8_t tag_lsb:4
Label(lsb). β the least-significant-bits chunk of the label, and yes, she's only 4 bits wide, a whole queen of efficiency π
π Definition at line 24 of file rte_mpls.h.
uint8_t tc:3
Traffic class. β this is where the packet tells you what kind of energy it's bringing. 3 bits of it π
π Definition at line 25 of file rte_mpls.h.
uint8_t bs:1
Bottom of stack. β literally just 1 bit. is this the last label in the stack or not, bestie? that's the question π¦
π Definition at line 26 of file rte_mpls.h.
uint8_t ttl
Time to live. β the packet's lil countdown clock β³
π Definition at line 32 of file rte_mpls.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. so likeβ¦ nobody wrote this with their hands, the robots did it, and honestly? they ate π€β¨
π«Ά cute sign-off
this was rte_mpls_hdr(3) from DPDK Version 25.11.3 β go forth and dissect some headers, bestie, you've got this πππΈπ¦
π¦ 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