This is lwip library for WlanBP3595 library. We forked lwip library. We extended TCP/IP thread stack size.
Fork of lwip by
include/ipv4/lwip/ip_frag.h@20:23fd48e7c5cf, 2015-12-25 (annotated)
- Committer:
- tousaki
- Date:
- Fri Dec 25 05:54:39 2015 +0000
- Revision:
- 20:23fd48e7c5cf
- Parent:
- 0:51ac1d130fd4
We forked lwip library.; We extended TCP/IP thread stack size.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:51ac1d130fd4 | 1 | /* |
mbed_official | 0:51ac1d130fd4 | 2 | * Copyright (c) 2001-2004 Swedish Institute of Computer Science. |
mbed_official | 0:51ac1d130fd4 | 3 | * All rights reserved. |
mbed_official | 0:51ac1d130fd4 | 4 | * |
mbed_official | 0:51ac1d130fd4 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 0:51ac1d130fd4 | 6 | * are permitted provided that the following conditions are met: |
mbed_official | 0:51ac1d130fd4 | 7 | * |
mbed_official | 0:51ac1d130fd4 | 8 | * 1. Redistributions of source code must retain the above copyright notice, |
mbed_official | 0:51ac1d130fd4 | 9 | * this list of conditions and the following disclaimer. |
mbed_official | 0:51ac1d130fd4 | 10 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
mbed_official | 0:51ac1d130fd4 | 11 | * this list of conditions and the following disclaimer in the documentation |
mbed_official | 0:51ac1d130fd4 | 12 | * and/or other materials provided with the distribution. |
mbed_official | 0:51ac1d130fd4 | 13 | * 3. The name of the author may not be used to endorse or promote products |
mbed_official | 0:51ac1d130fd4 | 14 | * derived from this software without specific prior written permission. |
mbed_official | 0:51ac1d130fd4 | 15 | * |
mbed_official | 0:51ac1d130fd4 | 16 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
mbed_official | 0:51ac1d130fd4 | 17 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
mbed_official | 0:51ac1d130fd4 | 18 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
mbed_official | 0:51ac1d130fd4 | 19 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
mbed_official | 0:51ac1d130fd4 | 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
mbed_official | 0:51ac1d130fd4 | 21 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
mbed_official | 0:51ac1d130fd4 | 22 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
mbed_official | 0:51ac1d130fd4 | 23 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
mbed_official | 0:51ac1d130fd4 | 24 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY |
mbed_official | 0:51ac1d130fd4 | 25 | * OF SUCH DAMAGE. |
mbed_official | 0:51ac1d130fd4 | 26 | * |
mbed_official | 0:51ac1d130fd4 | 27 | * This file is part of the lwIP TCP/IP stack. |
mbed_official | 0:51ac1d130fd4 | 28 | * |
mbed_official | 0:51ac1d130fd4 | 29 | * Author: Jani Monoses <jani@iv.ro> |
mbed_official | 0:51ac1d130fd4 | 30 | * |
mbed_official | 0:51ac1d130fd4 | 31 | */ |
mbed_official | 0:51ac1d130fd4 | 32 | |
mbed_official | 0:51ac1d130fd4 | 33 | #ifndef __LWIP_IP_FRAG_H__ |
mbed_official | 0:51ac1d130fd4 | 34 | #define __LWIP_IP_FRAG_H__ |
mbed_official | 0:51ac1d130fd4 | 35 | |
mbed_official | 0:51ac1d130fd4 | 36 | #include "lwip/opt.h" |
mbed_official | 0:51ac1d130fd4 | 37 | #include "lwip/err.h" |
mbed_official | 0:51ac1d130fd4 | 38 | #include "lwip/pbuf.h" |
mbed_official | 0:51ac1d130fd4 | 39 | #include "lwip/netif.h" |
mbed_official | 0:51ac1d130fd4 | 40 | #include "lwip/ip_addr.h" |
mbed_official | 0:51ac1d130fd4 | 41 | #include "lwip/ip.h" |
mbed_official | 0:51ac1d130fd4 | 42 | |
mbed_official | 0:51ac1d130fd4 | 43 | #ifdef __cplusplus |
mbed_official | 0:51ac1d130fd4 | 44 | extern "C" { |
mbed_official | 0:51ac1d130fd4 | 45 | #endif |
mbed_official | 0:51ac1d130fd4 | 46 | |
mbed_official | 0:51ac1d130fd4 | 47 | #if IP_REASSEMBLY |
mbed_official | 0:51ac1d130fd4 | 48 | /* The IP reassembly timer interval in milliseconds. */ |
mbed_official | 0:51ac1d130fd4 | 49 | #define IP_TMR_INTERVAL 1000 |
mbed_official | 0:51ac1d130fd4 | 50 | |
mbed_official | 0:51ac1d130fd4 | 51 | /* IP reassembly helper struct. |
mbed_official | 0:51ac1d130fd4 | 52 | * This is exported because memp needs to know the size. |
mbed_official | 0:51ac1d130fd4 | 53 | */ |
mbed_official | 0:51ac1d130fd4 | 54 | struct ip_reassdata { |
mbed_official | 0:51ac1d130fd4 | 55 | struct ip_reassdata *next; |
mbed_official | 0:51ac1d130fd4 | 56 | struct pbuf *p; |
mbed_official | 0:51ac1d130fd4 | 57 | struct ip_hdr iphdr; |
mbed_official | 0:51ac1d130fd4 | 58 | u16_t datagram_len; |
mbed_official | 0:51ac1d130fd4 | 59 | u8_t flags; |
mbed_official | 0:51ac1d130fd4 | 60 | u8_t timer; |
mbed_official | 0:51ac1d130fd4 | 61 | }; |
mbed_official | 0:51ac1d130fd4 | 62 | |
mbed_official | 0:51ac1d130fd4 | 63 | void ip_reass_init(void); |
mbed_official | 0:51ac1d130fd4 | 64 | void ip_reass_tmr(void); |
mbed_official | 0:51ac1d130fd4 | 65 | struct pbuf * ip_reass(struct pbuf *p); |
mbed_official | 0:51ac1d130fd4 | 66 | #endif /* IP_REASSEMBLY */ |
mbed_official | 0:51ac1d130fd4 | 67 | |
mbed_official | 0:51ac1d130fd4 | 68 | #if IP_FRAG |
mbed_official | 0:51ac1d130fd4 | 69 | #if !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF |
mbed_official | 0:51ac1d130fd4 | 70 | /** A custom pbuf that holds a reference to another pbuf, which is freed |
mbed_official | 0:51ac1d130fd4 | 71 | * when this custom pbuf is freed. This is used to create a custom PBUF_REF |
mbed_official | 0:51ac1d130fd4 | 72 | * that points into the original pbuf. */ |
mbed_official | 0:51ac1d130fd4 | 73 | struct pbuf_custom_ref { |
mbed_official | 0:51ac1d130fd4 | 74 | /** 'base class' */ |
mbed_official | 0:51ac1d130fd4 | 75 | struct pbuf_custom pc; |
mbed_official | 0:51ac1d130fd4 | 76 | /** pointer to the original pbuf that is referenced */ |
mbed_official | 0:51ac1d130fd4 | 77 | struct pbuf *original; |
mbed_official | 0:51ac1d130fd4 | 78 | }; |
mbed_official | 0:51ac1d130fd4 | 79 | #endif /* !IP_FRAG_USES_STATIC_BUF && !LWIP_NETIF_TX_SINGLE_PBUF */ |
mbed_official | 0:51ac1d130fd4 | 80 | |
mbed_official | 0:51ac1d130fd4 | 81 | err_t ip_frag(struct pbuf *p, struct netif *netif, ip_addr_t *dest); |
mbed_official | 0:51ac1d130fd4 | 82 | #endif /* IP_FRAG */ |
mbed_official | 0:51ac1d130fd4 | 83 | |
mbed_official | 0:51ac1d130fd4 | 84 | #ifdef __cplusplus |
mbed_official | 0:51ac1d130fd4 | 85 | } |
mbed_official | 0:51ac1d130fd4 | 86 | #endif |
mbed_official | 0:51ac1d130fd4 | 87 | |
mbed_official | 0:51ac1d130fd4 | 88 | #endif /* __LWIP_IP_FRAG_H__ */ |