Program the control the fischertechnik robo interface or intelligent interface via tcp socket or via a java gui.

Dependencies:   mbed ConfigFile

Committer:
networker
Date:
Fri Dec 31 14:01:14 2010 +0000
Revision:
0:7f26f0680202
initial release: comprises ftlib (no usb), ft-over-ip socket server, and the http server (the html page and java jar I still have to publish somewhere)

Who changed what in which revision?

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