Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Oct 2005 01:30:15 -0700 (PDT)
From:      kamal kc <kamal_ckk@yahoo.com>
To:        freebsd <freebsd-net@freebsd.org>
Cc:        freebsd <freebsd-hackers@freebsd.org>
Subject:   in_cksum() for ip packets with multiple mbufs
Message-ID:  <20051023083015.18292.qmail@web35705.mail.mud.yahoo.com>

next in thread | raw e-mail | index | archive | help
i come across this unusual problem.

i changed the ip_tos field of the struct ip and
computed
the checksum by using in_cksum().

when the packet uses only one mbuf the computed 
checksum is ok but when the packet uses more than one 
mbuf then the computed checksum is wrong.

eg. pinging with payload less than 1470 bytes is ok
but with payload greater than 1480 bytes does not 
work. (the error being bad checksum --that i knew 
by capturing network packets by ethereal)

is it a real problem or i have made some mistake.

i put the code before the if_output() in the 
ip_output() function.

help !!

kamal







	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051023083015.18292.qmail>