diff options
author | dfr <dfr@FreeBSD.org> | 1996-01-30 11:08:50 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1996-01-30 11:08:50 +0000 |
commit | 9b03b51375fbd478d56013fc1ed71225a8e90176 (patch) | |
tree | d62d7ad9c96e7d604dc6e27cd8519049718a6def /usr.sbin/ppp/pap.c | |
parent | b2ad84f5ce4ebeb44b8e31628cc9c8040c1a2a29 (diff) | |
download | FreeBSD-src-9b03b51375fbd478d56013fc1ed71225a8e90176.zip FreeBSD-src-9b03b51375fbd478d56013fc1ed71225a8e90176.tar.gz |
Some patches to ppp which improve stability. I have been running a
ppp based on these patches for about 3 weeks with no downtime.
The original submitters comments:
Two features iijppp has over kernel ppp that I like are predictor1
compression and demand dialing. Here are a few bug fixes.
I expanded the priority queueing scheme and discovered it was broken
due to the assignment at ip.c line 300. All packets were being
queued at the same priority.
Fixing priority queueing broke predictor1 compression. Packets
were compressed before being queued and predictor1 worked as long
as the packets were popped off the queue in the same order they
were pushed onto the queue.
There were a few byte order problems in IP header tests also.
There is a recursion problem in SendLqrReport(). LcpClose() is
called when "Too many echo packets are lost" which winds up in
SendLqrReport() again. I believe the original intention was to
just stop the LQR timer with the call to StopLqr() but the side
effects hurt.
Submitted by: John Capo <jc@irbs.com>
Diffstat (limited to 'usr.sbin/ppp/pap.c')
-rw-r--r-- | usr.sbin/ppp/pap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/pap.c b/usr.sbin/ppp/pap.c index 0c06307..a76fc31 100644 --- a/usr.sbin/ppp/pap.c +++ b/usr.sbin/ppp/pap.c @@ -18,7 +18,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pap.c,v 1.2 1995/02/26 12:17:51 amurai Exp $ + * $Id: pap.c,v 1.3 1995/05/30 03:50:53 rgrimes Exp $ * * TODO: */ @@ -67,7 +67,7 @@ int papid; *cp++ = keylen; bcopy(VarAuthKey, cp, keylen); - HdlcOutput(PRI_NORMAL, PROTO_PAP, bp); + HdlcOutput(PRI_LINK, PROTO_PAP, bp); } static void @@ -92,7 +92,7 @@ int code; *cp++ = mlen; bcopy(message, cp, mlen); LogPrintf(LOG_PHASE, "PapOutput: %s\n", papcodes[code]); - HdlcOutput(PRI_NORMAL, PROTO_PAP, bp); + HdlcOutput(PRI_LINK, PROTO_PAP, bp); } /* |