]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/ipcp.h
Added packet filtering, subnet spec for allowed IP addr; select
[ppp.git] / pppd / ipcp.h
index 8ebfe63f2365821d6881ba92ff19702d07bf669c..2dc68e74d3f303541b0ef2e451d77f39bc704558 100644 (file)
@@ -16,7 +16,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Id: ipcp.h,v 1.1 1993/11/11 03:54:25 paulus Exp $
+ * $Id: ipcp.h,v 1.7 1996/01/01 22:56:54 paulus Exp $
  */
 
 /*
@@ -26,6 +26,9 @@
 #define CI_COMPRESSTYPE        2       /* Compression Type */
 #define        CI_ADDR         3
 
+#define CI_MS_DNS1     129     /* Primary DNS value */
+#define CI_MS_DNS2     131     /* Secondary DNS value */
+
 #define MAX_STATES 16          /* from slcompress.h */
 
 #define IPCP_VJMODE_OLD 1      /* "old" mode (option # = 0x0037) */
@@ -45,9 +48,14 @@ typedef struct ipcp_options {
     int proxy_arp : 1;         /* Make proxy ARP entry for peer? */
     int neg_vj : 1;            /* Van Jacobson Compression? */
     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 */
+    u_int32_t ouraddr, hisaddr;        /* Addresses in NETWORK BYTE ORDER */
+#ifdef USE_MS_DNS
+    u_int32_t dnsaddr[2];      /* Primary and secondary DNS entries */
+#endif
 } ipcp_options;
 
 extern fsm ipcp_fsm[];
@@ -56,10 +64,15 @@ extern ipcp_options ipcp_gotoptions[];
 extern ipcp_options ipcp_allowoptions[];
 extern ipcp_options ipcp_hisoptions[];
 
-void ipcp_init __ARGS((int));
-void ipcp_open __ARGS((int));
-void ipcp_close __ARGS((int));
-void ipcp_lowerup __ARGS((int));
-void ipcp_lowerdown __ARGS((int));
-void ipcp_input __ARGS((int, u_char *, int));
-void ipcp_protrej __ARGS((int));
+void ipcp_init __P((int));
+void ipcp_open __P((int));
+void ipcp_close __P((int, char *));
+void ipcp_lowerup __P((int));
+void ipcp_lowerdown __P((int));
+void ipcp_input __P((int, u_char *, int));
+void ipcp_protrej __P((int));
+int  ipcp_printpkt __P((u_char *, int, void (*)(), void *));
+void ip_check_options __P((void));
+int  ip_demand_conf __P((int));
+
+extern struct protent ipcp_protent;