HomeFreeBSD

udplite: fix checksum computation on the sender side

Description

udplite: fix checksum computation on the sender side

Don't fill the fields of the UDP/IP header not used for the
checksum computation before performing the checksum computation.

Reviewed by: glebius
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D42275

(cherry picked from commit aa64a8f5c35c13b1c325f1a4597c987a37bec5da)

Details

Provenance
tuexenAuthored on Nov 1 2023, 9:24 AM
emasteCommitted on Jan 11 2024, 1:22 AM
Reviewer
glebius
Differential Revision
D42275: udplite: fix checksum computation on the sender side
Parents
rG5c4da68ad785: copy_file_range.2: Clarify that only regular files work
Branches
Unknown
Tags
Unknown