-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
[ESP32S3] v4.4 DHCP Server failing to reuse port (IDFGH-9389) #10762
Comments
about DHCP Server, the error is the following
I have no idea why this is treated as a debugging message when it's a clear error. the bug is in the DHCP Server
Proposed change to DHCPs code
|
Reference commit with fix: |
hi @KonssnoK I saw your reappearance steps. You should not execute |
hi @xueyunfei998 , |
hi @KonssnoK
The reason why this log appears is that the I have a question. Your reproduction steps are as follows. 1 Start DHCPS Which function did you stop calling in the second step? What's wrong now is that the function you called at the time of stop in the second step did not close dhcps. |
This is the code:
you can find it here : Please consider also that the dhcp server start does a disconnect + close of the udp pcb, so in theory it should work even without a stop (if the issue was not closing correctly) |
hi @KonssnoK There is something wrong with this function |
@xueyunfei998 ok thanks, keep us updated. Meanwhile, we continue to use the reuseaddr as workaround! |
Answers checklist.
IDF version.
v4.4.4-116-g00bb43ff24
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32S3-WROOM N8R2
Power Supply used.
USB
What is the expected behavior?
DHCP Server to work correctly upon multiple switch on/off.
This scenario happens in a mesh environment where a node can become ROOT and has to provide IP address multiple times to other nodes
What is the actual behavior?
DHCP Server will fail on udp_bind because port 67 was already used.
Steps to reproduce.
...
Debug Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: