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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to