first_packet_length(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

first_packet_length β€” return length of first packet in receive queue. That's the whole vibe, bestie. We're in the Kernel API Manual, and this page is first_packet_length(9). ✨

✨ SYNOPSIS ✨

int first_packet_length (struct sock *sk );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” socket. That's it. The one arg. The main character. 🫢

πŸ’… DESCRIPTION πŸ’…

Okay so here's the tea: it drops all bad checksum frames, and keeps going until a valid one is found. No cap. Then it returns the length of the found skb, or -1 if none is found. 😭

πŸ¦‹ SEE ALSO πŸ¦‹


Sign-off: this page lives under ./net/ipv4, dated October 2026, and it's literally first_packet_length(9). Mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from