skb_gso_network_seglen(9)
π
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:
skb_eth_gso_segment(9)skb_mac_gso_segment(9)__skb_gso_segment(9)skb_gso_transport_seglen(9)skb_gso_mac_seglen(9)skb_gso_size_check(9)skb_gso_validate_network_len(9)skb_gso_validate_mac_len(9)
xoxo, your Kernel API Manual bestie π«Ά β source/version: ./net/core; date: October 2026; page: skb_gso_network_seglen(9) π
π¦ 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