kprzybyla / udpcp

Pure Python UDPCP Protocol Library (Version 2)
MIT License
4 stars 0 forks source link

Fixed packet checksum calculation #3

Closed kprzybyla closed 5 years ago

kprzybyla commented 5 years ago

The UDPCP documentation does not mention anything about starting value for packet checksum calculation required by Alder32 algorithm therefore the default value (equal to 1) should be used.

To avoid any changes in behaviour of checksum calculation by Alder32 and also make things obvious, we explicitly state the starting value.