kernel_sock_ip_overhead(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

kernel_sock_ip_overhead β€” bestie, this one literally tells you the IP overhead that a socket is imposing ✨

(also hi, you're reading the Kernel API Manual, welcome to the group chat 🫢)


🌸 SYNOPSIS 🌸

u32 kernel_sock_ip_overhead (struct sock *sk );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the socket. that's it. that's the whole argument. iconic of it honestly πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: this routine returns the IP overhead imposed by a socket β€” like, the actual length of the underlying IP header πŸ‘€ and that number depends on two things:

  • whether this is an IPv4 or an IPv6 socket πŸ’…
  • the length that comes from IP options that are turned on at the socket ✨
⚠️ important vibe check: this assumes that the caller has a lock on the socket. no lock, no peace, bestie. don't come crying to me 😭

🌈 SEE ALSO 🌈

Kernel file ./net/socket.c β€” and here's the whole friend group, no cap, everybody's invited 🫢:


that's the whole page, mwah πŸ’‹

this little masterpiece lives in ./net, it's dated October 2026, and it's filed under kernel_sock_ip_overhead(9) β€” go forth and compute your overheads, bestie, i'm obsessed with you fr fr πŸŽ€πŸ’œ

πŸ“¦ where this page comes from