csum_tcpudp_nofold(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

welcome to the Kernel API Manual moment for csum_tcpudp_nofold(9), bestie πŸ’– this function literally computes an IPv4 pseudo header checksum, and that's the whole assignment. slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

__wsum csum_tcpudp_nofold (__be32 saddr , __be32 daddr , __u32 len ,
__u8 proto , __wsum sum );

πŸŽ€ ARGUMENTS πŸŽ€

  • saddr β€” source address πŸ‘‘
  • daddr β€” destination address ✨
  • len β€” length of packet 🌸
  • proto β€” ip protocol of packet πŸ¦‹
  • sum β€” initial sum to be added in (32bit unfolded) πŸ’…

πŸ’œ RETURN πŸ’œ

it gives you the pseudo header checksum for the input data, and the result is 32bit unfolded β€” periodt. 🫢


🌈 SEE ALSO 🌈

the Kernel file ./arch/x86/include/asm/checksum_64.h is where the lore lives, and these besties are linked:


mwah πŸ’‹ sourced from ./arch/x86/include/asm, dated October 2026, and yes bestie this page is csum_tcpudp_nofold(9) β€” bye, love u πŸ«ΆπŸ’–

πŸ“¦ where this page comes from