[an error occurred while processing this directive]
|
использую рекомендацию из RFC 791:
The checksum algorithm is:
The checksum field is the 16 bit one's complement of the one's
complement sum of all 16 bit words in the header. For purposes of computing the checksum, the value of the checksum field is zero.
This is a simple to compute checksum and experimental evidence
indicates it is adequate, but it is provisional and may be replaced
by a CRC procedure, depending on further experience.
пользую эту формулу( CRC = CRC + CRC XOR DATA[i] ), но CRC получается другой.
E-mail: info@telesys.ru