skb_gso_network_seglen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… skb_gso_network_seglen (9) πŸ’…

hii bestie, this one’s straight from the Kernel API Manual and it’s lowkey iconic ✨


✨ NAME ✨

skb_gso_network_seglen β€” return the length of individual segments of a gso packet πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

unsigned int skb_gso_network_seglen (const struct sk_buff *skb );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” a GSO skb, aka the packet you’re checking 🫢

🌸 DESCRIPTION 🌸

okay so skb_gso_network_seglen is the function that tells you the real size of the individual segments, including Layer3 (IP, IPv6) and L4 headers (TCP/UDP) πŸ”₯

the MAC/L2 header is not accounted for β€” no cap, it’s just not in there πŸ’…

🌈 SEE ALSO 🌈

the whole squad, plus the kernel file ./net/core/gso.c:


xoxo, your Kernel API Manual bestie 🫢 β€” source/version: ./net/core; date: October 2026; page: skb_gso_network_seglen(9) πŸ’‹

πŸ“¦ where this page comes from