Commit Graph
315 Commits
Author SHA1 Message Date
Ondrej KostaandCursor dab098dada test(esp_netif): clear errno before L2TAP asserts
select() does not set errno on timeout per POSIX; remove the incorrect
EAGAIN check after select timeout and clear errno before asserting it.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 14:15:40 +02:00
Euripedes Rocha Filho 0dc7c2f853 fix(esp_netif): Avoid socket to stay in closing state in l2tap closing 2026-07-31 09:26:32 +02:00
Euripedes Rocha FilhoandCursor 9e52922932 fix(esp_netif): harden NULL and OOM handling in netif APIs
Use a temporary pointer for br_glue port-list realloc so a failure does
not clobber the existing array. Reject NULL mac in esp_netif_set_mac and
validate config->base in esp_netif_new_api before use.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-30 08:55:13 +02:00
Euripedes Rocha Filho 352f4997fa fix(esp_netif): reject NULL hostname in esp_netif_set_hostname_api
esp_netif_set_hostname_api() dereferenced hostname via strlen() without
checking it for NULL first, causing a NULL pointer dereference.
2026-07-29 16:00:37 +02:00
Euripedes Rocha Filho 72ba17149c fix(esp_netif): Removes double-free path and NULL dereference in bridge 2026-07-10 14:12:50 +02:00
wangtao@espressif.com d39df82a48 fix(lwip): improve lost ip event process 2026-05-07 20:22:29 +08:00
wangtao@espressif.com cea56b7dd8 feat(lwip): softap can get sta ip from arp table 2026-04-30 12:12:18 +08:00
wangtao@espressif.com 2748923c37 fix(lwip): fix lost ip event issue 2026-04-30 12:10:04 +08:00
Ondrej Kosta 498989ea10 fix(ci): re-enabled ESP32P4 tests on different HW vers 2026-01-06 22:17:58 +08:00
armando 304ba1655b fix check test scripts build issue 2025-11-20 11:33:36 +08:00
armando cdff2570c7 ci(p4): disable p4 rev3 invalid tests temporarily 2025-11-20 11:33:36 +08:00
David Cermak 1e6d793b11 fix(esp_netif): Remove doxygen groups as esp-docs is flat docs style
Closes https://github.com/espressif/esp-idf/issues/16993
2025-10-21 15:42:12 +02:00
Jiang Jiang Jian 79aedfd229 Merge branch 'fix/netif_ppp_dhcp_v5.5' into 'release/v5.5'
fix(esp_netif): Fix incorrect DHCP call for PPP interfaces (v5.5)

See merge request espressif/esp-idf!40238
2025-07-22 14:44:43 +08:00
David Cermak c8c10214f8 fix(esp_netif): Fix incorrect DHCP call for PPP interfaces
Closes https://github.com/espressif/esp-protocols/issues/800
2025-06-30 12:21:26 +02:00
David Cermak a6f092516a fix(esp_netif): Fix reasigning static IP after netif down -> up
Fixes regression from 307f45d5 (ip_info should be cleaned, but only if we're running DHCP client on that netif)
2025-06-26 11:37:57 +02:00
Ondrej Kosta eba9549bbc Merge branch 'feat/eth_mac_filter' into 'master'
feat(esp_eth): added option to set MAC filter for mcast

Closes IDF-12503 and IDFGH-14897

See merge request espressif/esp-idf!36944
2025-04-30 19:38:02 +08:00
Shen Meng Jing 62d4115e08 docs: Fix some typos 2025-04-30 18:35:39 +08:00
Ondrej Kosta e941910c0f feat(esp_eth): Added destination MAC address filter configuration interface 2025-04-29 13:54:56 +02:00
Chen Jichang c34b4eb882 feat(esp32h4): enable ESP32H4 ci build 2025-03-28 14:41:28 +08:00
David Čermák 23c73cdc37 Merge branch 'feat/ppp_server_improve' into 'master'
feat(ppp): Allow config PPP DNS servers for peer (GitHub PR)

Closes IDFGH-14720

See merge request espressif/esp-idf!37461
2025-03-24 13:46:15 +08:00
igor.udot daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
Jonas Jonsson b1f63fe9b2 feat(ppp): Improve PPP server + client support
Make it easier to run a PPP server and client on different interfaces by
adding the interface name to logs and expose the PPP passive option.
2025-03-03 16:09:33 +01:00
Jonas Jonsson 0151c8db54 feat(ppp): Allow config PPP DNS servers for peer
Make it possible to set the DNS servers to provide to the peer. This is
useful when acting as a PPP server.

If any DNS server is set, don't request a DNS server from the peer.
2025-03-03 16:09:33 +01:00
Abhik Roy b3523a6fbe fix(dhcps): Fixed DNS server handling for previous breaking changes 2025-02-17 13:19:28 +11:00
Lorenzo Consolaro 0fd3984c72 feat(dhcps): Support for multiple DNS servers 2025-02-17 13:15:03 +11:00
David Čermák 584fc500d4 Merge branch 'fix/esp_netif_lost_ip' into 'master'
fix(esp_netif): Fix posting GOT_IP after LOST_IP

See merge request espressif/esp-idf!36717
2025-02-12 00:36:27 +08:00
David Cermak 307f45d512 fix(esp_netif): Fix posting GOT_IP after LOST_IP 2025-02-11 11:20:49 +01:00
gaoxu 5ef4f20778 feat(esp32h21): disable unsupported build test 2025-02-06 15:47:51 +08:00
David Cermak b708c0195a fix(network/examples): Fix build rules to test builds on for all targets
Uses wifi defines only if wifi is enabled for this target
2025-01-24 10:45:24 +01:00
David Čermák daa980ffab Merge branch 'fix/esp_netif_ppp_nullptr_check' into 'master'
fix(esp_netif): Prevent null deref when checking netif type

See merge request espressif/esp-idf!34911
2024-12-05 17:16:04 +08:00
Alexey Lapshin 888b5f7e8d feat(newlib): add picolibc support 2024-12-02 21:35:56 +07:00
Rocha Euripedes 9e2671dc52 Merge branch 'netif_set_prio' into 'master'
feat(esp_netif): Allows user to set route priority after netif creation

See merge request espressif/esp-idf!34323
2024-11-25 16:33:27 +08:00
Rocha Euripedes ebde9ce715 feat(esp_netif): Allows user to set route priority after netif creation 2024-11-25 16:33:27 +08:00
Tomas Rohlinek 408ae4c560 Merge branch 'feature/switch_to_new_vfs_api' into 'master'
feat(storage): switch to new VFS API

Closes IDF-11473

See merge request espressif/esp-idf!32029
2024-11-22 16:51:46 +08:00
Tomáš Rohlínek 9b4d11fb3c feat(storage/vfs): move l2tap to new vfs API 2024-11-21 07:41:43 +01:00
David Cermak 4e088964ef fix(esp_netif): Prevent null deref when checking netif type
Most esp_netif public API check for invalid arguments, but when enabling
PPP the macros to check netif type could potentially dereference
esp_netif without any null-check.

Releted to https://github.com/espressif/esp-idf/issues/14816
2024-11-14 12:37:48 +01:00
Ondrej Kosta d2b1202d5a feat(esp_eth): added HW Time Stamping support for ESP32P4
Added mechanism to L2 TAP to retreive time stamp

Added PTP time synchronization example
2024-11-07 15:01:24 +08:00
David Cermak 5bb10bc10d fix(esp_wifi): Add null pointer checks to WiFi-netif APIs
Added null pointer checks to WiFi-netif API functions to prevent potential
crashes from invalid arguments, updated unit tests.

Closes https://github.com/espressif/esp-idf/issues/8702
2024-10-01 11:37:54 +02:00
David Cermak 9b550d77d4 docs(esp_netif): Update ESP-NETIF developers and programmers manual
Made final fixed to both programming manuals and user guidelines
2024-09-26 16:58:01 +02:00
David Čermák d4f60febdd Merge branch 'feat/lwip_2.2.0' into 'master'
feat(lwip): Support for new lwip release 2.2.0

Closes IDFGH-11237

See merge request espressif/esp-idf!30388
2024-09-13 15:38:23 +08:00
snake-4 09bbc75d96 fix(esp_netif): Fixed initializer order of ESP_IP macros for C++ 2024-09-12 01:25:42 +10:00
David Cermak 720b74026c fix(esp_netif): Use internal DHCP struct 2024-09-11 16:48:06 +02:00
David Cermak e8ac6af67e fix(esp_netif): Fix per pppos callback update in new lwip 2024-09-11 16:48:06 +02:00
Zhang Wen Xu 997512ace2 Merge branch 'feat/add_get_all_preferred_ip6_addr' into 'master'
feat(esp_netif): add an API to get all preferred ip6 addresses

See merge request espressif/esp-idf!32417
2024-08-27 16:00:16 +08:00
David Cermak 921b2a6331 fix(esp_netif): Add unit test for loopback configuration
Split tests into common and lwip/loopback specific and adds loopback
tests as separate configuration.
2024-08-23 18:13:47 +08:00
David Cermak c6748a636d fix(esp_netif): Prepare for more tests moving esp_netif_test to .._lwip 2024-08-23 18:13:47 +08:00
David Cermak 049f6f6bdc feat(esp_netif): Add support for esp_netif with custom TCP/IP stack
Added a new Kconfig option ESP_NETIF_PROVIDE_CUSTOM_IMPLEMENTATION which
uses only esp_netif headers, no implementation is provided and expected
to be supplied by application layer.
2024-08-23 18:13:47 +08:00
zwx 47f730645c feat(esp_netif): add an API to get all preferred ip6 addresses 2024-08-14 16:25:41 +08:00
igor.udot 8691672f03 ci: replace pytest function 2024-07-23 14:07:31 +08:00
David Cermak 95169eb929 feat(esp_netif): Add support for IPv6 autoconfig flag per netif 2024-07-17 21:41:09 +08:00