David Cermak
29b8a00c0a
esp_netif/lwip: Fix core-locking config (v4.4)
...
* Fix thread safety issues in non-core locking
* Add option to verify thread safety issues in lwip (core-lock assertion)
* Make esp_sntp.h thread safe API
* Fix sntp example
(v4.4 - fixes minor merge issue that duplicated
DHCP_DEFINE_CUSTOM_TIMEOUTS and DHCP_REQUEST_TIMEOUT_SEQUENCE)
Closes https://github.com/espressif/esp-idf/issues/9908
Closes https://github.com/espressif/esp-idf/issues/10502
Closes https://github.com/espressif/esp-idf/issues/10466
2023-03-21 10:31:20 +01:00
xueyunfei
8331ae8586
lwip: solve some routers do not forward multicast packet issue
2023-03-14 19:03:23 +08:00
xueyunfei
109eec4033
dhcp server:bugfix softap excedes the range of subnet
2023-03-14 18:45:43 +08:00
Chen Wu
4bb12517f5
lwip: Fixed that ipv6 dns cannot work
2022-07-15 16:18:01 +08:00
Jiang Jiang Jian
afc6f7f932
Merge branch 'docs/update_wifi_api_doc_v4.4' into 'release/v4.4'
...
DOC: update wifi api docs ( backport v4.4)
See merge request espressif/esp-idf!18076
2022-07-07 10:57:36 +08:00
Marius Vikhammer
90e58c3721
docs: fix all doxygen warnings
...
Doxygen warnings would previously not result in a failed pipeline.
Fixed this as well as all current warnings.
2022-07-05 11:14:40 +08:00
xueyunfei
05770a1f52
Doc:update wifi api docs
...
* Add documents related to espnow config rate
* Optimization set dns server api description
2022-07-01 17:39:53 +08:00
Zhang Jun Hao
f490adf800
esp_wifi: support station only mode for code size down
2021-12-06 17:34:56 +08:00
Liu Han
89873937eb
lwip/dhcp: add configure for enable vendor class identify option
...
Closes https://github.com/espressif/esp-idf/issues/6786
2021-11-02 18:02:22 +08:00
0xFEEDC0DE64
822129e234
esp_netif: Fix implicit includes in public headers
...
Merges https://github.com/espressif/esp-idf/pull/7690
2021-10-18 10:01:52 +02:00
David Cermak
825bbb08e3
esp_netif: Added argument checks for PPP public API
2021-09-07 09:03:15 +02:00
David Cermak
2f6c60573e
esp_netif: Extend PPP netif API to control connection failure
2021-09-07 09:03:15 +02:00
xueyunfei
0d07569fff
optimization config option LWIP_TCPIP_CORE_LOCKING
2021-08-18 21:32:13 +08:00
David Čermák
d2fe8bfd15
Merge branch 'experimental/mdns_with_sockets' into 'master'
...
mdns: Add optional networking layer on BSD socket
Closes IDF-1849
See merge request espressif/esp-idf!9857
2021-08-17 14:12:30 +00:00
David Cermak
9f17f586f4
esp_netif: Set default netif with lwip_netif
...
Make use of lwip_netif pointer for setting the default interface in lwip,
since the is a generic pointer used in I/O functions wheras the former is always the type.
More importantly the netif_handle could be set to another context ptr
used in I/O functions, as as for the SLIP netif.
This change fixes the issue of incorrect settings of a default interface
if any SLIP netif is involved.
Closes https://github.com/espressif/esp-idf/issues/7246
2021-08-17 19:10:49 +08:00
David Cermak
09f10f326a
esp_netif: Add support for linux target as header only library
2021-08-17 18:39:40 +08:00
David Čermák
cd47ba03bc
Merge branch 'bugfix/mdns_lwip_agnostic' into 'master'
...
mdns: Clean the main mdns module from lwip dependencies
See merge request espressif/esp-idf!14187
2021-07-07 11:58:18 +00:00
David Cermak
7cab3d48e6
esp_netif: IP Address: Add esp-ip addr copy API, IP init macros
2021-07-01 15:01:39 +02:00
David Cermak
d542edbb3d
esp_netif: Fix dhcps state transitions
...
When the DHCP server is stopped before starting the netif,
it should remain stopped -- as per compatibility with previous tcpip_adapter behavior
2021-07-01 10:17:19 +02:00
yuanjm
56b9bebe41
esp_netif: Correct spelling mistakes
2021-06-25 14:52:34 +08:00
yuanjm
d93b3d304e
slip: Fix the definition of cplusplus in the code
2021-06-25 14:51:24 +08:00
yuanjm
bda8cf0c14
esp_netif: Add CONFIG_PPP_SUPPORT and CONFIG_LWIP_SLIP_SUPPORT to sperate the code
2021-06-25 14:51:24 +08:00
liuhan
7d5ae1ee26
esp_netif: Add CONFIG_LWIP_DHCPS to sperate the code
2021-06-24 09:49:45 +08:00
Shu Chen
e470e7c4c3
Merge branch 'feature/ot-lwip-interface' into 'master'
...
openthread: add lwIP network interface
See merge request espressif/esp-idf!13188
2021-06-03 01:46:17 +00:00
Jiacheng Guo
52a68cb7fe
openthread: integrate OpenThread network interface with esp_netif
2021-06-02 17:03:54 +08:00
David Čermák
4b7a7e559a
Merge branch 'bugfix/esp_netif_list_match_improvement' into 'master'
...
esp-netif: Improve netif list operations (GitHub PR)
Closes IDFGH-5289
See merge request espressif/esp-idf!13636
2021-06-01 12:47:18 +00:00
David Cermak
8ae19ed332
esp_netif: Fix failing ppp_set_auth() due to wrong arg check
...
Closes https://github.com/espressif/esp-idf/issues/7047
2021-06-01 05:32:39 +00:00
David Cermak
c991af7ac5
esp_netif: Update the test to exercise netif list matching APIs
2021-05-21 09:44:08 +02:00
yuanjm
7256cfe5a4
ppp: Fix disable IPv6 will make esp_netif_lwip_ppp build fail
...
Closes https://github.com/espressif/esp-idf/issues/6935
2021-05-20 09:45:17 +00:00
Axel Lin
5209af379a
esp-netif: Improve esp_netif_is_netif_listed and esp_netif_get_handle_from_ifkey
...
Each esp_netif_next_unsafe() call needs to iterate the s_head list.
It is inefficient with a do-while loop + esp_netif_next_unsafe() call.
Use SLIST_FOREACH instead to simplify the code and speed-up the matching.
While at it, also fix returning NULL from esp_netif_is_netif_listed().
Signed-off-by: Axel Lin <axel.lin@gmail.com>
2021-05-20 13:51:22 +08:00
David Čermák
2e4d5d8765
Merge branch 'feature/add_eth_lost_ip_event' into 'master'
...
event: Add IP_EVENT_ETH_LOST_IP event
Closes IDFGH-5198
See merge request espressif/esp-idf!13466
2021-05-10 07:27:16 +00:00
David Cermak
c4870f4d9e
esp_netif/wifi: Add API to destroy default wifi-netif for sta/ap
...
Partially addresses https://github.com/espressif/esp-idf/issues/6950
2021-05-07 11:56:41 +00:00
yuanjm
922992b519
event: Add IP_EVENT_ETH_LOST_IP event
...
Closes https://github.com/espressif/esp-idf/issues/6971
2021-05-07 11:36:13 +08:00
Ivan Grokhotkov
4e73cff729
esp_netif: enable UBSAN in component test app
2021-04-22 23:33:47 +02:00
yuanjm
dd30222c46
esp_netif: Add CONFIG_LWIP_SLIP_SUPPORT to sperate slip component
2021-04-01 17:10:50 +08:00
yuanjm
da58235a0e
components: Use CONFIG_LWIP_IPV6 to strip IPv6 function in components
2021-02-23 18:26:03 +08:00
David Cermak
cab1b3507a
esp_netif: Add unit test to exercise default wifi setup/teardown cycle
2021-02-10 13:28:36 +00:00
Jiri Schiebel
d1356bca68
esp-netif: Added methods for conversion IP4/IP6 addresses from their string interpretation
...
Closes https://github.com/espressif/esp-idf/issues/5545
2021-02-02 16:07:32 +01:00
Marius Vikhammer
9c8e4fd4c5
C3: build and run unit tests
...
Enable building and running of unit tests in CI for C3 as well as fix
related compile errors
Also enables building of C3 test apps
2021-01-11 11:34:37 +08:00
Paweł pidpawel Kozubal
cf60ec0ffc
lwip: Added support for configurable LwIP hooks
...
Added lwIP hooks which could be optionally overwritten in the
application code. These three options are provided in Kconfig:
* NONE: No hook support
* DEFAULT: Default implementation is provided. If IDF doesn't
have a specific hook implementation, an empty stub is provided, which
could be overwritten by strong implementation in application code.
* CUSTOM: Hooks are declared only to be implemented in application code.
Merges https://github.com/espressif/esp-idf/pull/6034
2020-11-26 12:02:00 +00:00
David Cermak
916d2f6f4c
esp_netif: Added test for failing to set hostname
2020-11-20 10:06:53 +00:00
David Cermak
7c4d3fbf8b
esp_netif: Fixed possible use of hostname pointer after its freed
...
When setting hostname using esp_netif_set_hostname_api() failed for some reason, the netif pointer might be freed while lwip pointer stil point to that location and could be used. Fixed by moving the freeing and string duplication to the block where lwip hostname is set.
Closes https://github.com/espressif/esp-idf/issues/6048
2020-11-20 10:06:53 +00:00
Fu Hanxi
ed6a30a9de
CI: component_ut: fix esp_netif test path unmatch issue
2020-11-12 15:12:56 +08:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
David Čermák
97ac37378f
Merge branch 'bugfix/esp_netif_ppp_event_data' into 'master'
...
esp-netif: Fix PPP netif event posting to include esp_netif data
Closes IDFGH-4147
See merge request espressif/esp-idf!10958
2020-10-27 05:27:24 +08:00
David Čermák
25530d2247
Merge branch 'bugfix/slip_input_longer_u8' into 'master'
...
esp_netif: Fixed SLIP input to support size longer than 256
Closes IDFGH-4057
See merge request espressif/esp-idf!10959
2020-10-27 04:03:06 +08:00
Rob Connolly
a92ae03b1e
esp_netif: Fixed SLIP input to support size longer than 256
...
Implement batch processing of incoming slip data.
Merges https://github.com/espressif/esp-idf/pull/5928
2020-10-26 17:53:17 +01:00
David Cermak
8a143fcf40
esp-netif: Fix PPP netif event posting to include esp_netif data
...
Closes https://github.com/espressif/esp-idf/issues/6009
2020-10-26 16:00:42 +00:00
Mahavir Jain
0fc4249dd5
esp_netif: initialize TCP ISN hook if enabled in configuration
2020-10-23 05:11:33 +00:00
xueyunfei
91fd587fb7
lwip/ipv6:ipv6 address get fail after wifi disconnect
2020-10-12 10:40:22 +08:00