KEIS

Dependents:   EthernetInterface

Fork of lwip by mbed official

Committer:
mbed_official
Date:
Fri Jun 22 09:25:39 2012 +0000
Revision:
0:51ac1d130fd4
Initial import from lwip-1.4.0: http://download.savannah.gnu.org/releases/lwip/lwip-1.4.0.zip

Who changed what in which revision?

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