aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/hdlc.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-02-18 19:35:59 +0000
committerBrian Somers <brian@FreeBSD.org>1998-02-18 19:35:59 +0000
commit63258dccc5f6e2a4469d526aba6c7a5e0eab27da (patch)
treeb7ca051633aa6003a20bad76ee2c97764f7dd206 /usr.sbin/ppp/hdlc.h
parent9991562d362e7b9b7fe150c04a0f471cfa78de17 (diff)
downloadsrc-63258dccc5f6e2a4469d526aba6c7a5e0eab27da.tar.gz
src-63258dccc5f6e2a4469d526aba6c7a5e0eab27da.zip
o Create `struct hdlc' - a part of struct physical.
o Move our LCP report timer into struct hdlc - it's really a hdlc timer (fcs errors etc). o Make `show hdlc' require context and make the output more friendly. o Remove all non-const globals from hdlc.c o Output peer-rejected protocols by name - not just ones that we reject.
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=33582
Diffstat (limited to 'usr.sbin/ppp/hdlc.h')
-rw-r--r--usr.sbin/ppp/hdlc.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h
index f8613eb375f6..a136602e7b5e 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.14.2.4 1998/02/09 19:20:49 brian Exp $
+ * $Id: hdlc.h,v 1.14.2.5 1998/02/18 19:35:20 brian Exp $
*
* TODO:
*/
@@ -59,11 +59,32 @@
struct physical;
struct link;
-extern void HdlcInit(void);
-extern void HdlcErrorCheck(void);
+struct hdlc {
+ struct pppTimer ReportTimer;
+
+ struct {
+ int badfcs;
+ int badaddr;
+ int badcommand;
+ int unknownproto;
+ } laststats, stats;
+
+ struct {
+ int OutPackets;
+ int OutOctets;
+ int OutLQRs;
+ } lqr;
+};
+
+
+extern void hdlc_Init(struct hdlc *);
+extern void hdlc_StartTimer(struct hdlc *);
+extern void hdlc_StopTimer(struct hdlc *);
+extern int hdlc_ReportStatus(struct cmdargs const *);
+extern const char *hdlc_Protocol2Nam(u_short);
+
extern void HdlcInput(struct bundle *, struct mbuf *, struct physical *);
extern void HdlcOutput(struct link *, int, u_short, struct mbuf *bp);
extern u_short HdlcFcs(u_short, u_char *, int);
-extern int ReportHdlcStatus(struct cmdargs const *);
extern int ReportProtStatus(struct cmdargs const *);
extern u_char *HdlcDetect(struct physical *, u_char *, int);