NetServices Stack source

Dependents:   HelloWorld ServoInterfaceBoardExample1 4180_Lab4

Committer:
donatien
Date:
Thu Aug 05 15:01:33 2010 +0000
Revision:
11:da4498f591ee
Parent:
0:632c9925f013

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
donatien 0:632c9925f013 1 /**
donatien 0:632c9925f013 2 * @file
donatien 0:632c9925f013 3 * SLIP Interface
donatien 0:632c9925f013 4 *
donatien 0:632c9925f013 5 */
donatien 0:632c9925f013 6
donatien 0:632c9925f013 7 /*
donatien 0:632c9925f013 8 * Copyright (c) 2001-2004 Swedish Institute of Computer Science.
donatien 0:632c9925f013 9 * All rights reserved.
donatien 0:632c9925f013 10 *
donatien 0:632c9925f013 11 * Redistribution and use in source and binary forms, with or without
donatien 0:632c9925f013 12 * modification, are permitted provided that the following conditions
donatien 0:632c9925f013 13 * are met:
donatien 0:632c9925f013 14 * 1. Redistributions of source code must retain the above copyright
donatien 0:632c9925f013 15 * notice, this list of conditions and the following disclaimer.
donatien 0:632c9925f013 16 * 2. Redistributions in binary form must reproduce the above copyright
donatien 0:632c9925f013 17 * notice, this list of conditions and the following disclaimer in the
donatien 0:632c9925f013 18 * documentation and/or other materials provided with the distribution.
donatien 0:632c9925f013 19 * 3. Neither the name of the Institute nor the names of its contributors
donatien 0:632c9925f013 20 * may be used to endorse or promote products derived from this software
donatien 0:632c9925f013 21 * without specific prior written permission.
donatien 0:632c9925f013 22 *
donatien 0:632c9925f013 23 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
donatien 0:632c9925f013 24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
donatien 0:632c9925f013 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
donatien 0:632c9925f013 26 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
donatien 0:632c9925f013 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
donatien 0:632c9925f013 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
donatien 0:632c9925f013 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
donatien 0:632c9925f013 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
donatien 0:632c9925f013 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
donatien 0:632c9925f013 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
donatien 0:632c9925f013 33 * SUCH DAMAGE.
donatien 0:632c9925f013 34 *
donatien 0:632c9925f013 35 * This file is built upon the file: src/arch/rtxc/netif/sioslip.c
donatien 0:632c9925f013 36 *
donatien 0:632c9925f013 37 * Author: Magnus Ivarsson <magnus.ivarsson(at)volvo.com>
donatien 0:632c9925f013 38 */
donatien 0:632c9925f013 39
donatien 0:632c9925f013 40 /*
donatien 0:632c9925f013 41 * This is an arch independent SLIP netif. The specific serial hooks must be
donatien 0:632c9925f013 42 * provided by another file. They are sio_open, sio_read/sio_tryread and sio_send
donatien 0:632c9925f013 43 */
donatien 0:632c9925f013 44
donatien 0:632c9925f013 45 #include "netif/slipif.h"
donatien 0:632c9925f013 46 #include "lwip/opt.h"
donatien 0:632c9925f013 47
donatien 0:632c9925f013 48 #if LWIP_HAVE_SLIPIF
donatien 0:632c9925f013 49
donatien 0:632c9925f013 50 #include "lwip/def.h"
donatien 0:632c9925f013 51 #include "lwip/pbuf.h"
donatien 0:632c9925f013 52 #include "lwip/sys.h"
donatien 0:632c9925f013 53 #include "lwip/stats.h"
donatien 0:632c9925f013 54 #include "lwip/snmp.h"
donatien 0:632c9925f013 55 #include "lwip/sio.h"
donatien 0:632c9925f013 56
donatien 0:632c9925f013 57 #define SLIP_BLOCK 1
donatien 0:632c9925f013 58 #define SLIP_DONTBLOCK 0
donatien 0:632c9925f013 59
donatien 0:632c9925f013 60 #define SLIP_END 0300 /* 0xC0 */
donatien 0:632c9925f013 61 #define SLIP_ESC 0333 /* 0xDB */
donatien 0:632c9925f013 62 #define SLIP_ESC_END 0334 /* 0xDC */
donatien 0:632c9925f013 63 #define SLIP_ESC_ESC 0335 /* 0xDD */
donatien 0:632c9925f013 64
donatien 0:632c9925f013 65 #define SLIP_MAX_SIZE 1500
donatien 0:632c9925f013 66
donatien 0:632c9925f013 67 enum slipif_recv_state {
donatien 0:632c9925f013 68 SLIP_RECV_NORMAL,
donatien 0:632c9925f013 69 SLIP_RECV_ESCAPE,
donatien 0:632c9925f013 70 };
donatien 0:632c9925f013 71
donatien 0:632c9925f013 72 struct slipif_priv {
donatien 0:632c9925f013 73 sio_fd_t sd;
donatien 0:632c9925f013 74 /* q is the whole pbuf chain for a packet, p is the current pbuf in the chain */
donatien 0:632c9925f013 75 struct pbuf *p, *q;
donatien 0:632c9925f013 76 enum slipif_recv_state state;
donatien 0:632c9925f013 77 u16_t i, recved;
donatien 0:632c9925f013 78 };
donatien 0:632c9925f013 79
donatien 0:632c9925f013 80 /**
donatien 0:632c9925f013 81 * Send a pbuf doing the necessary SLIP encapsulation
donatien 0:632c9925f013 82 *
donatien 0:632c9925f013 83 * Uses the serial layer's sio_send()
donatien 0:632c9925f013 84 *
donatien 0:632c9925f013 85 * @param netif the lwip network interface structure for this slipif
donatien 0:632c9925f013 86 * @param p the pbuf chaing packet to send
donatien 0:632c9925f013 87 * @param ipaddr the ip address to send the packet to (not used for slipif)
donatien 0:632c9925f013 88 * @return always returns ERR_OK since the serial layer does not provide return values
donatien 0:632c9925f013 89 */
donatien 0:632c9925f013 90 err_t
donatien 0:632c9925f013 91 slipif_output(struct netif *netif, struct pbuf *p, ip_addr_t *ipaddr)
donatien 0:632c9925f013 92 {
donatien 0:632c9925f013 93 struct slipif_priv *priv;
donatien 0:632c9925f013 94 struct pbuf *q;
donatien 0:632c9925f013 95 u16_t i;
donatien 0:632c9925f013 96 u8_t c;
donatien 0:632c9925f013 97
donatien 0:632c9925f013 98 LWIP_ASSERT("netif != NULL", (netif != NULL));
donatien 0:632c9925f013 99 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL));
donatien 0:632c9925f013 100 LWIP_ASSERT("p != NULL", (p != NULL));
donatien 0:632c9925f013 101
donatien 0:632c9925f013 102 LWIP_UNUSED_ARG(ipaddr);
donatien 0:632c9925f013 103
donatien 0:632c9925f013 104 priv = netif->state;
donatien 0:632c9925f013 105
donatien 0:632c9925f013 106 /* Send pbuf out on the serial I/O device. */
donatien 0:632c9925f013 107 sio_send(SLIP_END, priv->sd);
donatien 0:632c9925f013 108
donatien 0:632c9925f013 109 for (q = p; q != NULL; q = q->next) {
donatien 0:632c9925f013 110 for (i = 0; i < q->len; i++) {
donatien 0:632c9925f013 111 c = ((u8_t *)q->payload)[i];
donatien 0:632c9925f013 112 switch (c) {
donatien 0:632c9925f013 113 case SLIP_END:
donatien 0:632c9925f013 114 sio_send(SLIP_ESC, priv->sd);
donatien 0:632c9925f013 115 sio_send(SLIP_ESC_END, priv->sd);
donatien 0:632c9925f013 116 break;
donatien 0:632c9925f013 117 case SLIP_ESC:
donatien 0:632c9925f013 118 sio_send(SLIP_ESC, priv->sd);
donatien 0:632c9925f013 119 sio_send(SLIP_ESC_ESC, priv->sd);
donatien 0:632c9925f013 120 break;
donatien 0:632c9925f013 121 default:
donatien 0:632c9925f013 122 sio_send(c, priv->sd);
donatien 0:632c9925f013 123 break;
donatien 0:632c9925f013 124 }
donatien 0:632c9925f013 125 }
donatien 0:632c9925f013 126 }
donatien 0:632c9925f013 127 sio_send(SLIP_END, priv->sd);
donatien 0:632c9925f013 128 return ERR_OK;
donatien 0:632c9925f013 129 }
donatien 0:632c9925f013 130
donatien 0:632c9925f013 131 /**
donatien 0:632c9925f013 132 * Static function for easy use of blockig or non-blocking
donatien 0:632c9925f013 133 * sio_read
donatien 0:632c9925f013 134 *
donatien 0:632c9925f013 135 * @param fd serial device handle
donatien 0:632c9925f013 136 * @param data pointer to data buffer for receiving
donatien 0:632c9925f013 137 * @param len maximum length (in bytes) of data to receive
donatien 0:632c9925f013 138 * @param block if 1, call sio_read; if 0, call sio_tryread
donatien 0:632c9925f013 139 * @return return value of sio_read of sio_tryread
donatien 0:632c9925f013 140 */
donatien 0:632c9925f013 141 static u32_t
donatien 0:632c9925f013 142 slip_sio_read(sio_fd_t fd, u8_t* data, u32_t len, u8_t block)
donatien 0:632c9925f013 143 {
donatien 0:632c9925f013 144 if (block) {
donatien 0:632c9925f013 145 return sio_read(fd, data, len);
donatien 0:632c9925f013 146 } else {
donatien 0:632c9925f013 147 return sio_tryread(fd, data, len);
donatien 0:632c9925f013 148 }
donatien 0:632c9925f013 149 }
donatien 0:632c9925f013 150
donatien 0:632c9925f013 151 /**
donatien 0:632c9925f013 152 * Handle the incoming SLIP stream character by character
donatien 0:632c9925f013 153 *
donatien 0:632c9925f013 154 * Poll the serial layer by calling sio_read() or sio_tryread().
donatien 0:632c9925f013 155 *
donatien 0:632c9925f013 156 * @param netif the lwip network interface structure for this slipif
donatien 0:632c9925f013 157 * @param block if 1, block until data is received; if 0, return when all data
donatien 0:632c9925f013 158 * from the buffer is received (multiple calls to this function will
donatien 0:632c9925f013 159 * return a complete packet, NULL is returned before - used for polling)
donatien 0:632c9925f013 160 * @return The IP packet when SLIP_END is received
donatien 0:632c9925f013 161 */
donatien 0:632c9925f013 162 static struct pbuf *
donatien 0:632c9925f013 163 slipif_input(struct netif *netif, u8_t block)
donatien 0:632c9925f013 164 {
donatien 0:632c9925f013 165 struct slipif_priv *priv;
donatien 0:632c9925f013 166 u8_t c;
donatien 0:632c9925f013 167 struct pbuf *t;
donatien 0:632c9925f013 168
donatien 0:632c9925f013 169 LWIP_ASSERT("netif != NULL", (netif != NULL));
donatien 0:632c9925f013 170 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL));
donatien 0:632c9925f013 171
donatien 0:632c9925f013 172 priv = netif->state;
donatien 0:632c9925f013 173
donatien 0:632c9925f013 174 while (slip_sio_read(priv->sd, &c, 1, block) > 0) {
donatien 0:632c9925f013 175 switch (priv->state) {
donatien 0:632c9925f013 176 case SLIP_RECV_NORMAL:
donatien 0:632c9925f013 177 switch (c) {
donatien 0:632c9925f013 178 case SLIP_END:
donatien 0:632c9925f013 179 if (priv->recved > 0) {
donatien 0:632c9925f013 180 /* Received whole packet. */
donatien 0:632c9925f013 181 /* Trim the pbuf to the size of the received packet. */
donatien 0:632c9925f013 182 pbuf_realloc(priv->q, priv->recved);
donatien 0:632c9925f013 183
donatien 0:632c9925f013 184 LINK_STATS_INC(link.recv);
donatien 0:632c9925f013 185
donatien 0:632c9925f013 186 LWIP_DEBUGF(SLIP_DEBUG, ("slipif: Got packet\n"));
donatien 0:632c9925f013 187 t = priv->q;
donatien 0:632c9925f013 188 priv->p = priv->q = NULL;
donatien 0:632c9925f013 189 priv->i = priv->recved = 0;
donatien 0:632c9925f013 190 return t;
donatien 0:632c9925f013 191 }
donatien 0:632c9925f013 192 continue;
donatien 0:632c9925f013 193 case SLIP_ESC:
donatien 0:632c9925f013 194 priv->state = SLIP_RECV_ESCAPE;
donatien 0:632c9925f013 195 continue;
donatien 0:632c9925f013 196 }
donatien 0:632c9925f013 197 break;
donatien 0:632c9925f013 198 case SLIP_RECV_ESCAPE:
donatien 0:632c9925f013 199 switch (c) {
donatien 0:632c9925f013 200 case SLIP_ESC_END:
donatien 0:632c9925f013 201 c = SLIP_END;
donatien 0:632c9925f013 202 break;
donatien 0:632c9925f013 203 case SLIP_ESC_ESC:
donatien 0:632c9925f013 204 c = SLIP_ESC;
donatien 0:632c9925f013 205 break;
donatien 0:632c9925f013 206 }
donatien 0:632c9925f013 207 priv->state = SLIP_RECV_NORMAL;
donatien 0:632c9925f013 208 /* FALLTHROUGH */
donatien 0:632c9925f013 209 }
donatien 0:632c9925f013 210
donatien 0:632c9925f013 211 /* byte received, packet not yet completely received */
donatien 0:632c9925f013 212 if (priv->p == NULL) {
donatien 0:632c9925f013 213 /* allocate a new pbuf */
donatien 0:632c9925f013 214 LWIP_DEBUGF(SLIP_DEBUG, ("slipif_input: alloc\n"));
donatien 0:632c9925f013 215 priv->p = pbuf_alloc(PBUF_LINK, (PBUF_POOL_BUFSIZE - PBUF_LINK_HLEN), PBUF_POOL);
donatien 0:632c9925f013 216
donatien 0:632c9925f013 217 if (priv->p == NULL) {
donatien 0:632c9925f013 218 LINK_STATS_INC(link.drop);
donatien 0:632c9925f013 219 LWIP_DEBUGF(SLIP_DEBUG, ("slipif_input: no new pbuf! (DROP)\n"));
donatien 0:632c9925f013 220 /* don't process any further since we got no pbuf to receive to */
donatien 0:632c9925f013 221 break;
donatien 0:632c9925f013 222 }
donatien 0:632c9925f013 223
donatien 0:632c9925f013 224 if (priv->q != NULL) {
donatien 0:632c9925f013 225 /* 'chain' the pbuf to the existing chain */
donatien 0:632c9925f013 226 pbuf_cat(priv->q, priv->p);
donatien 0:632c9925f013 227 } else {
donatien 0:632c9925f013 228 /* p is the first pbuf in the chain */
donatien 0:632c9925f013 229 priv->q = priv->p;
donatien 0:632c9925f013 230 }
donatien 0:632c9925f013 231 }
donatien 0:632c9925f013 232
donatien 0:632c9925f013 233 /* this automatically drops bytes if > SLIP_MAX_SIZE */
donatien 0:632c9925f013 234 if ((priv->p != NULL) && (priv->recved <= SLIP_MAX_SIZE)) {
donatien 0:632c9925f013 235 ((u8_t *)priv->p->payload)[priv->i] = c;
donatien 0:632c9925f013 236 priv->recved++;
donatien 0:632c9925f013 237 priv->i++;
donatien 0:632c9925f013 238 if (priv->i >= priv->p->len) {
donatien 0:632c9925f013 239 /* on to the next pbuf */
donatien 0:632c9925f013 240 priv->i = 0;
donatien 0:632c9925f013 241 if (priv->p->next != NULL && priv->p->next->len > 0) {
donatien 0:632c9925f013 242 /* p is a chain, on to the next in the chain */
donatien 0:632c9925f013 243 priv->p = priv->p->next;
donatien 0:632c9925f013 244 } else {
donatien 0:632c9925f013 245 /* p is a single pbuf, set it to NULL so next time a new
donatien 0:632c9925f013 246 * pbuf is allocated */
donatien 0:632c9925f013 247 priv->p = NULL;
donatien 0:632c9925f013 248 }
donatien 0:632c9925f013 249 }
donatien 0:632c9925f013 250 }
donatien 0:632c9925f013 251 }
donatien 0:632c9925f013 252
donatien 0:632c9925f013 253 return NULL;
donatien 0:632c9925f013 254 }
donatien 0:632c9925f013 255
donatien 0:632c9925f013 256 #if !NO_SYS
donatien 0:632c9925f013 257 /**
donatien 0:632c9925f013 258 * The SLIP input thread.
donatien 0:632c9925f013 259 *
donatien 0:632c9925f013 260 * Feed the IP layer with incoming packets
donatien 0:632c9925f013 261 *
donatien 0:632c9925f013 262 * @param nf the lwip network interface structure for this slipif
donatien 0:632c9925f013 263 */
donatien 0:632c9925f013 264 static void
donatien 0:632c9925f013 265 slipif_loop_thread(void *nf)
donatien 0:632c9925f013 266 {
donatien 0:632c9925f013 267 struct pbuf *p;
donatien 0:632c9925f013 268 struct netif *netif = (struct netif *)nf;
donatien 0:632c9925f013 269
donatien 0:632c9925f013 270 while (1) {
donatien 0:632c9925f013 271 p = slipif_input(netif, SLIP_BLOCK);
donatien 0:632c9925f013 272 if (p != NULL) {
donatien 0:632c9925f013 273 if (netif->input(p, netif) != ERR_OK) {
donatien 0:632c9925f013 274 pbuf_free(p);
donatien 0:632c9925f013 275 p = NULL;
donatien 0:632c9925f013 276 }
donatien 0:632c9925f013 277 }
donatien 0:632c9925f013 278 }
donatien 0:632c9925f013 279 }
donatien 0:632c9925f013 280 #endif /* !NO_SYS */
donatien 0:632c9925f013 281
donatien 0:632c9925f013 282 /**
donatien 0:632c9925f013 283 * SLIP netif initialization
donatien 0:632c9925f013 284 *
donatien 0:632c9925f013 285 * Call the arch specific sio_open and remember
donatien 0:632c9925f013 286 * the opened device in the state field of the netif.
donatien 0:632c9925f013 287 *
donatien 0:632c9925f013 288 * @param netif the lwip network interface structure for this slipif
donatien 0:632c9925f013 289 * @return ERR_OK if serial line could be opened,
donatien 0:632c9925f013 290 * ERR_MEM if no memory could be allocated,
donatien 0:632c9925f013 291 * ERR_IF is serial line couldn't be opened
donatien 0:632c9925f013 292 *
donatien 0:632c9925f013 293 * @note netif->num must contain the number of the serial port to open
donatien 0:632c9925f013 294 * (0 by default)
donatien 0:632c9925f013 295 */
donatien 0:632c9925f013 296 err_t
donatien 0:632c9925f013 297 slipif_init(struct netif *netif)
donatien 0:632c9925f013 298 {
donatien 0:632c9925f013 299 struct slipif_priv *priv;
donatien 0:632c9925f013 300
donatien 0:632c9925f013 301 LWIP_DEBUGF(SLIP_DEBUG, ("slipif_init: netif->num=%"U16_F"\n", (u16_t)netif->num));
donatien 0:632c9925f013 302
donatien 0:632c9925f013 303 /* Allocate private data */
donatien 0:632c9925f013 304 priv = mem_malloc(sizeof(struct slipif_priv));
donatien 0:632c9925f013 305 if (!priv) {
donatien 0:632c9925f013 306 return ERR_MEM;
donatien 0:632c9925f013 307 }
donatien 0:632c9925f013 308
donatien 0:632c9925f013 309 netif->name[0] = 's';
donatien 0:632c9925f013 310 netif->name[1] = 'l';
donatien 0:632c9925f013 311 netif->output = slipif_output;
donatien 0:632c9925f013 312 netif->mtu = SLIP_MAX_SIZE;
donatien 0:632c9925f013 313 netif->flags |= NETIF_FLAG_POINTTOPOINT;
donatien 0:632c9925f013 314
donatien 0:632c9925f013 315 /* Try to open the serial port (netif->num contains the port number). */
donatien 0:632c9925f013 316 priv->sd = sio_open(netif->num);
donatien 0:632c9925f013 317 if (!priv->sd) {
donatien 0:632c9925f013 318 /* Opening the serial port failed. */
donatien 0:632c9925f013 319 mem_free(priv);
donatien 0:632c9925f013 320 return ERR_IF;
donatien 0:632c9925f013 321 }
donatien 0:632c9925f013 322
donatien 0:632c9925f013 323 /* Initialize private data */
donatien 0:632c9925f013 324 priv->p = NULL;
donatien 0:632c9925f013 325 priv->q = NULL;
donatien 0:632c9925f013 326 priv->state = SLIP_RECV_NORMAL;
donatien 0:632c9925f013 327 priv->i = 0;
donatien 0:632c9925f013 328 priv->recved = 0;
donatien 0:632c9925f013 329
donatien 0:632c9925f013 330 netif->state = priv;
donatien 0:632c9925f013 331
donatien 0:632c9925f013 332 /* initialize the snmp variables and counters inside the struct netif
donatien 0:632c9925f013 333 * ifSpeed: no assumption can be made without knowing more about the
donatien 0:632c9925f013 334 * serial line!
donatien 0:632c9925f013 335 */
donatien 0:632c9925f013 336 NETIF_INIT_SNMP(netif, snmp_ifType_slip, 0);
donatien 0:632c9925f013 337
donatien 0:632c9925f013 338 /* Create a thread to poll the serial line. */
donatien 0:632c9925f013 339 sys_thread_new(SLIPIF_THREAD_NAME, slipif_loop_thread, netif,
donatien 0:632c9925f013 340 SLIPIF_THREAD_STACKSIZE, SLIPIF_THREAD_PRIO);
donatien 0:632c9925f013 341 return ERR_OK;
donatien 0:632c9925f013 342 }
donatien 0:632c9925f013 343
donatien 0:632c9925f013 344 /**
donatien 0:632c9925f013 345 * Polls the serial device and feeds the IP layer with incoming packets.
donatien 0:632c9925f013 346 *
donatien 0:632c9925f013 347 * @param netif The lwip network interface structure for this slipif
donatien 0:632c9925f013 348 */
donatien 0:632c9925f013 349 void
donatien 0:632c9925f013 350 slipif_poll(struct netif *netif)
donatien 0:632c9925f013 351 {
donatien 0:632c9925f013 352 struct pbuf *p;
donatien 0:632c9925f013 353 struct slipif_priv *priv;
donatien 0:632c9925f013 354
donatien 0:632c9925f013 355 LWIP_ASSERT("netif != NULL", (netif != NULL));
donatien 0:632c9925f013 356 LWIP_ASSERT("netif->state != NULL", (netif->state != NULL));
donatien 0:632c9925f013 357
donatien 0:632c9925f013 358 priv = netif->state;
donatien 0:632c9925f013 359
donatien 0:632c9925f013 360 while ((p = slipif_input(netif, SLIP_DONTBLOCK)) != NULL) {
donatien 0:632c9925f013 361 if (netif->input(p, netif) != ERR_OK) {
donatien 0:632c9925f013 362 pbuf_free(p);
donatien 0:632c9925f013 363 }
donatien 0:632c9925f013 364 }
donatien 0:632c9925f013 365 }
donatien 0:632c9925f013 366
donatien 0:632c9925f013 367 #endif /* LWIP_HAVE_SLIPIF */