]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clean up RST ratelimiting. Previously, ratelimiting occured before tests
authorbmilekic <bmilekic@FreeBSD.org>
Sun, 11 Feb 2001 07:39:51 +0000 (07:39 +0000)
committerbmilekic <bmilekic@FreeBSD.org>
Sun, 11 Feb 2001 07:39:51 +0000 (07:39 +0000)
commit0f9088da5625e8088bdbd7b3587fdadb265b1482
tree05dfca28095c82a06dee66b4ae5d1541036a93af
parentcc52eb42bff57e11d166025d0d19cae8152a462d
Clean up RST ratelimiting. Previously, ratelimiting occured before tests
were performed to determine if the received packet should be reset. This
created erroneous ratelimiting and false alarms in some cases. The code
has now been reorganized so that the checks for validity come before
the call to badport_bandlim. Additionally, a few changes in the symbolic
names of the bandlim types have been made, as well as a clarification of
exactly which type each RST case falls under.

Submitted by: Mike Silbersack <silby@silby.com>
sys/netinet/icmp_var.h
sys/netinet/ip_icmp.c
sys/netinet/tcp_input.c
sys/netinet/tcp_reass.c
sys/netinet/udp_usrreq.c