summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/hdlc.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-30 20:04:34 +0000
committerphk <phk@FreeBSD.org>1996-01-30 20:04:34 +0000
commit62d807ed9dfe8c9430d2db3afa124efed328d1b0 (patch)
tree04717b08fcf28642e80f61fe3097f1a5f0a6c0f8 /usr.sbin/ppp/hdlc.c
parent212c3eba091c449ada760e94396c1d08a828ea7f (diff)
downloadFreeBSD-src-62d807ed9dfe8c9430d2db3afa124efed328d1b0.zip
FreeBSD-src-62d807ed9dfe8c9430d2db3afa124efed328d1b0.tar.gz
Use libmd's MD5.
inline hdlc checksum calculation. make big tables const.
Diffstat (limited to 'usr.sbin/ppp/hdlc.c')
-rw-r--r--usr.sbin/ppp/hdlc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c
index 474cf98..ab49e73 100644
--- a/usr.sbin/ppp/hdlc.c
+++ b/usr.sbin/ppp/hdlc.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: hdlc.c,v 1.6 1996/01/10 21:27:45 phk Exp $
+ * $Id: hdlc.c,v 1.7 1996/01/11 17:48:46 phk Exp $
*
* TODO:
*/
@@ -60,7 +60,7 @@ struct protostat {
{ 0, "Others" },
};
-static u_short fcstab[256] = {
+static u_short const fcstab[256] = {
/* 00 */ 0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf,
/* 08 */ 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7,
/* 10 */ 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e,
@@ -107,7 +107,7 @@ HdlcInit()
* HDLC FCS computation. Read RFC 1171 Appendix B and CCITT X.25 section
* 2.27 for further details.
*/
-u_short
+inline u_short
HdlcFcs(fcs, cp, len)
u_short fcs;
u_char *cp;
OpenPOWER on IntegriCloud