Dependencies:   FatFileSystem mbed WeatherMeters SDFileSystem

Committer:
dcoban
Date:
Tue Apr 03 18:43:13 2012 +0000
Revision:
0:1a61c61d0845

        

Who changed what in which revision?

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