aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/hdlc.h
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1996-01-30 11:08:50 +0000
committerDoug Rabson <dfr@FreeBSD.org>1996-01-30 11:08:50 +0000
commit76bd0c0a9d32cbd8ccfdf0b4cf134141b670df20 (patch)
treed62d7ad9c96e7d604dc6e27cd8519049718a6def /usr.sbin/ppp/hdlc.h
parentbc7805ece3edc86abfa1f4aecddb46fa19427159 (diff)
downloadsrc-76bd0c0a9d32cbd8ccfdf0b4cf134141b670df20.tar.gz
src-76bd0c0a9d32cbd8ccfdf0b4cf134141b670df20.zip
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>
Notes
Notes: svn path=/head/; revision=13733
Diffstat (limited to 'usr.sbin/ppp/hdlc.h')
-rw-r--r--usr.sbin/ppp/hdlc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h
index 3da20ef73003..ca05b11dd8d8 100644
--- a/usr.sbin/ppp/hdlc.h
+++ b/usr.sbin/ppp/hdlc.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: hdlc.h,v 1.2 1995/02/26 12:17:31 amurai Exp $
+ * $Id: hdlc.h,v 1.3 1996/01/11 17:48:48 phk Exp $
*
* TODO:
*/
@@ -45,9 +45,14 @@
/*
* Output priority
*/
+/* PRI_NORMAL and PRI_FAST have meaning only on the IP queue.
+ * All IP frames have the same priority once they are compressed.
+ * IP frames stay on the IP queue till they can be sent on the
+ * link. They are compressed at that time.
+*/
#define PRI_NORMAL 0 /* Normal priority */
-#define PRI_FAST 1 /* Fast (interructive) */
-#define PRI_URGENT 2 /* Urgent (LQR packets) */
+#define PRI_FAST 1 /* Fast (interractive) */
+#define PRI_LINK 1 /* Urgent (LQR packets) */
unsigned char EscMap[33];