mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
[net] add 'Checksum' class (#5434)
This commit adds `Checksum` class which implements IP checksum calculation and verification (all related code from other modules is now moved to `Checksum` class). The new checksum calculation allows any message chunk size (removes a limitation with previous model of requiring even sized chunks). This commit also adds a unit test `test_checksum` covering the behavior of `Checksum` methods.
This commit is contained in:
@@ -228,6 +228,7 @@ LOCAL_SRC_FILES := \
|
||||
src/core/meshcop/meshcop_tlvs.cpp \
|
||||
src/core/meshcop/panid_query_client.cpp \
|
||||
src/core/meshcop/timestamp.cpp \
|
||||
src/core/net/checksum.cpp \
|
||||
src/core/net/dhcp6_client.cpp \
|
||||
src/core/net/dhcp6_server.cpp \
|
||||
src/core/net/dns_client.cpp \
|
||||
|
||||
Reference in New Issue
Block a user