Page MenuHomeFreeBSD

icmp: improve INVARIANTS check
ClosedPublic

Authored by tuexen on Mon, Dec 9, 4:41 PM.
Tags
None
Referenced Files
F105560026: D48001.diff
Tue, Dec 17, 4:26 PM
Unknown Object (File)
Sat, Dec 14, 9:41 PM
Unknown Object (File)
Thu, Dec 12, 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.Mon, Dec 9, 4:41 PM
This revision is now accepted and ready to land.Mon, Dec 9, 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.Tue, Dec 10, 7:05 PM

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

This revision now requires changes to proceed.Tue, Dec 10, 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.Thu, Dec 12, 1:56 PM
This revision was automatically updated to reflect the committed changes.