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:
parent
303473e252
commit
a75a485d62
@ -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 +=
|
||||
|
Loading…
x
Reference in New Issue
Block a user