summaryrefslogtreecommitdiffstats
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-04-25 18:50:01 +0000
committerhenning <henning@openbsd.org>2004-04-25 18:50:01 +0000
commitfd0746bf4b103f6d7579bcba18e849c2df26fcbe (patch)
treecc7b96ec68b1da46e2baf119f81dc865cbf88d1c /sys/net/if_ppp.c
parentprevent an endless loop with route-to lo0, fixes PR 3736, (diff)
downloadwireguard-openbsd-fd0746bf4b103f6d7579bcba18e849c2df26fcbe.tar.xz
wireguard-openbsd-fd0746bf4b103f6d7579bcba18e849c2df26fcbe.zip
check for input queue congestion on those as well and call if_congestion when
needed; these are slightly different so that we cannot use the new IF_INPUT_ENQUEUE macro deraadt ok
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 3136933c161..e6a45a02671 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.c,v 1.40 2003/12/16 20:33:25 markus Exp $ */
+/* $OpenBSD: if_ppp.c,v 1.41 2004/04/25 18:50:01 henning Exp $ */
/* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */
/*
@@ -1533,6 +1533,8 @@ ppp_inproc(sc, m)
if (sc->sc_flags & SC_DEBUG)
printf("%s: input queue full\n", ifp->if_xname);
ifp->if_iqdrops++;
+ if (!inq->ifq_congestion)
+ if_congestion(inq);
goto bad;
}
IF_ENQUEUE(inq, m);