HomeFreeBSD

pf: simplify pf_check_proto_cksum()

Description

pf: simplify pf_check_proto_cksum()

Simplify and shorten the way ICMP checksums are verified in
pf_check_proto_cksum() by letting it use the same in4_cksum() call that
is used for TCP and UDP checksums.

ok henning@ naddy@

Obtained from: OpenBSD, lteo <lteo@openbsd.org>, 3c23016fb7
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Feb 11 2025, 1:24 PM
Parents
rG9a1b591a862d: pf: bcopy -> memcpy
Branches
Unknown
Tags
Unknown