summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lcp.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-03 10:23:54 +0000
committerbrian <brian@FreeBSD.org>1997-12-03 10:23:54 +0000
commit4c9568e05af003a85ca40c896b5041fc8286221f (patch)
tree86301631e3a842883c7e61e9c2f1feab23a39e23 /usr.sbin/ppp/lcp.h
parent185fb48052f903a80b31786784cbb82fb059c35c (diff)
downloadFreeBSD-src-4c9568e05af003a85ca40c896b5041fc8286221f.zip
FreeBSD-src-4c9568e05af003a85ca40c896b5041fc8286221f.tar.gz
Abstract the CCP layer a level.
Add DEFLATE support.
Diffstat (limited to 'usr.sbin/ppp/lcp.h')
-rw-r--r--usr.sbin/ppp/lcp.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/usr.sbin/ppp/lcp.h b/usr.sbin/ppp/lcp.h
index ea5388c..9bf9b00 100644
--- a/usr.sbin/ppp/lcp.h
+++ b/usr.sbin/ppp/lcp.h
@@ -15,11 +15,13 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lcp.h,v 1.12 1997/11/14 15:39:15 brian Exp $
+ * $Id: lcp.h,v 1.13 1997/11/22 03:37:36 brian Exp $
*
* TODO:
*/
+#define REJECTED(p, x) (p->his_reject & (1<<x))
+
struct lcpstate {
u_long his_mru;
u_long his_accmap;
@@ -57,13 +59,14 @@ struct lcpstate {
#define TY_FCSALT 9 /* FCS-Alternatives */
#define TY_SDP 10 /* Self-Describing-Padding */
-struct lqrreq {
- u_char type;
- u_char length;
- u_short proto; /* Quality protocol */
- u_long period; /* Reporting interval */
+#define MAX_LCP_OPT_LEN 10
+struct lcp_opt {
+ u_char id;
+ u_char len;
+ u_char data[MAX_LCP_OPT_LEN-2];
};
+
extern struct lcpstate LcpInfo;
extern struct fsm LcpFsm;
@@ -73,6 +76,7 @@ extern void LcpSendProtoRej(u_char *, int);
extern void LcpOpen(int);
extern void LcpClose(void);
extern void LcpDown(void);
-extern void PutConfValue(int, u_char **, const char **, u_char, int, u_long);
+extern int LcpPutConf(int, u_char *, const struct lcp_opt *, const char *,
+ const char *, ...);
extern int ReportLcpStatus(struct cmdargs const *);
extern void LcpInput(struct mbuf *);
OpenPOWER on IntegriCloud