Deprecated fork of old network stack source from github. Please use official library instead: https://mbed.org/users/mbed_official/code/EthernetInterface/

Committer:
AdamGreen
Date:
Sat Oct 26 08:51:36 2013 +0000
Revision:
1:eadc868c2acf
Parent:
0:3b00827bb0b7
Fix TCP checksum bug and stranded large TCP segments.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AdamGreen 0:3b00827bb0b7 1 /*
AdamGreen 0:3b00827bb0b7 2 * Copyright (c) 2001, Swedish Institute of Computer Science.
AdamGreen 0:3b00827bb0b7 3 * All rights reserved.
AdamGreen 0:3b00827bb0b7 4 *
AdamGreen 0:3b00827bb0b7 5 * Redistribution and use in source and binary forms, with or without
AdamGreen 0:3b00827bb0b7 6 * modification, are permitted provided that the following conditions
AdamGreen 0:3b00827bb0b7 7 * are met:
AdamGreen 0:3b00827bb0b7 8 * 1. Redistributions of source code must retain the above copyright
AdamGreen 0:3b00827bb0b7 9 * notice, this list of conditions and the following disclaimer.
AdamGreen 0:3b00827bb0b7 10 * 2. Redistributions in binary form must reproduce the above copyright
AdamGreen 0:3b00827bb0b7 11 * notice, this list of conditions and the following disclaimer in the
AdamGreen 0:3b00827bb0b7 12 * documentation and/or other materials provided with the distribution.
AdamGreen 0:3b00827bb0b7 13 * 3. Neither the name of the Institute nor the names of its contributors
AdamGreen 0:3b00827bb0b7 14 * may be used to endorse or promote products derived from this software
AdamGreen 0:3b00827bb0b7 15 * without specific prior written permission.
AdamGreen 0:3b00827bb0b7 16 *
AdamGreen 0:3b00827bb0b7 17 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
AdamGreen 0:3b00827bb0b7 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
AdamGreen 0:3b00827bb0b7 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
AdamGreen 0:3b00827bb0b7 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
AdamGreen 0:3b00827bb0b7 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
AdamGreen 0:3b00827bb0b7 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
AdamGreen 0:3b00827bb0b7 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
AdamGreen 0:3b00827bb0b7 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
AdamGreen 0:3b00827bb0b7 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
AdamGreen 0:3b00827bb0b7 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
AdamGreen 0:3b00827bb0b7 27 * SUCH DAMAGE.
AdamGreen 0:3b00827bb0b7 28 *
AdamGreen 0:3b00827bb0b7 29 * This file is part of the lwIP TCP/IP stack.
AdamGreen 0:3b00827bb0b7 30 *
AdamGreen 0:3b00827bb0b7 31 * Author: Adam Dunkels <adam@sics.se>
AdamGreen 0:3b00827bb0b7 32 *
AdamGreen 0:3b00827bb0b7 33 */
AdamGreen 0:3b00827bb0b7 34 #ifndef __NETIF_SLIPIF_H__
AdamGreen 0:3b00827bb0b7 35 #define __NETIF_SLIPIF_H__
AdamGreen 0:3b00827bb0b7 36
AdamGreen 0:3b00827bb0b7 37 #include "lwip/netif.h"
AdamGreen 0:3b00827bb0b7 38
AdamGreen 0:3b00827bb0b7 39 #ifdef __cplusplus
AdamGreen 0:3b00827bb0b7 40 extern "C" {
AdamGreen 0:3b00827bb0b7 41 #endif
AdamGreen 0:3b00827bb0b7 42
AdamGreen 0:3b00827bb0b7 43 err_t slipif_init(struct netif * netif);
AdamGreen 0:3b00827bb0b7 44 void slipif_poll(struct netif *netif);
AdamGreen 0:3b00827bb0b7 45
AdamGreen 0:3b00827bb0b7 46 #ifdef __cplusplus
AdamGreen 0:3b00827bb0b7 47 }
AdamGreen 0:3b00827bb0b7 48 #endif
AdamGreen 0:3b00827bb0b7 49
AdamGreen 0:3b00827bb0b7 50 #endif
AdamGreen 0:3b00827bb0b7 51