Brandon Fictorie / Mbed 2 deprecated BF_Websocket

Dependencies:   mbed

Committer:
bfictorie
Date:
Sun Mar 25 17:26:30 2012 +0000
Revision:
0:8cdad1c73e8e

        

Who changed what in which revision?

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