Page MenuHomeFreeBSD

icmp: improve INVARIANTS check
ClosedPublic

Authored by tuexen on Dec 9 2024, 4:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 2:58 AM
Unknown Object (File)
Tue, Jan 7, 12:05 AM
Unknown Object (File)
Mon, Jan 6, 11:44 PM
Unknown Object (File)
Mon, Jan 6, 11:00 PM
Unknown Object (File)
Mon, Jan 6, 1:40 PM
Unknown Object (File)
Tue, Dec 17, 4:26 PM
Unknown Object (File)
Dec 14 2024, 9:41 PM
Unknown Object (File)
Dec 12 2024, 2:53 PM
Subscribers

Details

Summary

Actually check the conditions, which 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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tuexen requested review of this revision.Dec 9 2024, 4:41 PM
This revision is now accepted and ready to land.Dec 9 2024, 7:54 PM

Additional comment:

% sysctl -d net.inet.icmp.icmplim_jitter
net.inet.icmp.icmplim_jitter: Random icmplim jitter adjustment limit

May document this net.inet.icmp.icmplim_jitter in ICMP(4).

glebius requested changes to this revision.Dec 10 2024, 7:05 PM

Thanks! Please apply same changes to netinet6/icmp6.c

This revision now requires changes to proceed.Dec 10 2024, 7:05 PM

Consistently handle ICMPv4 and ICMPv6 as suggested by Gleb.

Thanks! Please apply same changes to netinet6/icmp6.c

Done. Thanks.

In D48001#1094461, @cc wrote:

Additional comment:

% sysctl -d net.inet.icmp.icmplim_jitter
net.inet.icmp.icmplim_jitter: Random icmplim jitter adjustment limit

May document this net.inet.icmp.icmplim_jitter in ICMP(4).

Improved man page in D48025.

This revision is now accepted and ready to land.Dec 12 2024, 1:56 PM
This revision was automatically updated to reflect the committed changes.