Commit Graph

2392 Commits

Author SHA1 Message Date
goldsimon
5b8b5d459e fixed bug #37405 'err_tcp()' uses already freed 'netconn' object 2012-09-26 22:07:16 +02:00
goldsimon
6d8dee6d68 Added brackets, completed CHANGELOG 2012-09-26 22:07:06 +02:00
Henrik Persson
3db149b42e Fix corner case with dhcp timeouts
If t1 >= t2 timeout then only t2 timer should be scheduled. This can happen
when a sub 1 minute lease is received.
2012-09-26 22:06:24 +02:00
goldsimon
03fb581252 Added brackets, completed CHANGELOG 2012-09-26 22:03:33 +02:00
Henrik Persson
5e224aba6d Segfault in dhcp_parse_reply if no end marker
If no endmarker is present in a dhcp reply a null pointer is potentially
dereferenced.

Add fix and test case as proof of concept.
2012-09-26 22:03:12 +02:00
goldsimon
6b3179fbbf fixed bug #37166: memp_sanity check loops itself 2012-09-19 22:05:06 +02:00
goldsimon
d0a25c2574 fixed bug: #36380 unsent_oversize mismatch in 1.4.1RC1 (this was a debug-check issue only) 2012-05-08 07:40:46 +02:00
goldsimon
45e142af55 fixed the fix for bug #35945 (SYN packet should provide the recv MSS not the send MSS) if TCP_CALCULATE_EFF_SEND_MSS==0 2012-03-28 11:08:32 +02:00
goldsimon
3eccdf65aa fixed bug #35756 header length calculation problem in ppp/vj.c - removed unused/invalid defines TCPH_OFFSET(_SET). 2012-03-27 20:43:32 +02:00
goldsimon
2b9933eb1e fixed bug #35945: SYN packet should provide the recv MSS not the send MSS 2012-03-27 20:21:22 +02:00
goldsimon
fe7bbae8a7 added posix-compatibility include files posix/netdb.h and posix/sys/socket.h which are a simple wrapper to the correct lwIP include files. 2012-03-25 15:16:03 +02:00
goldsimon
d77b354377 fixed bug #35927: missing refragmentaion in ip_forward 2012-03-25 15:15:50 +02:00
goldsimon
ca30f4b02e patch by Mason: fixed bug #35907: lwip_gethostbyname_r returns an invalid h_addr_list 2012-03-20 22:02:22 +01:00
goldsimon
21a1cf9c80 patch by Bostjan Meglic: fixed bug #35809: PPP GetMask(): Compiler warning on big endian, possible bug on little endian system 2012-03-12 16:37:44 +01:00
goldsimon
6486c4b1d7 fixed bug #35595: Impossible to send broadcast without a gateway (introduced when fixing bug# 33551) 2012-02-23 10:12:38 +01:00
goldsimon
5deeaa652a Removed IPv6 code slipped in while cherry picking: MEMP_NUM_SYS_TIMEOUT default value must not depend on LWIP_IPV6, tcp unit tests failed, slipif assigned netif->output_ip6 2012-02-23 07:58:59 +01:00
goldsimon
3db3811054 unit tests lwipopts.h: NO_SYS==1, disable netconn and sockets (not tests) -> lwipopts.h is now usable for unix unit test makefile, too 2012-02-22 22:42:20 +01:00
goldsimon
f8bafcb298 Minor: cosmetic source code layout changes 2012-02-22 22:42:16 +01:00
goldsimon
eb658da462 Fixed unit tests: adapted lwipopts.h and fixed test_tcp_new_counters_pcb() after adding snd_wnd_max to struct tcp_pcb. 2012-02-22 22:42:09 +01:00
goldsimon
d8b2bc2788 Added lwipopts.h file for unit tests 2012-02-22 22:42:02 +01:00
goldsimon
07af231f2b fixed pbuf leak when PPP session is aborted through pppSigHUP() (bug #35541: PPP Memory Leak) 2012-02-22 22:41:53 +01:00
goldsimon
8d04da8c6e fixed bug #35531: Impossible to send multicast without a gateway (introduced when fixing bug# 33551) 2012-02-22 22:41:45 +01:00
goldsimon
6b37e7ec74 Patch by Stéphane Lesage:
fixed bug #35536 SNMP: error too big response is malformed
2012-02-22 22:41:14 +01:00
goldsimon
8c5edcf564 fixed bug #35537: MEMP_NUM_* sanity checks should be disabled with MEMP_MEM_MALLOC==1 2012-02-22 22:40:55 +01:00
goldsimon
162432fe24 Correctly calculate the default value of MEMP_NUM_SYS_TIMEOUT as needed 2012-02-22 22:37:45 +01:00
goldsimon
13791ccff3 Fixed unused local variable warning (patch #7711) 2012-02-22 22:37:10 +01:00
goldsimon
aecc5db1be Removed unused variable in ip_debug_print() 2012-02-14 21:30:38 +01:00
goldsimon
d4b169a6de partly fixed bug #25882: TCP hangs on MSS > pcb->snd_wnd (by not creating segments bigger than half the window) 2012-02-12 14:19:43 +01:00
goldsimon
61588f9d90 tcp pcb: persist_cnt can be u8_t instead of u32_t (since it is compared against u8_t only) 2012-02-12 14:19:34 +01:00
goldsimon
63dbd8faed fixed bug #35435: No pcb state check before adding it to time-wait queue while closing 2012-02-12 13:51:59 +01:00
goldsimon
4d71f7270b fixed bug #35305: pcb may be freed too early on shutdown(WR) 2012-02-12 13:51:49 +01:00
goldsimon
593f75fc3b fixed bug #34636: FIN_WAIT_2 - Incorrect shutdown of TCP pcb: don't let PCBs time out from FIN_WAIT_2 if the RX side wasn't close (by either calling tcp_close or tcp_shutdown(RDWR)) 2012-02-12 13:51:07 +01:00
goldsimon
bec8cf9f38 Fixed my last chagne to pbuf_copy 2012-02-12 13:50:18 +01:00
goldsimon
b163197340 - fixed bug #35151: DHCP asserts on incoming option lengths;
- fixed wrong CHANGELOG of the last commit
2012-02-12 13:49:53 +01:00
goldsimon
be1dccd15e pbuf_copy(): moved the check for "p_to != NULL" to a better place. 2012-02-12 13:49:34 +01:00
goldsimon
83b46811f9 fixed bug #35291: NULL pointer in pbuf_copy 2012-02-12 13:48:57 +01:00
goldsimon
1d96195f47 implemented API functions to access so_options of IP pcbs (UDP, TCP, RAW) (fixes bug #35061) 2012-02-12 13:48:40 +01:00
goldsimon
5546e46c60 Added option CHECKSUM_GEN_ICMP 2012-02-12 13:33:43 +01:00
goldsimon
4bcb7accb8 Fixed some merge errors 2011-12-15 06:19:25 +01:00
goldsimon
5f4f07c193 Merged from trunk: fixed compilation of tcp_helper.c 2011-12-14 22:10:39 +01:00
goldsimon
f76488a841 Merged from trunk: tcp_abandon: call tcp_rst before freeing the pcb to prevent copying addresses and ports to local variables 2011-12-14 21:49:47 +01:00
goldsimon
ef0a44c62d Merged from trunk: use constants for 'offset' based on pbuf_layer instead of calculating it using fall-through 2011-12-14 21:48:51 +01:00
goldsimon
d3ee77e7b1 Merged from trunk: use a define to set/reset netif->addr_hint to prevent too many #ifdef's in the code 2011-12-14 21:48:06 +01:00
goldsimon
a91d8e7395 Merged from trunk: removed empty function autoip_init() (converted to an empty define) 2011-12-14 21:46:47 +01:00
goldsimon
8114627d6a Fixed typo in define check: LWIP_IPv6_FRAG -> LWIP_IPV6_FRAG 2011-12-14 21:42:51 +01:00
Simon Goldschmidt
3306641708 bug #33634 ip_forward() have a faulty behaviour: Added pbuf flags to mark incoming packets as link-layer broadcast/multicast. Also added code to allow ip_forward() to forward non-broadcast packets to the input netif (set IP_FORWARD_ALLOW_TX_ON_RX_NETIF==1). 2011-12-14 21:11:34 +01:00
Simon Goldschmidt
1ebd914cdc correctly prefix all functions with 'etharp_' (also static functions) 2011-12-14 21:06:13 +01:00
goldsimon
56207f2505 fixed bug #31177: tcp timers can corrupt tcp_active_pcbs in some cases 2011-12-14 19:58:49 +01:00
goldsimon
4c8e4fa003 fix for bug #34684 was wrong (netif for arp table entries was only set/reset with SNMP enabled) 2011-12-14 19:58:39 +01:00
goldsimon
c4f3b8818a fixed bug #34884: sys_msleep() body needs to be surrounded with '#ifndef sys_msleep' 2011-12-14 19:58:25 +01:00