Dieter Graef / F7_Ethernet

Dependents:   STM32F746_iothub_client_sample_mqtt DISCO-F746NG_Ethernet Nucleo_F746ZG_Ethernet thethingsiO-DISCO_F746NG-mqtt ... more

Committer:
DieterGraef
Date:
Sun Jun 19 16:23:40 2016 +0000
Revision:
0:d26c1b55cfca
Ethernet Library for Nucleo stm32f746ZG and Disco stm32f746NG  works under arm and gcc environment

Who changed what in which revision?

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