skb_tcp_all_headers(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

skb_tcp_all_headers(9) β€” Kernel API Manual 🫢✨

🌸 NAME 🌸

Okay so bestie, skb_tcp_all_headers is the kernel helper that returns the size of all the headers for a TCP packet. That's it. That's the whole name. No cap. πŸ’…

✨ SYNOPSIS ✨

The signature is literally:

int skb_tcp_all_headers (const struct sk_buff *skb );

πŸŽ€ ARGUMENTS πŸŽ€

  • skb β€” the buffer. That's the argument, bestie. 🫢

πŸ’– DESCRIPTION πŸ’–

Okay so this one is used in the TX path, for a packet that is known to be a TCP one. Like, you already know it's TCP β€” this helper is not out here doing detective work, okay? 😭

Here's the snippet from the page, verbatim:

if (skb_is_gso(skb)) { int hlen = skb_tcp_all_headers(skb); ...

The page literally trails off with ... right there. Not hiding anything, just keeping the vibe mysterious. πŸ™ˆ

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/tcp.h β€” the kernel file, bestie. πŸ“‚
  • skb_inner_tcp_all_headers(9) β€” the other reference to go peek at. πŸ‘€

source/version: ./include/linux Β· date: October 2026 β€” mwah, bestie, that's the page πŸ’‹βœ¨

πŸ“¦ where this page comes from