1*10465441SEvalZero /***************************************************************************** 2*10465441SEvalZero * ipcp.h - PPP IP NCP: Internet Protocol Network Control Protocol header file. 3*10465441SEvalZero * 4*10465441SEvalZero * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. 5*10465441SEvalZero * portions Copyright (c) 1997 Global Election Systems Inc. 6*10465441SEvalZero * 7*10465441SEvalZero * The authors hereby grant permission to use, copy, modify, distribute, 8*10465441SEvalZero * and license this software and its documentation for any purpose, provided 9*10465441SEvalZero * that existing copyright notices are retained in all copies and that this 10*10465441SEvalZero * notice and the following disclaimer are included verbatim in any 11*10465441SEvalZero * distributions. No written agreement, license, or royalty fee is required 12*10465441SEvalZero * for any of the authorized uses. 13*10465441SEvalZero * 14*10465441SEvalZero * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR 15*10465441SEvalZero * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16*10465441SEvalZero * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17*10465441SEvalZero * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 18*10465441SEvalZero * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19*10465441SEvalZero * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20*10465441SEvalZero * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21*10465441SEvalZero * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22*10465441SEvalZero * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23*10465441SEvalZero * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24*10465441SEvalZero * 25*10465441SEvalZero ****************************************************************************** 26*10465441SEvalZero * REVISION HISTORY 27*10465441SEvalZero * 28*10465441SEvalZero * 03-01-01 Marc Boucher <[email protected]> 29*10465441SEvalZero * Ported to lwIP. 30*10465441SEvalZero * 97-12-04 Guy Lancaster <[email protected]>, Global Election Systems Inc. 31*10465441SEvalZero * Original derived from BSD codes. 32*10465441SEvalZero *****************************************************************************/ 33*10465441SEvalZero /* 34*10465441SEvalZero * ipcp.h - IP Control Protocol definitions. 35*10465441SEvalZero * 36*10465441SEvalZero * Copyright (c) 1989 Carnegie Mellon University. 37*10465441SEvalZero * All rights reserved. 38*10465441SEvalZero * 39*10465441SEvalZero * Redistribution and use in source and binary forms are permitted 40*10465441SEvalZero * provided that the above copyright notice and this paragraph are 41*10465441SEvalZero * duplicated in all such forms and that any documentation, 42*10465441SEvalZero * advertising materials, and other materials related to such 43*10465441SEvalZero * distribution and use acknowledge that the software was developed 44*10465441SEvalZero * by Carnegie Mellon University. The name of the 45*10465441SEvalZero * University may not be used to endorse or promote products derived 46*10465441SEvalZero * from this software without specific prior written permission. 47*10465441SEvalZero * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 48*10465441SEvalZero * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 49*10465441SEvalZero * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 50*10465441SEvalZero * 51*10465441SEvalZero * $Id: ipcp.h,v 1.4 2010/01/18 20:49:43 goldsimon Exp $ 52*10465441SEvalZero */ 53*10465441SEvalZero 54*10465441SEvalZero #ifndef IPCP_H 55*10465441SEvalZero #define IPCP_H 56*10465441SEvalZero 57*10465441SEvalZero /* 58*10465441SEvalZero * Options. 59*10465441SEvalZero */ 60*10465441SEvalZero #define CI_ADDRS 1 /* IP Addresses */ 61*10465441SEvalZero #define CI_COMPRESSTYPE 2 /* Compression Type */ 62*10465441SEvalZero #define CI_ADDR 3 63*10465441SEvalZero 64*10465441SEvalZero #define CI_MS_DNS1 129 /* Primary DNS value */ 65*10465441SEvalZero #define CI_MS_WINS1 128 /* Primary WINS value */ 66*10465441SEvalZero #define CI_MS_DNS2 131 /* Secondary DNS value */ 67*10465441SEvalZero #define CI_MS_WINS2 130 /* Secondary WINS value */ 68*10465441SEvalZero 69*10465441SEvalZero #define IPCP_VJMODE_OLD 1 /* "old" mode (option # = 0x0037) */ 70*10465441SEvalZero #define IPCP_VJMODE_RFC1172 2 /* "old-rfc"mode (option # = 0x002d) */ 71*10465441SEvalZero #define IPCP_VJMODE_RFC1332 3 /* "new-rfc"mode (option # = 0x002d, */ 72*10465441SEvalZero /* maxslot and slot number compression) */ 73*10465441SEvalZero 74*10465441SEvalZero #define IPCP_VJ_COMP 0x002d /* current value for VJ compression option */ 75*10465441SEvalZero #define IPCP_VJ_COMP_OLD 0x0037 /* "old" (i.e, broken) value for VJ */ 76*10465441SEvalZero /* compression option */ 77*10465441SEvalZero 78*10465441SEvalZero typedef struct ipcp_options { 79*10465441SEvalZero u_int neg_addr : 1; /* Negotiate IP Address? */ 80*10465441SEvalZero u_int old_addrs : 1; /* Use old (IP-Addresses) option? */ 81*10465441SEvalZero u_int req_addr : 1; /* Ask peer to send IP address? */ 82*10465441SEvalZero u_int default_route : 1; /* Assign default route through interface? */ 83*10465441SEvalZero u_int proxy_arp : 1; /* Make proxy ARP entry for peer? */ 84*10465441SEvalZero u_int neg_vj : 1; /* Van Jacobson Compression? */ 85*10465441SEvalZero u_int old_vj : 1; /* use old (short) form of VJ option? */ 86*10465441SEvalZero u_int accept_local : 1; /* accept peer's value for ouraddr */ 87*10465441SEvalZero u_int accept_remote : 1; /* accept peer's value for hisaddr */ 88*10465441SEvalZero u_int req_dns1 : 1; /* Ask peer to send primary DNS address? */ 89*10465441SEvalZero u_int req_dns2 : 1; /* Ask peer to send secondary DNS address? */ 90*10465441SEvalZero u_short vj_protocol; /* protocol value to use in VJ option */ 91*10465441SEvalZero u_char maxslotindex; /* VJ slots - 1. */ 92*10465441SEvalZero u_char cflag; /* VJ slot compression flag. */ 93*10465441SEvalZero u32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */ 94*10465441SEvalZero u32_t dnsaddr[2]; /* Primary and secondary MS DNS entries */ 95*10465441SEvalZero u32_t winsaddr[2]; /* Primary and secondary MS WINS entries */ 96*10465441SEvalZero } ipcp_options; 97*10465441SEvalZero 98*10465441SEvalZero extern fsm ipcp_fsm[]; 99*10465441SEvalZero extern ipcp_options ipcp_wantoptions[]; 100*10465441SEvalZero extern ipcp_options ipcp_gotoptions[]; 101*10465441SEvalZero extern ipcp_options ipcp_allowoptions[]; 102*10465441SEvalZero extern ipcp_options ipcp_hisoptions[]; 103*10465441SEvalZero 104*10465441SEvalZero extern struct protent ipcp_protent; 105*10465441SEvalZero 106*10465441SEvalZero #endif /* IPCP_H */ 107