From a75a485d625341c61f75e4872b08ac6388f758ce Mon Sep 17 00:00:00 2001 From: Mike Silbersack Date: Wed, 26 Feb 2003 07:28:35 +0000 Subject: Fix a condition so that ip reassembly queues are emptied immediately when maxfragpackets is dropped to 0. Noticed by: bmah --- sys/netinet/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index efe50c0e13cb..afac57cbd40e 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -1252,7 +1252,7 @@ ip_slowtimo() * (due to the limit being lowered), drain off * enough to get down to the new limit. */ - if (maxnipq > 0 && nipq > maxnipq) { + if (maxnipq >= 0 && nipq > maxnipq) { for (i = 0; i < IPREASS_NHASH; i++) { while (nipq > maxnipq && !TAILQ_EMPTY(&ipq[i])) { ipstat.ips_fragdropped += -- cgit v1.3