Netservices modded to read fragmented HTTP respsonse/payload from special purpose server - 180 bytes only

Committer:
RodColeman
Date:
Thu Sep 08 10:41:36 2011 +0000
Revision:
0:8f5825f330b0
setDataLen hacked to 180bytes

Who changed what in which revision?

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