diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-25 18:50:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-25 18:50:02 +0000 |
commit | 41cb89796d4aef02846d605d086ebbd1731d2c30 (patch) | |
tree | 3f6af399054662488ef762d5c86a03c9c3b9aa07 /sys/net/if_spppsubr.c | |
parent | a13aca4c9c7eeb63fe30b13d3f2ea9a9a287718f (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_spppsubr.c')
-rw-r--r-- | sys/net/if_spppsubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index c793012301a..8eca76c7b0a 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.19 2004/01/03 14:08:53 espie Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.20 2004/04/25 18:50:01 henning Exp $ */ /* * Synchronous PPP/Cisco link level subroutines. * Keepalive protocol implemented in both Cisco and PPP modes. @@ -636,6 +636,8 @@ sppp_input(struct ifnet *ifp, struct mbuf *m) if (debug) log(LOG_DEBUG, SPP_FMT "protocol queue overflow\n", SPP_ARGS(ifp)); + if (!inq->ifq_congestion) + if_congestion(inq); goto drop; } IF_ENQUEUE(inq, m); |