Fix a condition so that ip reassembly queues are emptied immediately

when maxfragpackets is dropped to 0.

Noticed by:	bmah
This commit is contained in:
Mike Silbersack 2003-02-26 07:28:35 +00:00
parent 303473e252
commit a75a485d62

View File

@ -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 +=