summaryrefslogtreecommitdiff
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-04-25 18:50:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-04-25 18:50:02 +0000
commit41cb89796d4aef02846d605d086ebbd1731d2c30 (patch)
tree3f6af399054662488ef762d5c86a03c9c3b9aa07 /sys/net/if_ppp.c
parenta13aca4c9c7eeb63fe30b13d3f2ea9a9a287718f (diff)
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);