goldsimon
1d04b06450
Fixed bugs #51606 and #51535 : IPv4 reassembly could be finished although there are holes
...
(cherry picked from commit 5ea7f507c3d05ab86bdc14de0f016f2778db8cb3)
# Conflicts:
# test/unit/Filelists.mk
# test/unit/lwipopts.h
2017-09-15 12:52:40 +02:00
goldsimon
9b19266e3d
ip4_reass: fixed bug #51596 (Insufficient overlap check)
...
(cherry picked from commit 500598658df1d8674b7d25141983cf5452585d9d)
2017-09-15 12:52:18 +02:00
goldsimon
a2ac9b045a
ip4_reass: fixed bug #51597 (Last fragment is assumed to have arrived even if it was discarded)
...
(cherry picked from commit 3dedfa3d1fbb5620cb4c9255b5bed8f4dcd6352b)
# Conflicts:
# src/core/ipv4/ip4_frag.c
2017-09-15 12:52:17 +02:00
goldsimon
737ed228c9
ip4_reass: fixed bug #51595 (ip_reass_pbufcount may be updated incorectly)
...
(cherry picked from commit f1072fee8ab171b4b878b3718bf1c7a4cf340e1d)
# Conflicts:
# src/core/ipv4/ip4_frag.c
2017-09-15 12:52:04 +02:00
Dirk Ziegelmeier
7a1b38db6e
Minor: Save an #ifdef in ip4_frag.c
2016-12-09 21:26:53 +01:00
Axel Lin
20fde0be6c
ip4_frag: Use LWIP_MIN instead of open-coded
...
Signed-off-by: Axel Lin <axel.lin@ingics.com>
2016-10-19 08:37:39 +02:00
Dirk Ziegelmeier
67895e7bdd
Fixup new IPv4 fragmentation code - thanks to Zach Smith
2016-10-19 08:36:43 +02:00
goldsimon
d5bfec2e52
ip4_frag: restore "lwip_ntohs" after last change
2016-10-11 09:52:20 +02:00
goldsimon
576f49ee2b
Fixed bug #46467 : ip_frag() shouldn't modify pbuf in case of a retransmission
2016-10-11 09:47:03 +02:00
Dirk Ziegelmeier
f6e27940bd
Make lwIP compile with clang -Wdocumentation -> several documentation fixes
2016-10-09 12:21:39 +02:00
Dirk Ziegelmeier
13fb616bb2
Cleanup hton*/ntoh* function handling and platform abstraction
...
Let lwip use functions/macros prefixed by lwip_ internally to avoid naming clashes with external #includes.
Remove over-complicated #define handling in def.h
Make functions easier to override in cc.h. The following is sufficient now (no more LWIP_PLATFORM_BYTESWAP):
#define lwip_htons(x) <your_htons>
#define lwip_htonl(x) <your_htonl>
2016-10-06 12:55:57 +02:00
Dirk Ziegelmeier
149701b347
Fix bug #49218 : pbuf_clen() overflow as a result of tcp_write concatenation
...
Let pbuf_clen() return u16_t
2016-09-30 09:04:36 +02:00
sg
34682facd1
Remove ip4_frag IP_FRAG_USES_STATIC_BUF code: nearly the same as the other code, but IP_FRAG_USES_STATIC_BUF doesn't work when queuing pbufs
2016-08-31 21:00:10 +02:00
Dirk Ziegelmeier
72208cddfa
Rename ip_frag.* to ip4_frag.*
2016-07-19 10:12:56 +02:00