summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-02-26 07:28:35 +0000
committersilby <silby@FreeBSD.org>2003-02-26 07:28:35 +0000
commitfc22f276ed187379f1e4843ec1da8d3e5707468a (patch)
treec57d101ce239040357218936d4b8b756f70d37f2 /sys/netinet/ip_input.c
parentc3f9ec487b6e9b49b8f7ef15fc6370e4f5edc318 (diff)
downloadFreeBSD-src-fc22f276ed187379f1e4843ec1da8d3e5707468a.zip
FreeBSD-src-fc22f276ed187379f1e4843ec1da8d3e5707468a.tar.gz
Fix a condition so that ip reassembly queues are emptied immediately
when maxfragpackets is dropped to 0. Noticed by: bmah
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index efe50c0..afac57c 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 +=
OpenPOWER on IntegriCloud