diff options
author | brian <brian@FreeBSD.org> | 1998-08-25 17:48:43 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-08-25 17:48:43 +0000 |
commit | e47c43b4fc04ac586c00fa902e1254320b31cb4b (patch) | |
tree | e5dec176973c974e87e8b659a8cabdde99bf251e /usr.sbin/ppp/mp.c | |
parent | 9279ee9f4d30bff6857515dc6086e5314cfb6878 (diff) | |
download | FreeBSD-src-e47c43b4fc04ac586c00fa902e1254320b31cb4b.zip FreeBSD-src-e47c43b4fc04ac586c00fa902e1254320b31cb4b.tar.gz |
If we've got a full output buffer queue and cannot send
anything for two mintues (see ``set choked'' and ``show
bundle''), nuke the ip, mp and link level buffer queues.
This should fix problems where ``ppp -auto'' seems to stop
responding after failing to connect to the peer a few times.
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r-- | usr.sbin/ppp/mp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index b4223cd..14de66a 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp.c,v 1.12 1998/06/30 23:04:17 brian Exp $ + * $Id: mp.c,v 1.13 1998/08/07 18:42:50 brian Exp $ */ #include <sys/types.h> @@ -1013,3 +1013,9 @@ mp_LinkLost(struct mp *mp, struct datalink *dl) /* We've lost the link that's holding everything up ! */ mp_Input(mp, NULL, NULL); } + +void +mp_DeleteQueue(struct mp *mp) +{ + link_DeleteQueue(&mp->link); +} |