summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/cbcp.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-23 13:22:50 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-23 13:22:50 +0000
commit244ae4f36d8485d801b276c564b0912f8970db1a (patch)
treec2338ca08d1a28b6a12f5a03b849eebdb17a864c /usr.sbin/pppd/cbcp.h
parentb091d7e1ea9e2cf69fd0694da9b01b1c022b4611 (diff)
pppd 2.3b3 import. some minor buf oflow fixes and so.
try it out ppl, but i've got it running talking to cisco w/ all the AFs enabled in kernel.
Diffstat (limited to 'usr.sbin/pppd/cbcp.h')
-rw-r--r--usr.sbin/pppd/cbcp.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr.sbin/pppd/cbcp.h b/usr.sbin/pppd/cbcp.h
new file mode 100644
index 00000000000..14a30e25e7b
--- /dev/null
+++ b/usr.sbin/pppd/cbcp.h
@@ -0,0 +1,28 @@
+/* $OpenBSD: cbcp.h,v 1.1 1996/12/23 13:22:38 mickey Exp $ */
+
+#ifndef CBCP_H
+#define CBCP_H
+
+typedef struct cbcp_state {
+ int us_unit; /* Interface unit number */
+ u_char us_id; /* Current id */
+ u_char us_allowed;
+ int us_type;
+ char *us_number; /* Telefone Number */
+} cbcp_state;
+
+extern cbcp_state cbcp[];
+
+extern struct protent cbcp_protent;
+
+#define CBCP_MINLEN 4
+
+#define CBCP_REQ 1
+#define CBCP_RESP 2
+#define CBCP_ACK 3
+
+#define CB_CONF_NO 1
+#define CB_CONF_USER 2
+#define CB_CONF_ADMIN 3
+#define CB_CONF_LIST 4
+#endif