skb_partial_csum_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the skb_partial_csum_set(9) page from the Kernel API Manual ✨ β€” this one is all about setting up and verifying partial csum values for a packet. periodt πŸ’…


✨ SYNOPSIS ✨

bool skb_partial_csum_set (struct sk_buff *skb , u16 start , u16 off );

🫢 ARGUMENTS 🫢

  • skb β€” the skb to set 🫢
  • start β€” the number of bytes after skb->data to start checksumming ✨
  • off β€” the offset from start to place the checksum πŸ’–

🧚 DESCRIPTION 🧚

okay so listen: for untrusted partially-checksummed packets, we need to make sure the values for skb->csum_start and skb->csum_offset are valid so we don’t oops 😭. like, that’s the whole vibe check.

This function checks and sets those values and skb->ip_summed πŸ’…. If this returns false, you should drop the packet. no cap.

🚨 bestie warning: if this returns false you should drop the packet. do not keep it around like a bad situationship πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file: ./net/core/skbuff.c β€” yes, that’s the spot πŸ’…. And here’s the whole extended fam, in the same order, no cap:


okay that’s the whole page πŸ’– β€” source/version: ./net/core, date: October 2026, and the main character is skb_partial_csum_set(9). byeeee πŸŽ€βœ¨

πŸ“¦ where this page comes from