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_msb
  • uint8_t tag_lsb:4
  • uint8_t tc:3
  • uint8_t bs:1
  • uint8_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