skb_gso_vali..._network_len(9)
π skb_gso_vali..._network_len(9) β like, the Kernel API Manual, but make it make sense π
okay so bestie, you opened the Kernel API Manual page for skb_gso_vali..._network_len (yes the name is tragically truncated, we don't talk about it π) and honestly? it's a tiny one. one function, two args, one very important little question it answers. let's get into it β¨
πΈ NAME πΈ
skb_gso_validate_network_len β the vibe check that answers: will a split GSO skb actually fit into a given MTU? π¦
β SYNOPSIS β
bool skb_gso_validate_network_len (const struct sk_buff *skb , unsigned
int mtu );
she takes a const struct sk_buff * and an unsigned int, and she returns a bool. short, sweet, returns true or false, no drama π
π ARGUMENTS π
skbβ the GSO skb in question. the main character, fr fr πmtuβ the MTU you wanna validate against. the standard she's being held to π
π DESCRIPTION π
okay so here's the whole thing: skb_gso_validate_network_len validates whether a given skb will fit a wanted MTU once it's split. not before, once split β that's the whole point, that's the assignment, she ate π₯
and the way that it's thorough? it considers L3 headers, L4 headers, and the payload. all three. no cap, nothing gets left out π
so if you're sitting there like "hmm will this actually fit," she's the one you ask, and she gives you a straight bool back. iconic behavior ngl β
π¦ SEE ALSO π¦
the kernel file to go peep is ./net/core/gso.c β and while you're in the neighborhood, the whole friend group is here:
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_mac_len(9)
iykyk, they all kinda run in the same circle π
and that's the page!! π it lives over in ./net/core, stamped October 2026, and yeah β she's skb_gso_vali..._network_len(9), truncated name and all, and we love her for it π«Ά mwah, go validate some segments bestie πβ¨
π¦ 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