skb_gso_mac_seglen(9)
π NAME π
okay bestie, welcome to skb_gso_mac_seglen(9) from the Kernel API Manual β this is the page for skb_gso_mac_seglen, and it's literally: Return length of individual segments of a gso packet. periodt. π
β¨
β¨ SYNOPSIS β¨
the whole function vibe, exactly as written:
unsigned int skb_gso_mac_seglen (const struct sk_buff *skb );
π ARGUMENTS π
skbβ the GSO skb, bestie. that's the one you're handing over. π«Ά
π¦ DESCRIPTION π¦
okay so skb_gso_mac_seglen is used to determine the real size of the individual segments β and yes, it includes MAC/L2, Layer3 (IP, IPv6) and L4 headers (TCP/UDP). it's giving full-header realness from top to bottom, no cap. π₯
π SEE ALSO π
the whole friend group, iykyk:
- 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_size_check(9)skb_gso_validate_network_len(9)skb_gso_validate_mac_len(9)
mwah π β this page came from ./net/core and is dated October 2026, and yes that's the cute little footer tea. π
π¦ 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