Checksum curiosa
The spec states that...
Quote:
Cheers, Shaun |
Shaun,
If I recall correctly the Message Length max is 255. That field points to the Slot # of Checksum High. So I believe the max packet is 257 bytes. If each of those bytes was 255, then the Checksum would be 65535. So in that case it wouldn't roll over. It would be best for everyone to implement it as a modulo anyway as there will be less problems when/if there is any expansion to it in the future. |
The 257 byte maximum includes the two bytes of the checksum, which clearly aren't covered by the checksum. The checksum only covers 255 bytes.
|
Just because you can't get to the roll over point doesn't mean you can't say it's modulo. By it's very definition of being a 16-bit number it has to be modulo 0x10000
|
All times are GMT -6. The time now is 05:33 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.