kernels/linux-2.4.0/arch/ia64/lib/checksum.c
/*
 * computes the checksum of the TCP/UDP pseudo-header
 * returns a 16-bit checksum, already complemented.
 */
computes the checksum of the TCP/UDP pseudo-header
returns a 16-bit checksum, already complemented.
computes the checksum of the TCP / UDP pseudo - header returns a 16 - bit checksum already complemented .
unsigned short int csum_tcpudp_magic(unsigned long saddr,
				   unsigned long daddr,
				   unsigned short len,
				   unsigned short proto,
				   unsigned int sum)
{
	return ~from64to16(saddr + daddr + sum +
		((unsigned long) ntohs(len) << 16) +
		((unsigned long) proto << 8));
}
unsigned short int csum_tcpudp_magic ( unsigned long saddr , unsigned long daddr , unsigned short len , unsigned short proto , unsigned int sum ) { return ~ from64to16 ( saddr + daddr + sum + ( ( unsigned long ) ntohs ( len ) << 16 ) + ( ( unsigned long ) proto << 8 ) ) ; }
computes the checksum of the TCP/UDP pseudo-header
 returns a 16-bit checksum, already complemented.
computes the checksum of the TCP / UDP pseudo - header returns a 16 - bit checksum already complemented .