summaryrefslogtreecommitdiff
path: root/libexec/pppd/ipcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/pppd/ipcp.h')
-rw-r--r--libexec/pppd/ipcp.h32
1 files changed, 18 insertions, 14 deletions
diff --git a/libexec/pppd/ipcp.h b/libexec/pppd/ipcp.h
index 3bbec12442ef..bae91e55c455 100644
--- a/libexec/pppd/ipcp.h
+++ b/libexec/pppd/ipcp.h
@@ -15,6 +15,8 @@
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * $Id: ipcp.h,v 1.2 1994/03/30 09:31:30 jkh Exp $
*/
/*
@@ -26,36 +28,38 @@
#define MAX_STATES 16 /* from slcompress.h */
-#define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */
-#define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */
-#define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */
- /* maxslot and slot number */
- /* compression from Aug. 1991 */
- /* ipcp draft RFC) */
+#define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */
+#define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */
+#define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */
+ /* maxslot and slot number compression) */
#define IPCP_VJ_COMP 0x002d /* current value for VJ compression option*/
#define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */
/* compression option*/
typedef struct ipcp_options {
- int neg_addrs : 1; /* Negotiate IP Addresses? */
int neg_addr : 1; /* Negotiate IP Address? */
- int got_addr : 1; /* Got IP Address? */
- u_long ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
+ int old_addrs : 1; /* Use old (IP-Addresses) option? */
+ int req_addr : 1; /* Ask peer to send IP address? */
+ int default_route : 1; /* Assign default route through interface? */
+ int proxy_arp : 1; /* Make proxy ARP entry for peer? */
int neg_vj : 1; /* Van Jacobson Compression? */
- u_char maxslotindex, cflag; /* fields for Aug. 1991 Draft VJ */
- /* compression negotiation */
+ int old_vj : 1; /* use old (short) form of VJ option? */
+ int accept_local : 1; /* accept peer's value for ouraddr */
+ int accept_remote : 1; /* accept peer's value for hisaddr */
+ u_short vj_protocol; /* protocol value to use in VJ option */
+ u_char maxslotindex, cflag; /* values for RFC1332 VJ compression neg. */
+ u_long ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */
} ipcp_options;
+extern fsm ipcp_fsm[];
extern ipcp_options ipcp_wantoptions[];
extern ipcp_options ipcp_gotoptions[];
extern ipcp_options ipcp_allowoptions[];
extern ipcp_options ipcp_hisoptions[];
void ipcp_init __ARGS((int));
-void ipcp_vj_setmode __ARGS((int));
-void ipcp_activeopen __ARGS((int));
-void ipcp_passiveopen __ARGS((int));
+void ipcp_open __ARGS((int));
void ipcp_close __ARGS((int));
void ipcp_lowerup __ARGS((int));
void ipcp_lowerdown __ARGS((int));