skb_gso_validate_mac_len(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– skb_gso_validate_mac_len(9) πŸ’–

okay so bestie, welcome to the skb_gso_validate_mac_len(9) page from the Kernel API Manual β€” this one is a tiny little length vibe check for GSO skbs, and it's honestly iconic ✨


🌸 NAME 🌸

skb_gso_validate_mac_len β€” will a split GSO skb fit in a given length? πŸ‘€

πŸ¦‹ SYNOPSIS πŸ¦‹

bool skb_gso_validate_mac_len (const struct sk_buff *skb , unsigned int
       len );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the GSO skb πŸ’Œ
  • len β€” the length you want to validate against πŸ“

✨ DESCRIPTION ✨

okay so skb_gso_validate_mac_len validates whether a given skb will fit a wanted len once it gets split πŸ”₯ and yes, this check includes the L2, L3, and L4 headers plus the payload β€” all of it, no cap πŸ’…

🌈 SEE ALSO 🌈

Kernel file: ./net/core/gso.c 🧚


that's the page, bestie 🫢 source/version: ./net/core β€” date: October 2026 β€” go forth and validate those MAC lengths, periodt πŸ’–

πŸ“¦ where this page comes from