Joel Cunningham
648b2b6f2b
test_tcp: remove unnecessary memsets
...
test_tcp_init_netif() memsets both netif and txcounters, so no need to manually do it
2017-03-31 11:59:12 -05:00
goldsimon
a42d1678eb
tcp unit tests: don't break later tests relying on loopif
2017-03-17 08:56:03 +01:00
Dirk Ziegelmeier
6af213787a
Fix clang address sanitizer errors in unit tests (buffers too small)
2016-08-07 20:21:27 +02:00
goldsimon
288fc8ede3
fixed unit tests after changing memp stats
2016-07-08 10:20:04 +02:00
Dirk Ziegelmeier
d133999e1d
Fix warnings in unit test code when compiling with stricter GCC settings
2016-06-23 22:30:37 +02:00
Sylvain Rochet
37bb0b89f0
all: trivial include changes related to the new "lwip/priv/" include directory
2015-10-10 22:46:47 +02:00
sg
851e03966d
Fixed more compiler warnings for unit tests
2015-08-05 21:15:41 +02:00
Erik Ekman
dbdeca3032
test_tcp_oos: Remove last_dropped variable, never read
2015-08-05 21:01:17 +02:00
Sylvain Rochet
632de523de
Fixed PBUF_LINK_ENCAPSULATION_HLEN support
...
PBUF_LINK_ENCAPSULATION_HLEN support was introduced by 6ef7563f
and
missed the fact that header size calculation/reservation using
computation like PBUF_LINK_HLEN + PBUF_IP_HLEN + ... are used all over
the source code. Hopefully fixed all of them.
2015-04-20 23:43:33 +02:00
goldsimon
cf180b651b
fixed unit tests after changing ip_addr_t
2015-04-10 08:51:06 +02:00
Clint Sbisa
32f6e7e231
tcp: Fix ooseq processing when seqno is near 2^32
...
An edge case in out-of-sequence TCP packet processing did not use the
appropriate macro to check if the sender overran the recieve window.
Consequently, this case sometimes evaluated to true when it shouldn't, which
resulted in various bad behavior, including trying to resize a TCP buffer to 4
gigabytes.
2015-03-20 08:32:14 +01:00
Simon Goldschmidt
a80c4d147c
Unit test patch by Erik Ekman: use macro to store correct testcase name
2014-02-12 21:52:21 +01:00
goldsimon
5db6bb02d6
TCP unit tests: fix that ip.rterr stats are increased (some unit tests had no netif set)
2012-03-25 17:12:02 +02:00
Simon Goldschmidt
07c610e068
Implemented limiting data on ooseq queue (task #9989 ) (define TCP_OOSEQ_MAX_BYTES / TCP_OOSEQ_MAX_PBUFS in lwipopts.h), added unit test for this new feature
2011-09-27 22:42:46 +02:00
Simon Goldschmidt
7524f9006e
added unit tests for data-after-FIN
2011-09-26 22:10:11 +02:00
Simon Goldschmidt
17a5ba08e4
unit tests: correctly handle small PBUF_POOL_BUFSIZE settings, prevent NULL-pointer-deref. (ooseq test is still not running correctly...)
2011-09-03 21:25:51 +02:00
goldsimon
791505ab6e
Fixed tcp unit tests after introducing ip_addr_p_t and letting tcp_input check for broadcasts by using current_iphdr_dest.
2011-03-30 18:50:00 +00:00
goldsimon
cf0b831971
Fixed bug #29080 : Correctly handle remote side overrunning our rcv_wnd in ooseq case.
2010-03-25 06:39:01 +00:00
goldsimon
bcd4b76d31
Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains the actual application programmer's API
2010-02-21 11:35:21 +00:00
goldsimon
3f8e6c423c
Fixed unit tests after changing struct ip_addr to ip_addr_t
2010-02-09 16:40:52 +00:00
goldsimon
bf261f4f13
Another fix for bug #28241 (ooseq processing) and adapted corresponding unit test
2009-12-27 11:31:19 +00:00
goldsimon
feca27d69e
Slightly modified the out-of-sequence-FIN test: receive packets with FIN & data and with FIN alone
2009-12-11 13:07:47 +00:00
goldsimon
2e4bb8b3b7
Added explicit check for number of segments and seqno/len of each segment on pcb->ooseq
2009-12-10 17:34:11 +00:00
goldsimon
c5d2e536cf
Worked on tcp_oos unit tests, nearly all TCP_QUEUE_OOS code is covered now
2009-11-29 13:20:13 +00:00
goldsimon
902ad897b8
Initial check-in of some unit tests
2009-11-27 08:03:53 +00:00