skb_tcp_all_headers(9)
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
- 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