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 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
sam_grove 5:3f93dd1d4cb3 3 * All rights reserved.
sam_grove 5:3f93dd1d4cb3 4 *
sam_grove 5:3f93dd1d4cb3 5 * Redistribution and use in source and binary forms, with or without modification,
sam_grove 5:3f93dd1d4cb3 6 * are permitted provided that the following conditions are met:
sam_grove 5:3f93dd1d4cb3 7 *
sam_grove 5:3f93dd1d4cb3 8 * 1. Redistributions of source code must retain the above copyright notice,
sam_grove 5:3f93dd1d4cb3 9 * this list of conditions and the following disclaimer.
sam_grove 5:3f93dd1d4cb3 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
sam_grove 5:3f93dd1d4cb3 11 * this list of conditions and the following disclaimer in the documentation
sam_grove 5:3f93dd1d4cb3 12 * and/or other materials provided with the distribution.
sam_grove 5:3f93dd1d4cb3 13 * 3. The name of the author may not be used to endorse or promote products
sam_grove 5:3f93dd1d4cb3 14 * derived from this software without specific prior written permission.
sam_grove 5:3f93dd1d4cb3 15 *
sam_grove 5:3f93dd1d4cb3 16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
sam_grove 5:3f93dd1d4cb3 17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
sam_grove 5:3f93dd1d4cb3 18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
sam_grove 5:3f93dd1d4cb3 19 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
sam_grove 5:3f93dd1d4cb3 20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
sam_grove 5:3f93dd1d4cb3 21 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
sam_grove 5:3f93dd1d4cb3 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
sam_grove 5:3f93dd1d4cb3 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
sam_grove 5:3f93dd1d4cb3 24 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
sam_grove 5:3f93dd1d4cb3 25 * OF SUCH DAMAGE.
sam_grove 5:3f93dd1d4cb3 26 *
sam_grove 5:3f93dd1d4cb3 27 * This file is part of the lwIP TCP/IP stack.
sam_grove 5:3f93dd1d4cb3 28 *
sam_grove 5:3f93dd1d4cb3 29 * Author: Adam Dunkels <adam@sics.se>
sam_grove 5:3f93dd1d4cb3 30 *
sam_grove 5:3f93dd1d4cb3 31 */
sam_grove 5:3f93dd1d4cb3 32 #ifndef __LWIP_IP_ADDR_H__
sam_grove 5:3f93dd1d4cb3 33 #define __LWIP_IP_ADDR_H__
sam_grove 5:3f93dd1d4cb3 34
sam_grove 5:3f93dd1d4cb3 35 #include "lwip/opt.h"
sam_grove 5:3f93dd1d4cb3 36 #include "lwip/def.h"
sam_grove 5:3f93dd1d4cb3 37
sam_grove 5:3f93dd1d4cb3 38 #ifdef __cplusplus
sam_grove 5:3f93dd1d4cb3 39 extern "C" {
sam_grove 5:3f93dd1d4cb3 40 #endif
sam_grove 5:3f93dd1d4cb3 41
sam_grove 5:3f93dd1d4cb3 42 /* This is the aligned version of ip_addr_t,
sam_grove 5:3f93dd1d4cb3 43 used as local variable, on the stack, etc. */
sam_grove 5:3f93dd1d4cb3 44 struct ip_addr {
sam_grove 5:3f93dd1d4cb3 45 u32_t addr;
sam_grove 5:3f93dd1d4cb3 46 };
sam_grove 5:3f93dd1d4cb3 47
sam_grove 5:3f93dd1d4cb3 48 /* This is the packed version of ip_addr_t,
sam_grove 5:3f93dd1d4cb3 49 used in network headers that are itself packed */
sam_grove 5:3f93dd1d4cb3 50 #ifdef PACK_STRUCT_USE_INCLUDES
sam_grove 5:3f93dd1d4cb3 51 # include "arch/bpstruct.h"
sam_grove 5:3f93dd1d4cb3 52 #endif
sam_grove 5:3f93dd1d4cb3 53 PACK_STRUCT_BEGIN
sam_grove 5:3f93dd1d4cb3 54 struct ip_addr_packed {
sam_grove 5:3f93dd1d4cb3 55 PACK_STRUCT_FIELD(u32_t addr);
sam_grove 5:3f93dd1d4cb3 56 } PACK_STRUCT_STRUCT;
sam_grove 5:3f93dd1d4cb3 57 PACK_STRUCT_END
sam_grove 5:3f93dd1d4cb3 58 #ifdef PACK_STRUCT_USE_INCLUDES
sam_grove 5:3f93dd1d4cb3 59 # include "arch/epstruct.h"
sam_grove 5:3f93dd1d4cb3 60 #endif
sam_grove 5:3f93dd1d4cb3 61
sam_grove 5:3f93dd1d4cb3 62 /** ip_addr_t uses a struct for convenience only, so that the same defines can
sam_grove 5:3f93dd1d4cb3 63 * operate both on ip_addr_t as well as on ip_addr_p_t. */
sam_grove 5:3f93dd1d4cb3 64 typedef struct ip_addr ip_addr_t;
sam_grove 5:3f93dd1d4cb3 65 typedef struct ip_addr_packed ip_addr_p_t;
sam_grove 5:3f93dd1d4cb3 66
sam_grove 5:3f93dd1d4cb3 67 /*
sam_grove 5:3f93dd1d4cb3 68 * struct ipaddr2 is used in the definition of the ARP packet format in
sam_grove 5:3f93dd1d4cb3 69 * order to support compilers that don't have structure packing.
sam_grove 5:3f93dd1d4cb3 70 */
sam_grove 5:3f93dd1d4cb3 71 #ifdef PACK_STRUCT_USE_INCLUDES
sam_grove 5:3f93dd1d4cb3 72 # include "arch/bpstruct.h"
sam_grove 5:3f93dd1d4cb3 73 #endif
sam_grove 5:3f93dd1d4cb3 74 PACK_STRUCT_BEGIN
sam_grove 5:3f93dd1d4cb3 75 struct ip_addr2 {
sam_grove 5:3f93dd1d4cb3 76 PACK_STRUCT_FIELD(u16_t addrw[2]);
sam_grove 5:3f93dd1d4cb3 77 } PACK_STRUCT_STRUCT;
sam_grove 5:3f93dd1d4cb3 78 PACK_STRUCT_END
sam_grove 5:3f93dd1d4cb3 79 #ifdef PACK_STRUCT_USE_INCLUDES
sam_grove 5:3f93dd1d4cb3 80 # include "arch/epstruct.h"
sam_grove 5:3f93dd1d4cb3 81 #endif
sam_grove 5:3f93dd1d4cb3 82
sam_grove 5:3f93dd1d4cb3 83 /* Forward declaration to not include netif.h */
sam_grove 5:3f93dd1d4cb3 84 struct netif;
sam_grove 5:3f93dd1d4cb3 85
sam_grove 5:3f93dd1d4cb3 86 extern const ip_addr_t ip_addr_any;
sam_grove 5:3f93dd1d4cb3 87 extern const ip_addr_t ip_addr_broadcast;
sam_grove 5:3f93dd1d4cb3 88
sam_grove 5:3f93dd1d4cb3 89 /** IP_ADDR_ can be used as a fixed IP address
sam_grove 5:3f93dd1d4cb3 90 * for the wildcard and the broadcast address
sam_grove 5:3f93dd1d4cb3 91 */
sam_grove 5:3f93dd1d4cb3 92 #define IP_ADDR_ANY ((ip_addr_t *)&ip_addr_any)
sam_grove 5:3f93dd1d4cb3 93 #define IP_ADDR_BROADCAST ((ip_addr_t *)&ip_addr_broadcast)
sam_grove 5:3f93dd1d4cb3 94
sam_grove 5:3f93dd1d4cb3 95 /** 255.255.255.255 */
sam_grove 5:3f93dd1d4cb3 96 #define IPADDR_NONE ((u32_t)0xffffffffUL)
sam_grove 5:3f93dd1d4cb3 97 /** 127.0.0.1 */
sam_grove 5:3f93dd1d4cb3 98 #define IPADDR_LOOPBACK ((u32_t)0x7f000001UL)
sam_grove 5:3f93dd1d4cb3 99 /** 0.0.0.0 */
sam_grove 5:3f93dd1d4cb3 100 #define IPADDR_ANY ((u32_t)0x00000000UL)
sam_grove 5:3f93dd1d4cb3 101 /** 255.255.255.255 */
sam_grove 5:3f93dd1d4cb3 102 #define IPADDR_BROADCAST ((u32_t)0xffffffffUL)
sam_grove 5:3f93dd1d4cb3 103
sam_grove 5:3f93dd1d4cb3 104 /* Definitions of the bits in an Internet address integer.
sam_grove 5:3f93dd1d4cb3 105
sam_grove 5:3f93dd1d4cb3 106 On subnets, host and network parts are found according to
sam_grove 5:3f93dd1d4cb3 107 the subnet mask, not these masks. */
sam_grove 5:3f93dd1d4cb3 108 #define IP_CLASSA(a) ((((u32_t)(a)) & 0x80000000UL) == 0)
sam_grove 5:3f93dd1d4cb3 109 #define IP_CLASSA_NET 0xff000000
sam_grove 5:3f93dd1d4cb3 110 #define IP_CLASSA_NSHIFT 24
sam_grove 5:3f93dd1d4cb3 111 #define IP_CLASSA_HOST (0xffffffff & ~IP_CLASSA_NET)
sam_grove 5:3f93dd1d4cb3 112 #define IP_CLASSA_MAX 128
sam_grove 5:3f93dd1d4cb3 113
sam_grove 5:3f93dd1d4cb3 114 #define IP_CLASSB(a) ((((u32_t)(a)) & 0xc0000000UL) == 0x80000000UL)
sam_grove 5:3f93dd1d4cb3 115 #define IP_CLASSB_NET 0xffff0000
sam_grove 5:3f93dd1d4cb3 116 #define IP_CLASSB_NSHIFT 16
sam_grove 5:3f93dd1d4cb3 117 #define IP_CLASSB_HOST (0xffffffff & ~IP_CLASSB_NET)
sam_grove 5:3f93dd1d4cb3 118 #define IP_CLASSB_MAX 65536
sam_grove 5:3f93dd1d4cb3 119
sam_grove 5:3f93dd1d4cb3 120 #define IP_CLASSC(a) ((((u32_t)(a)) & 0xe0000000UL) == 0xc0000000UL)
sam_grove 5:3f93dd1d4cb3 121 #define IP_CLASSC_NET 0xffffff00
sam_grove 5:3f93dd1d4cb3 122 #define IP_CLASSC_NSHIFT 8
sam_grove 5:3f93dd1d4cb3 123 #define IP_CLASSC_HOST (0xffffffff & ~IP_CLASSC_NET)
sam_grove 5:3f93dd1d4cb3 124
sam_grove 5:3f93dd1d4cb3 125 #define IP_CLASSD(a) (((u32_t)(a) & 0xf0000000UL) == 0xe0000000UL)
sam_grove 5:3f93dd1d4cb3 126 #define IP_CLASSD_NET 0xf0000000 /* These ones aren't really */
sam_grove 5:3f93dd1d4cb3 127 #define IP_CLASSD_NSHIFT 28 /* net and host fields, but */
sam_grove 5:3f93dd1d4cb3 128 #define IP_CLASSD_HOST 0x0fffffff /* routing needn't know. */
sam_grove 5:3f93dd1d4cb3 129 #define IP_MULTICAST(a) IP_CLASSD(a)
sam_grove 5:3f93dd1d4cb3 130
sam_grove 5:3f93dd1d4cb3 131 #define IP_EXPERIMENTAL(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL)
sam_grove 5:3f93dd1d4cb3 132 #define IP_BADCLASS(a) (((u32_t)(a) & 0xf0000000UL) == 0xf0000000UL)
sam_grove 5:3f93dd1d4cb3 133
sam_grove 5:3f93dd1d4cb3 134 #define IP_LOOPBACKNET 127 /* official! */
sam_grove 5:3f93dd1d4cb3 135
sam_grove 5:3f93dd1d4cb3 136
sam_grove 5:3f93dd1d4cb3 137 #if BYTE_ORDER == BIG_ENDIAN
sam_grove 5:3f93dd1d4cb3 138 /** Set an IP address given by the four byte-parts */
sam_grove 5:3f93dd1d4cb3 139 #define IP4_ADDR(ipaddr, a,b,c,d) \
sam_grove 5:3f93dd1d4cb3 140 (ipaddr)->addr = ((u32_t)((a) & 0xff) << 24) | \
sam_grove 5:3f93dd1d4cb3 141 ((u32_t)((b) & 0xff) << 16) | \
sam_grove 5:3f93dd1d4cb3 142 ((u32_t)((c) & 0xff) << 8) | \
sam_grove 5:3f93dd1d4cb3 143 (u32_t)((d) & 0xff)
sam_grove 5:3f93dd1d4cb3 144 #else
sam_grove 5:3f93dd1d4cb3 145 /** Set an IP address given by the four byte-parts.
sam_grove 5:3f93dd1d4cb3 146 Little-endian version that prevents the use of htonl. */
sam_grove 5:3f93dd1d4cb3 147 #define IP4_ADDR(ipaddr, a,b,c,d) \
sam_grove 5:3f93dd1d4cb3 148 (ipaddr)->addr = ((u32_t)((d) & 0xff) << 24) | \
sam_grove 5:3f93dd1d4cb3 149 ((u32_t)((c) & 0xff) << 16) | \
sam_grove 5:3f93dd1d4cb3 150 ((u32_t)((b) & 0xff) << 8) | \
sam_grove 5:3f93dd1d4cb3 151 (u32_t)((a) & 0xff)
sam_grove 5:3f93dd1d4cb3 152 #endif
sam_grove 5:3f93dd1d4cb3 153
sam_grove 5:3f93dd1d4cb3 154 /** MEMCPY-like copying of IP addresses where addresses are known to be
sam_grove 5:3f93dd1d4cb3 155 * 16-bit-aligned if the port is correctly configured (so a port could define
sam_grove 5:3f93dd1d4cb3 156 * this to copying 2 u16_t's) - no NULL-pointer-checking needed. */
sam_grove 5:3f93dd1d4cb3 157 #ifndef IPADDR2_COPY
sam_grove 5:3f93dd1d4cb3 158 #define IPADDR2_COPY(dest, src) SMEMCPY(dest, src, sizeof(ip_addr_t))
sam_grove 5:3f93dd1d4cb3 159 #endif
sam_grove 5:3f93dd1d4cb3 160
sam_grove 5:3f93dd1d4cb3 161 /** Copy IP address - faster than ip_addr_set: no NULL check */
sam_grove 5:3f93dd1d4cb3 162 #define ip_addr_copy(dest, src) ((dest).addr = (src).addr)
sam_grove 5:3f93dd1d4cb3 163 /** Safely copy one IP address to another (src may be NULL) */
sam_grove 5:3f93dd1d4cb3 164 #define ip_addr_set(dest, src) ((dest)->addr = \
sam_grove 5:3f93dd1d4cb3 165 ((src) == NULL ? 0 : \
sam_grove 5:3f93dd1d4cb3 166 (src)->addr))
sam_grove 5:3f93dd1d4cb3 167 /** Set complete address to zero */
sam_grove 5:3f93dd1d4cb3 168 #define ip_addr_set_zero(ipaddr) ((ipaddr)->addr = 0)
sam_grove 5:3f93dd1d4cb3 169 /** Set address to IPADDR_ANY (no need for htonl()) */
sam_grove 5:3f93dd1d4cb3 170 #define ip_addr_set_any(ipaddr) ((ipaddr)->addr = IPADDR_ANY)
sam_grove 5:3f93dd1d4cb3 171 /** Set address to loopback address */
sam_grove 5:3f93dd1d4cb3 172 #define ip_addr_set_loopback(ipaddr) ((ipaddr)->addr = PP_HTONL(IPADDR_LOOPBACK))
sam_grove 5:3f93dd1d4cb3 173 /** Safely copy one IP address to another and change byte order
sam_grove 5:3f93dd1d4cb3 174 * from host- to network-order. */
sam_grove 5:3f93dd1d4cb3 175 #define ip_addr_set_hton(dest, src) ((dest)->addr = \
sam_grove 5:3f93dd1d4cb3 176 ((src) == NULL ? 0:\
sam_grove 5:3f93dd1d4cb3 177 htonl((src)->addr)))
sam_grove 5:3f93dd1d4cb3 178 /** IPv4 only: set the IP address given as an u32_t */
sam_grove 5:3f93dd1d4cb3 179 #define ip4_addr_set_u32(dest_ipaddr, src_u32) ((dest_ipaddr)->addr = (src_u32))
sam_grove 5:3f93dd1d4cb3 180 /** IPv4 only: get the IP address as an u32_t */
sam_grove 5:3f93dd1d4cb3 181 #define ip4_addr_get_u32(src_ipaddr) ((src_ipaddr)->addr)
sam_grove 5:3f93dd1d4cb3 182
sam_grove 5:3f93dd1d4cb3 183 /** Get the network address by combining host address with netmask */
sam_grove 5:3f93dd1d4cb3 184 #define ip_addr_get_network(target, host, netmask) ((target)->addr = ((host)->addr) & ((netmask)->addr))
sam_grove 5:3f93dd1d4cb3 185
sam_grove 5:3f93dd1d4cb3 186 /**
sam_grove 5:3f93dd1d4cb3 187 * Determine if two address are on the same network.
sam_grove 5:3f93dd1d4cb3 188 *
sam_grove 5:3f93dd1d4cb3 189 * @arg addr1 IP address 1
sam_grove 5:3f93dd1d4cb3 190 * @arg addr2 IP address 2
sam_grove 5:3f93dd1d4cb3 191 * @arg mask network identifier mask
sam_grove 5:3f93dd1d4cb3 192 * @return !0 if the network identifiers of both address match
sam_grove 5:3f93dd1d4cb3 193 */
sam_grove 5:3f93dd1d4cb3 194 #define ip_addr_netcmp(addr1, addr2, mask) (((addr1)->addr & \
sam_grove 5:3f93dd1d4cb3 195 (mask)->addr) == \
sam_grove 5:3f93dd1d4cb3 196 ((addr2)->addr & \
sam_grove 5:3f93dd1d4cb3 197 (mask)->addr))
sam_grove 5:3f93dd1d4cb3 198 #define ip_addr_cmp(addr1, addr2) ((addr1)->addr == (addr2)->addr)
sam_grove 5:3f93dd1d4cb3 199
sam_grove 5:3f93dd1d4cb3 200 #define ip_addr_isany(addr1) ((addr1) == NULL || (addr1)->addr == IPADDR_ANY)
sam_grove 5:3f93dd1d4cb3 201
sam_grove 5:3f93dd1d4cb3 202 #define ip_addr_isbroadcast(ipaddr, netif) ip4_addr_isbroadcast((ipaddr)->addr, (netif))
sam_grove 5:3f93dd1d4cb3 203 u8_t ip4_addr_isbroadcast(u32_t addr, const struct netif *netif);
sam_grove 5:3f93dd1d4cb3 204
sam_grove 5:3f93dd1d4cb3 205 #define ip_addr_netmask_valid(netmask) ip4_addr_netmask_valid((netmask)->addr)
sam_grove 5:3f93dd1d4cb3 206 u8_t ip4_addr_netmask_valid(u32_t netmask);
sam_grove 5:3f93dd1d4cb3 207
sam_grove 5:3f93dd1d4cb3 208 #define ip_addr_ismulticast(addr1) (((addr1)->addr & PP_HTONL(0xf0000000UL)) == PP_HTONL(0xe0000000UL))
sam_grove 5:3f93dd1d4cb3 209
sam_grove 5:3f93dd1d4cb3 210 #define ip_addr_islinklocal(addr1) (((addr1)->addr & PP_HTONL(0xffff0000UL)) == PP_HTONL(0xa9fe0000UL))
sam_grove 5:3f93dd1d4cb3 211
sam_grove 5:3f93dd1d4cb3 212 #define ip_addr_debug_print(debug, ipaddr) \
sam_grove 5:3f93dd1d4cb3 213 LWIP_DEBUGF(debug, ("%"U16_F".%"U16_F".%"U16_F".%"U16_F, \
sam_grove 5:3f93dd1d4cb3 214 ipaddr != NULL ? ip4_addr1_16(ipaddr) : 0, \
sam_grove 5:3f93dd1d4cb3 215 ipaddr != NULL ? ip4_addr2_16(ipaddr) : 0, \
sam_grove 5:3f93dd1d4cb3 216 ipaddr != NULL ? ip4_addr3_16(ipaddr) : 0, \
sam_grove 5:3f93dd1d4cb3 217 ipaddr != NULL ? ip4_addr4_16(ipaddr) : 0))
sam_grove 5:3f93dd1d4cb3 218
sam_grove 5:3f93dd1d4cb3 219 /* Get one byte from the 4-byte address */
sam_grove 5:3f93dd1d4cb3 220 #define ip4_addr1(ipaddr) (((u8_t*)(ipaddr))[0])
sam_grove 5:3f93dd1d4cb3 221 #define ip4_addr2(ipaddr) (((u8_t*)(ipaddr))[1])
sam_grove 5:3f93dd1d4cb3 222 #define ip4_addr3(ipaddr) (((u8_t*)(ipaddr))[2])
sam_grove 5:3f93dd1d4cb3 223 #define ip4_addr4(ipaddr) (((u8_t*)(ipaddr))[3])
sam_grove 5:3f93dd1d4cb3 224 /* These are cast to u16_t, with the intent that they are often arguments
sam_grove 5:3f93dd1d4cb3 225 * to printf using the U16_F format from cc.h. */
sam_grove 5:3f93dd1d4cb3 226 #define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))
sam_grove 5:3f93dd1d4cb3 227 #define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))
sam_grove 5:3f93dd1d4cb3 228 #define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))
sam_grove 5:3f93dd1d4cb3 229 #define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))
sam_grove 5:3f93dd1d4cb3 230
sam_grove 5:3f93dd1d4cb3 231 /** For backwards compatibility */
sam_grove 5:3f93dd1d4cb3 232 #define ip_ntoa(ipaddr) ipaddr_ntoa(ipaddr)
sam_grove 5:3f93dd1d4cb3 233
sam_grove 5:3f93dd1d4cb3 234 u32_t ipaddr_addr(const char *cp);
sam_grove 5:3f93dd1d4cb3 235 int ipaddr_aton(const char *cp, ip_addr_t *addr);
sam_grove 5:3f93dd1d4cb3 236 /** returns ptr to static buffer; not reentrant! */
sam_grove 5:3f93dd1d4cb3 237 char *ipaddr_ntoa(const ip_addr_t *addr);
sam_grove 5:3f93dd1d4cb3 238 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen);
sam_grove 5:3f93dd1d4cb3 239
sam_grove 5:3f93dd1d4cb3 240 #ifdef __cplusplus
sam_grove 5:3f93dd1d4cb3 241 }
sam_grove 5:3f93dd1d4cb3 242 #endif
sam_grove 5:3f93dd1d4cb3 243
sam_grove 5:3f93dd1d4cb3 244 #endif /* __LWIP_IP_ADDR_H__ */