summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/hdlc.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-08-25 00:29:32 +0000
committerbrian <brian@FreeBSD.org>1997-08-25 00:29:32 +0000
commit1a67d257255b14fb46fc02630bf861a49bebd625 (patch)
tree5a0190bb42d398d91fc5bbdd17de31f54aec2459 /usr.sbin/ppp/hdlc.h
parentbbf38e6e36ecd35771c55badcb09ca745a61d881 (diff)
downloadFreeBSD-src-1a67d257255b14fb46fc02630bf861a49bebd625.zip
FreeBSD-src-1a67d257255b14fb46fc02630bf861a49bebd625.tar.gz
Make the code format more in line with style(9).
Update loadalias to use the new libalias api. Update to version 1.1.
Diffstat (limited to 'usr.sbin/ppp/hdlc.h')
-rw-r--r--usr.sbin/ppp/hdlc.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h
index 4f3ff02..ebd52ad 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.8 1997/06/01 11:35:02 brian Exp $
+ * $Id: hdlc.h,v 1.9 1997/06/09 03:27:22 brian Exp $
*
* TODO:
*/
@@ -26,17 +26,17 @@
/*
* Definition for Async HDLC
*/
-#define HDLC_SYN 0x7e /* SYNC character */
-#define HDLC_ESC 0x7d /* Escape character */
-#define HDLC_XOR 0x20 /* Modifier value */
+#define HDLC_SYN 0x7e /* SYNC character */
+#define HDLC_ESC 0x7d /* Escape character */
+#define HDLC_XOR 0x20 /* Modifier value */
#define HDLC_ADDR 0xff
#define HDLC_UI 0x03
/*
* Definition for HDLC Frame Check Sequence
*/
-#define INITFCS 0xffff /* Initial value for FCS computation */
-#define GOODFCS 0xf0b8 /* Good FCS value */
+#define INITFCS 0xffff /* Initial value for FCS computation */
+#define GOODFCS 0xf0b8 /* Good FCS value */
#define DEF_MRU 1500
#define MAX_MRU 2048
@@ -58,13 +58,14 @@
#define PRI_FAST 1 /* Fast (interractive) */
#define PRI_LINK 1 /* Urgent (LQR packets) */
-unsigned char EscMap[33];
+extern u_char EscMap[33];
void HdlcInit(void);
void HdlcErrorCheck(void);
-void HdlcInput(struct mbuf *bp);
-void HdlcOutput(int pri, u_short proto, struct mbuf *bp);
-void AsyncOutput(int pri, struct mbuf *bp, int proto);
+void HdlcInput(struct mbuf * bp);
+void HdlcOutput(int pri, u_short proto, struct mbuf * bp);
+void AsyncOutput(int pri, struct mbuf * bp, int proto);
u_short HdlcFcs(u_short, u_char *, int);
void DecodePacket(u_short, struct mbuf *);
+
#endif
OpenPOWER on IntegriCloud