csum_tcpudp_nofold(9)
β¨ 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:
csum_fold(9)ip_fast_csum(9)csum_tcpudp_magic(9)csum_partial(9)ip_compute_csum(9)csum_ipv6_magic(9)
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
- 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