[Winpcap-users] TCP CRC Solved

Vidar Evenrud Seeberg vseeberg at netcom.no
Thu Feb 9 21:14:17 GMT 2006


Hello again!
 
I would just inform you that the TCP CRC problem is solved.
Credits to Vasily for leading me in the right direction!!!!
The solution was to put both the payload and the TCP+payload length to
network byte order (htons). The first was solved after comment from Vasily
and the second I found myself (a bug in my code).
 
Just an important point for all of you dealing with payload. When
constructing a packet with a new payload, the payload itself should not be
network-order, but when calculating the TCP CRC, the payload must be
network-order. So you have to deal with to versions of the payload. At least
this is what made my program work.
 
Best regards to all of you, and have a nice weekend
 
Vidar E. Seeberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060209/04d2bd87/attachment.htm


More information about the Winpcap-users mailing list