Commit Graph

6858 Commits

Author SHA1 Message Date
Abhik Roy a278990b9b napt: Add support to enable/disable NAPT using netif handle
2.1.3-esp: 280c3d61 lwip/napt: Added api to enable/disable napt based on lwip netif.
2.1.3-esp: 90009cc2 lwip/napt: Added necessary #include to lwip_napt.h
2024-09-11 08:15:19 +02:00
xueyunfei 15e29ca9d4 dhcp: Fix on-demand fine timer on more dhcp clients
2.1.3-esp: 705dd71d dhcp:init fine timer when dhcp start
2.1.3-esp: 86df9f44 lwip/dhcp: Fixed ondemand fine timers bug, that allowed only one dhcp client to run at a time without issue.
2.1.3-esp: d5e56d06 dhcp: Fix dhcp_fine_tmr() not to use netif after free
2.1.3-esp: 8dad8d3e Fix: Added check to ensure safe restart of dhcp fine timer
2024-09-11 08:06:33 +02:00
xueyunfei b1ceb9d082 ip6: Add on-demand timer config for IP6 reassembly timer
2.1.3-esp: 9813ea9a lwip:optimization lwip ip6 reassembly timer
2024-09-11 08:05:51 +02:00
xueyunfei 2dcdc98eb4 ip4: Add on-demand timer config for IP4 reassembly timer
2.1.3-esp: ce1a7099 optimization lwip ip4 reassembly timer
2024-09-11 08:04:53 +02:00
xueyunfei 3d8cbaa9ce dns: Add on-demand timer config for DNS timer
2.1.3-esp: 6b0bfc2e lwip:optimization lwip dns timer
2024-09-11 08:04:06 +02:00
zhangyanjiao 03060d3296 dhcp: Reduce discover and request retry backoff time
2.1.3-esp: 33912690 reduce the DHCP Request timeout
2.1.3-esp: 269a58f1 lower the dhcp discover and request retry backoff time
2024-09-11 07:57:35 +02:00
xueyunfei 65dd329f0c dhcp: Add on-demand timer config for dhcp fine timer
2.1.3-esp: 2c6482ba lwip timer:optimization dhcp fine timer
2.1.3-esp: c3e9aa1c lwip:Bugfix for get ip fail when stress test
2024-09-11 07:50:24 +02:00
David Cermak 3f6b4280d4 tcp/close: Fix clean socket closure when lingering
2.1.3-esp: 316cfc17 tcp/close: Fix clean socket closure when lignering
2024-09-11 07:40:19 +02:00
David Cermak 88136ab186 tcp_in: Fix incomplete closure if linger active
2.1.3-esp: 8b599aa1 tcp_in: Fix incomplete closure if linger active
2024-09-10 16:57:41 +02:00
David Cermak 731f5248c3 dhcp: Add logging of DHCP state changes
2.1.3-esp: 1343f47b dhcp: Add dhcp state debug info
2024-09-10 16:54:34 +02:00
xueyunfei 620c58d61c napt: Fix PBUF_REF type to clone the pbuf before forwarding
2.1.3-esp: 4a05f397 napt: Fix PBUF_REF type to clone the pbuf before forwarding
2.1.3-esp: e9704b8a test/napt: Add unit test for IP forward with PBUF_REF
2024-09-10 16:53:14 +02:00
xueyunfei 2ba900e2fe timeout: Add function for deinit system timers
5446609a timeout: Add function for deinit system timers
2024-09-10 16:45:55 +02:00
yuanjm 85ca28b8a9 sntp: Fix KOD packet reception causing MEMP_SYS_TIMEOUT pool not be freed
e8c46a56 sntp: Fix client receive KOD packet that make pool MEMP_SYS_TIMEOUT not be freed
2024-09-10 16:44:20 +02:00
yuanjm 5861ff08f3 dns: Fix server_idx overflow to DNS_MAX_SERVERS triggering LWIP_ASSERT
9247429e dns: Fix server_idx increasing to DNS_MAX_SERVERS and trigger the LWIP_ASSERT
2024-09-10 16:43:13 +02:00
David Cermak c97293f55c tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused
2.1.3-esp: 223101f1 tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused
2024-09-10 16:42:24 +02:00
Rob Connolly 8185cbce04 slip: Fix SLIP RX linked list append.
2.1.3-esp: 84e02732 slip: Fix SLIP RX linked list append.
2024-09-10 16:41:27 +02:00
xueyunfei 814c00f51a tcp_in: Fix for potential segment overflow
2.1.3-esp: 9d6459ec tcp_in: Fix for potential segment overflow
2024-09-10 16:41:03 +02:00
ChenJianxing 73a598fcd8 nd6: Return ERR_MEM if ND6 queue is full
2.1.3-esp: a46014d2 nd6: Queue IPv6 packets while ND6 inprogress
2024-09-10 16:38:59 +02:00
xiehang 37b10cbdec arp: Return ERR_MEM if ARP queue is full
2.1.3-esp: 00585644 arp: Return ERR_MEM on ARP queue full
2024-09-10 16:37:35 +02:00
xueyunfei 318512828c ip_frag: Drop IPv6 packets larger than MTU
2.1.3-esp: 70d46d23 ip_frag: Drop IPv6 packets larger than MTU
2024-09-10 16:30:55 +02:00
xiehang ffe6efe909 ip_frag: Drop IPv4 packets larger than MTU
2.1.3-esp: 83edc198 ip_frag: Drop IPv4 packets larger than MTU
2024-09-10 16:30:21 +02:00
xueyunfei 7496451d6c ipv6: Support IPv4/IPv6 mapped PCBs
2.1.3-esp: c0fa16fb ipv6: Support IPv4/IPv6 mapped PCBs
2024-09-10 16:30:21 +02:00
David Cermak b025ebb77f autoip: Make max-conflics and rate-limit configurable
2.1.3-esp: 9752eb5f autoip: Make max-conflics and rate-limit configurable
2024-09-10 16:30:21 +02:00
yuanjm 4f4eb5677a dns: Add API to clear dns cache
2.1.3-esp: 95048339 dns: Add API to clear dns cache
2024-09-10 16:30:21 +02:00
xueyunfei bb71a46bfb dns: Support for fallback DNS server
2.1.3-esp: 771421c8 dns: Support for fallback DNS server
2024-09-10 16:30:21 +02:00
Sachin Parekh 112f1255c2 igmp/mld6: Add on-demand timers config
2.1.3-esp: 7d3b07fd igmp/mld6: Add on-demand timers config
Signed-off-by: Sachin Parekh <sachin.parekh@espressif.com>
Co-Authored-By: Axel Lin <axel.lin@gmail.com> (espressif/esp-lwip@b1eec77b)
2024-09-10 16:30:21 +02:00
David Cermak 52b30c9a7a dhcp/test: Fix dhcp-opts test to calc ticks from ESP platform hooks 2024-09-10 16:30:21 +02:00
David Cermak 5adabc7101 dhcp/test: Add dhcp option tests for platform hooks
2.1.3-esp: 632ac61f dhcp/test: Add dhcp option tests for platform hooks
2024-09-10 16:30:21 +02:00
yuanjm 8d51acc9da dhcp: Continuously try to rebind in t2 (if failed in t1)
2.1.3-esp: 0633e7d1 dhcp: Continuously try to rebind in t2 (if failed in t1)
2024-09-10 16:30:21 +02:00
David Cermak 0d238cb76a dhcp: Add post_init hook to allow skip discovery
2.1.3-esp: 14bba8e3 dhcp: Add post_init hook to allow skip discovery
Co-Authored-By: MartinValik <martin.valik@mail.com> (espressif/esp-lwip@3b88e84f)
2024-09-10 16:30:21 +02:00
David Cermak 8145bb96b3 ip_forward: Reset IP checksums only on netifs with CHECKSUM_GEN_IP
This fixes regression from 61c67fc2, after which we zero-out all
checksums on all interfaces if `CHECKSUM_GEN_IP` is enabled.
Mentioned in https://savannah.nongnu.org/bugs/?56288#comment3 by Tom
Gibson.

See bug #56288
2024-09-10 16:30:21 +02:00
martin-ger 39773525d2 napt: Add basic support for NAT by martin-ger
319d4d3c napt: Add basic support for NAT by martin-ger
Co-Authored-By: David Cermak <cermak@espressif.com> (4b4d6b28, 754b8d5d)
Co-Authored-By: leo chung <gewalalb@gmail.com> (bb63eed1)
Co-Authored-By: yuanjm <yuanjianmin@espressif.com> (74cf7f9f)
2024-09-10 16:30:21 +02:00
xueyunfei 8b1edee8d0 ipv6: Add error check on joining incorrect multicast address
2.1.3-esp: bc507222 ipv6: Add error check on joining incorrect multicast address
2024-09-10 16:30:21 +02:00
xueyunfei e44e0c046e sockets: Add support for socket close from another thread
2.1.3-esp: 0a9dad95 api_msg: Support sock close from another thread
2.1.3-esp: d058bbbe sockets: Fix select-waiter when socket closed abruptly
2.1.3-esp: 46227e21 Fixes d058bbbe to unref socket for both core-lock configs
2.1.3-esp: 882716f7 sockets: Fix potential race when socket is closed already
2.1.3-esp: 8cf7089c api_msg: Fixes for sock close from another thread
2.1.3-esp: 66666948 sockets: Fix free-select-locked  after udp close
2024-09-10 16:29:42 +02:00
David Cermak f49974d881 ci: Add simple CI test
with relaxed criteria on the lingering test, as the fix is not added yet
2024-09-10 14:53:04 +02:00
xueyunfei 531e7999e8 tcp: Make TCP OOSEQ timeout configurable
2.1.3-esp: 4a8286ab optimize add TCP ooseq buf timeout configuration
2024-09-10 12:51:37 +02:00
xueyunfei 403ee146d6 tcp: Make TCP FIN2 timeout configurable
2.1.3-esp: 9bad641b Lwip:add TCP Fin2 timeout configuration
2024-09-10 12:50:59 +02:00
David Cermak 8078776ba1 ci: Update esp-lwip's version to 2.2.0-esp 2024-04-15 15:19:20 +02:00
Simon Goldschmidt 0a0452b2c3 Prepare 2.2.0 release 2023-09-25 21:25:35 +02:00
Simon Goldschmidt c0cf130bb7 Prepare changelog for 2.2.0 release 2023-09-22 10:02:18 +02:00
Simon Goldschmidt 3eeda139bc minor coding style/spelling fixes 2023-09-22 09:54:36 +02:00
Simon Goldschmidt b92faffaaa LWIP_VLAN_PCP==1: initialize tci correctly (disabled); add pcb_tci_*() functions to access the tci 2023-09-22 09:53:13 +02:00
Simon Goldschmidt 84fde1ebbf release: mark 2.2.0 RC1
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 22:22:19 +02:00
Simon Goldschmidt 2a3711a566 win32: check: adjust check config.h to run with newest check library on VS2022
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 22:14:36 +02:00
Simon Goldschmidt 1a5dffb931 win32: pcapif: ensure we can run with npcap as well
By default, npcap keeps its DLLs not in system32 but in system32/npcap.
To load DLLs from there, mark them as "delay load DLLs" and adjust the
DLL search path before using/loading them.

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 22:11:55 +02:00
Simon Goldschmidt bfcbf80221 win32: msvc: fix msvc project files to compile with VS2022; add test_tcp_state
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 22:08:45 +02:00
Simon Goldschmidt 657c9735a7 doxygen: dhcp: fix doxygen stumbling over nonexisting define 2023-06-29 21:59:05 +02:00
Simon Goldschmidt 9672405eb9 test: unit: tcp: fix tcp state tests to not break other tests
On platform where check cannot fork (win32), the tcp_state tests crashed other tests.

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
2023-06-29 21:32:20 +02:00
Shawn Silverman e29870c15e Fix a printf conversion specifier in mdns.c
Use U32_F to print a u32_t.
2023-05-11 22:16:49 +02:00
Shawn Silverman f84076b112 Add missing terminating newlines to LWIP_DEBUGF statements 2023-05-11 22:13:51 +02:00