summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpf <mpf@openbsd.org>2007-07-18 15:39:44 +0000
committermpf <mpf@openbsd.org>2007-07-18 15:39:44 +0000
commit1ab1955db9dfe8d6f31eb8a9b4c7c08846341920 (patch)
treefb4bb376a0104782224d9455180e49eb3853cc7f
parenteliminate duplicate code to open lease file and just open at (diff)
downloadwireguard-openbsd-1ab1955db9dfe8d6f31eb8a9b4c7c08846341920.tar.xz
wireguard-openbsd-1ab1955db9dfe8d6f31eb8a9b4c7c08846341920.zip
Don't drop outgoing packets in case of a congested input queue.
OK markus@, mcbride@, "sounds reasonable" henning@
-rw-r--r--sys/net/pf.c4
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);
}