Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes INADDR_NONE #6659

Merged
merged 6 commits into from
Apr 29, 2022
Merged

Fixes INADDR_NONE #6659

merged 6 commits into from
Apr 29, 2022

Conversation

SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Apr 29, 2022

Description of Change

Fixes IPAddress INADDR_NONE declaration when using Arduino WiFi or ETH.
This symbol was defined as 0xffffffff by lwip /inet.h, making it impossible to use INADDR_NONE correctly.

This PR only works when <wifi-provisioning/wifi_config.h> has a modification to include <lwip/ip4_addr.h> instead of <lwip/inet.h>. This will be done directly to the sdk folder in the github structure and it has been fixed in IDF by a separated Merge Request. This will be reflected in the future, for good.

Tests scenarios

This PR was tested with all Arduino WiFi examples, including AsyncUDP. Also with ETH examples.
It was also tested for #6610 test cases.
Testing done for ESP32, ESP32-S2, ESP32-C3 and ESP32-S3.

Related links

fixes #6610
fixes #6247
fixes #4732

@SuGlider SuGlider added this to the 2.0.3 milestone Apr 29, 2022
@SuGlider SuGlider self-assigned this Apr 29, 2022
@SuGlider SuGlider added the Area: BT&Wifi BT & Wifi related issues label Apr 29, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Apr 29, 2022

Unit Test Results

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0

Results for commit ab60055.

♻️ This comment has been updated with latest results.

@SuGlider SuGlider requested a review from me-no-dev April 29, 2022 03:01
@me-no-dev me-no-dev merged commit ce2cd11 into espressif:master Apr 29, 2022
Jason2866 added a commit to tasmota/arduino-esp32 that referenced this pull request Apr 29, 2022
Description of Change

Fixes IPAddress INADDR_NONE declaration when using Arduino WiFi or ETH.
This symbol was defined as 0xffffffff by lwip /inet.h, making it impossible to use INADDR_NONE correctly.

This PR only works when <wifi-provisioning/wifi_config.h> has a modification to include <lwip/ip4_addr.h> instead of <lwip/inet.h>. This will be done directly to the sdk folder in the github structure and it has been fixed in IDF by a separated Merge Request. This will be reflected in the future, for good.

Tests scenarios

This PR was tested with all Arduino WiFi examples, including AsyncUDP. Also with ETH examples.
It was also tested for espressif#6610 test cases.
Testing done for ESP32, ESP32-S2, ESP32-C3 and ESP32-S3.

Related links

fixes espressif#6610
fixes espressif#6247
fixes espressif#4732

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Jason2866 added a commit to tasmota/arduino-esp32 that referenced this pull request Aug 11, 2022
* Tasmota changes

* Fixes INADDR_NONE  (espressif#6659) (#136)

Description of Change

Fixes IPAddress INADDR_NONE declaration when using Arduino WiFi or ETH.
This symbol was defined as 0xffffffff by lwip /inet.h, making it impossible to use INADDR_NONE correctly.

This PR only works when <wifi-provisioning/wifi_config.h> has a modification to include <lwip/ip4_addr.h> instead of <lwip/inet.h>. This will be done directly to the sdk folder in the github structure and it has been fixed in IDF by a separated Merge Request. This will be reflected in the future, for good.

Tests scenarios

This PR was tested with all Arduino WiFi examples, including AsyncUDP. Also with ETH examples.
It was also tested for espressif#6610 test cases.
Testing done for ESP32, ESP32-S2, ESP32-C3 and ESP32-S3.

Related links

fixes espressif#6610
fixes espressif#6247
fixes espressif#4732

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>

* Update README.md

Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues
Projects
2 participants