ソースの整理中ですが、利用はできます。 大きなファイルはできないかもしれません。

Dependencies:   EthernetInterface HttpServer TextLCD expatlib mbed-rpc mbed-rtos mbed Socket lwip-eth lwip-sys lwip

Fork of giken9_HTMLServer_Sample by Yasushi TAUCHI

Committer:
yueee_yt
Date:
Wed Mar 12 04:19:54 2014 +0000
Revision:
0:7766f6712673
???????????????

Who changed what in which revision?

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