summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ccp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-03 23:28:02 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-03 23:28:02 +0000
commit4bc84b8c115e2fe7c008198ac6d220d62a9a64a8 (patch)
tree29aab829a16512604006a590537c07a0d79eab2d /usr.sbin/ppp/ccp.c
parent0f1dddfb0c993248234e8d31ed19247eb06be536 (diff)
downloadsrc-test2-4bc84b8c115e2fe7c008198ac6d220d62a9a64a8.tar.gz
src-test2-4bc84b8c115e2fe7c008198ac6d220d62a9a64a8.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/ccp.c')
-rw-r--r--usr.sbin/ppp/ccp.c39
1 files changed, 22 insertions, 17 deletions
diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c
index a72ad5c1560a..1b3ab346e198 100644
--- a/usr.sbin/ppp/ccp.c
+++ b/usr.sbin/ppp/ccp.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ccp.c,v 1.20 1997/11/22 03:37:25 brian Exp $
+ * $Id: ccp.c,v 1.21 1997/12/03 10:23:44 brian Exp $
*
* TODO:
* o Support other compression protocols
@@ -80,21 +80,24 @@ struct fsm CcpFsm = {
static char const *cftypes[] = {
/* Check out the latest ``Compression Control Protocol'' rfc (rfc1962.txt) */
- "OUI", /* 0: OUI */
- "PRED1", /* 1: Predictor type 1 */
- "PRED2", /* 2: Predictor type 2 */
- "PUDDLE", /* 3: Puddle Jumber */
- "???", "???", "???", "???", "???", "???",
- "???", "???", "???", "???", "???", "???",
- "HWPPC", /* 16: Hewlett-Packard PPC */
- "STAC", /* 17: Stac Electronics LZS */
- "MSPPC", /* 18: Microsoft PPC */
- "GAND", /* 19: Gandalf FZA */
- "V42BIS", /* 20: ARG->DATA.42bis compression */
- "BSD", /* 21: BSD LZW Compress */
- "???",
- "???",
- "DEFLATE", /* 24: PPP Deflate */
+ "OUI", /* 0: OUI */
+ "PRED1", /* 1: Predictor type 1 */
+ "PRED2", /* 2: Predictor type 2 */
+ "PUDDLE", /* 3: Puddle Jumber */
+ "???", "???", "???", "???", "???", "???",
+ "???", "???", "???", "???", "???", "???",
+ "HWPPC", /* 16: Hewlett-Packard PPC */
+ "STAC", /* 17: Stac Electronics LZS (rfc1974) */
+ "MSPPC", /* 18: Microsoft PPC */
+ "GAND", /* 19: Gandalf FZA (rfc1993) */
+ "V42BIS", /* 20: ARG->DATA.42bis compression */
+ "BSD", /* 21: BSD LZW Compress */
+ "???",
+ "LZS-DCP", /* 23: LZS-DCP Compression Protocol (rfc1967) */
+ "MAGNALINK/DEFLATE", /* 24: Magnalink Variable Resource (rfc1975) */
+ /* 24: Deflate (according to pppd-2.3.1) */
+ "DCE", /* 25: Data Circuit-Terminating Equip (rfc1976) */
+ "DEFLATE", /* 26: Deflate (rfc1979) */
};
#define NCFTYPES (sizeof(cftypes)/sizeof(char *))
@@ -107,9 +110,11 @@ protoname(int proto)
return cftypes[proto];
}
+/* We support these algorithms, and Req them in the given order */
static const struct ccp_algorithm *algorithm[] = {
+ &DeflateAlgorithm,
&Pred1Algorithm,
- &DeflateAlgorithm
+ &PppdDeflateAlgorithm
};
static int in_algorithm = -1;