Integrating the ublox LISA C200 modem

Fork of SprintUSBModemHTTPClientTest by Donatien Garnier

Committer:
sam_grove
Date:
Thu Sep 26 00:44:20 2013 -0500
Revision:
5:3f93dd1d4cb3
Exported program and replaced contents of the repo with the source
to build and debug using keil mdk. Libs NOT upto date are lwip, lwip-sys
and socket. these have newer versions under mbed_official but were starting
from a know working point

Who changed what in which revision?

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