skb_mpls_pop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so this is the Kernel API Manual page for skb_mpls_pop, and it does exactly what the name says, bestie: pop the outermost MPLS header. iconic behavior, no notes. ✨

✨ SYNOPSIS ✨

int skb_mpls_pop (struct sk_buff *skb , __be16 next_proto , int mac_len
, bool ethernet );

πŸ’… ARGUMENTS πŸ’…

  • skb β€” the buffer. that's the packet hangout spot πŸ’–
  • next_proto β€” the ethertype of the header after the popped MPLS header. so, what's left underneath, iykyk.
  • mac_len β€” the length of the MAC header. gotta know the math. πŸŽ€
  • ethernet β€” a flag to indicate if the packet is ethernet. yes ma'am, just a flag doing flag things. πŸ¦‹

🌸 DESCRIPTION 🌸

Expects skb->data at mac header. that's the vibe check, bestie β€” it wants skb->data sitting right at the mac header.

Returns 0 on success, and -errno otherwise. so a cute little 0 means slay, and anything else is the error-code girlie telling the story. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/core/skbuff.c is the home base, and here's the whole linked-up crew β€” every single one, fr fr:


that's the whole page, bestie β€” source/version: ./net/core, date: October 2026. mwah πŸ’‹πŸŽ€βœ¨

πŸ“¦ where this page comes from