Date: Thu, 20 Sep 2001 22:34:31 -0500 From: Matt Finlay <matt@ipperformance.com> To: Les Biffle <les@safety.net> Cc: davep@afterswish.com, Alfred Perlstein <bright@mu.org>, hackers@FreeBSD.ORG Subject: Re: sendto not sending what I asked... Message-ID: <3BAAB547.C065FF97@ipperformance.com> References: <200109210250.f8L2oO615274@ns3.safety.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Les Biffle wrote: > > pkt.ipbit.ip_sum=in_cksum((unsigned short*)(void*)&pkt,20); > > pkt.tcpbit.th_sum=tcpsum(&pkt.ipbit); > > You need to do the TCP checksum first. It changes the payload (the TCP > checksum). The IP checksum includes all data, so must be done after the > payload changes are done. i think this is incorrect. the IP checksum only includes the IP header and any IP options. therefore order should not matter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BAAB547.C065FF97>