webrtc/net/dcsctp/packet
Victor Boivie bd46bb7660 dcsctp: Support zero checksum packets
If configured, the packet parser will allow packets with
a set checksum of zero. In that case, the correct checksum
will not even be calculated, avoiding a CPU intensive
calculation.

Also, if specified when building a packet, the checksum can
be opted to be not calculated and written to the packet.
This is to be used when draft-tuexen-tsvwg-sctp-zero-checksum
has been negotiated, except for some packets during association
establishment.

This is mainly a preparation CL and follow-up CL will enable
this feature.

Low-Coverage-Reason: Affects debug logging code not run in tests
Bug: webrtc:14997
Change-Id: I3207ac3a626df039ee2990403c2edd6429f17617
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/298481
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Victor Boivie <boivie@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39737}
2023-04-02 21:38:00 +00:00
..
chunk dcsctp: Don't deliver skipped messages 2022-03-09 11:22:15 +00:00
error_cause dcsctp: Prevent overflow of missing parameters 2021-06-09 14:12:53 +00:00
parameter dcsctp: add zero checksum acceptable chunk parameter 2023-03-28 12:15:39 +00:00
bounded_byte_reader.h dcsctp: Do explicit bounds checking in bounded IO 2021-06-16 13:02:32 +00:00
bounded_byte_reader_test.cc
bounded_byte_writer.h Fix several UBsan issues with memcpy 2022-09-14 09:35:39 +00:00
bounded_byte_writer_test.cc
BUILD.gn dcsctp: add zero checksum acceptable chunk parameter 2023-03-28 12:15:39 +00:00
chunk_validators.cc dcsctp: Report duplicate TSNs 2021-05-19 12:57:03 +00:00
chunk_validators.h dcsctp: Add Chunk Validators 2021-04-20 13:37:22 +00:00
chunk_validators_test.cc dcsctp: Add Chunk Validators 2021-04-20 13:37:22 +00:00
crc32c.cc dcsctp: Use third_party/crc32c for integrity check 2021-04-27 10:12:44 +00:00
crc32c.h dcsctp: Add CRC32C generator 2021-03-31 15:02:02 +00:00
crc32c_test.cc dcsctp: Add CRC32C generator 2021-03-31 15:02:02 +00:00
data.h Revert "dcsctp: Use rtc::CopyOnWriteBuffer" 2021-12-02 12:33:46 +00:00
sctp_packet.cc dcsctp: Support zero checksum packets 2023-04-02 21:38:00 +00:00
sctp_packet.h dcsctp: Support zero checksum packets 2023-04-02 21:38:00 +00:00
sctp_packet_test.cc dcsctp: Support zero checksum packets 2023-04-02 21:38:00 +00:00
tlv_trait.cc dcsctp: Add TLV trait 2021-03-31 12:52:38 +00:00
tlv_trait.h dcsctp: Fix iOS build errors 2021-05-04 10:11:15 +00:00
tlv_trait_test.cc dcsctp: Enforce variable length TLV minimum length 2021-04-08 15:33:16 +00:00