skb_gso_validate_mac_len(9)
π 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 π§
skb_eth_gso_segment(9)skb_mac_gso_segment(9)__skb_gso_segment(9)skb_gso_transport_seglen(9)skb_gso_network_seglen(9)skb_gso_mac_seglen(9)skb_gso_size_check(9)skb_gso_validate_network_len(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms