diff options
author | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-07-18 15:39:45 +0000 |
---|---|---|
committer | Marco Pfatschbacher <mpf@cvs.openbsd.org> | 2007-07-18 15:39:45 +0000 |
commit | 65f93532566108e5f74deb9ff5bdc00342fb2e24 (patch) | |
tree | 76d3e445a2d28f2a4445c5ef44657875b446cf1d /sys/net | |
parent | 820ce0e19afd9bafd58a2af80d925801c1b5d76e (diff) |
Don't drop outgoing packets in case of a congested input queue.
OK markus@, mcbride@, "sounds reasonable" henning@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 98dca461f27..aa4326e7b67 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.550 2007/07/10 15:58:37 kurt Exp $ */ +/* $OpenBSD: pf.c,v 1.551 2007/07/18 15:39:44 mpf Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -2860,7 +2860,7 @@ pf_test_rule(struct pf_rule **rm, struct pf_state **sm, int direction, u_int16_t sport, dport; u_int8_t icmptype = 0, icmpcode = 0; - if (pf_check_congestion(ifq)) { + if (direction == PF_IN && pf_check_congestion(ifq)) { REASON_SET(&reason, PFRES_CONGEST); return (PF_DROP); } |