Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/07/01 10:09
Read: times


 
#11402 - TCP-IP Checksum
Calculation of IP Checksum :

unsigned int CRC
CRC += alldata;

CRC != OK !


With this code all works fine :

unsigned long CRC
CRC += alldata
CRC = (((CRC >> 16)&0xFFFF) + (CRC &0xFFFF));

CRC = OK !



Why is this not mentioned in the RFC ?

Best Regards
Paul.


List of 2 messages in thread
TopicAuthorDate
TCP-IP Checksum            01/01/70 00:00      
RE: TCP-IP Checksum            01/01/70 00:00      

Back to Subject List