From 41cb89796d4aef02846d605d086ebbd1731d2c30 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 25 Apr 2004 18:50:02 +0000 Subject: 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 --- sys/net/if_ppp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net/if_ppp.c') 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); -- cgit v1.2.3