HomeFreeBSD

icmp: improve INVARIANTS check

Description

icmp: improve INVARIANTS check

Actually check the conditions that are enforced by the error checking
code instead of a condition which is

  • checking a number to be non-negative instead of positive
  • depending on a random number

Perform the checks consistently for ICMPv4 and ICMPv6.

Reviewed by: glebius, rrs, cc
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D48001

Details

Provenance
tuexenAuthored on Dec 12 2024, 2:40 PM
Reviewer
glebius
Differential Revision
D48001: icmp: improve INVARIANTS check
Parents
rG4f02a7d739b3: inpcb: Remove bogus SO_REUSEPORT(_LB) checks in in_pcbbind()
Branches
Unknown
Tags
Unknown