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

tcpip_adapter_dhcpc_stop() contains a bug which prevents setting static IP for Ethernet (IDFGH-3521) #657

Closed

Conversation

hwmaier
Copy link
Contributor

@hwmaier hwmaier commented May 31, 2017

Without this fix DHCP cannot be stopped for Ethernet and subsequent settings of static IP addresses fail because DHCP is still running.

@benpeoples
Copy link

Poking this thread.

Easy one-liner, works great, fixes a core functionality bug. =)

@hwmaier
Copy link
Contributor Author

hwmaier commented Aug 20, 2017

Not sure why this fix has not been yet pulled into the main branch.

@benpeoples
Copy link

Probably bigger fish to fry at the moment... I get the feeling the ethernet folks are a pretty small population.

@projectgus
Copy link
Contributor

Hi @hwmaier & others,

Sorry this was left sitting for such a long time. Fix is now cherry-picked, and queued for review & merge.

Angus

@projectgus projectgus added the Status: Pending blocked by some other factor label Aug 30, 2017
igrr pushed a commit that referenced this pull request Sep 8, 2017
igrr added a commit that referenced this pull request Sep 8, 2017
tcpip_adapter: Fix bug which prevents setting a static IP address for Ethernet interface (github #657)

See merge request !1178
@projectgus
Copy link
Contributor

Cherry-picked as 58ba8a2.

@projectgus projectgus closed this Sep 20, 2017
@igrr igrr removed the Status: Pending blocked by some other factor label Nov 14, 2017
@JeanCarloEM
Copy link

JeanCarloEM commented Jun 21, 2020

This correction, for some reason, does not appear as applied to the dhcp server (dhcpS), only for dhcp client (dhcpC). So, I manually applied the fix to the equivalent dhcp server (dhcpS) functions, and it worked.

I suggest that such a correction be applied to dhcpS as well.

@github-actions github-actions bot changed the title tcpip_adapter_dhcpc_stop() contains a bug which prevents setting static IP for Ethernet tcpip_adapter_dhcpc_stop() contains a bug which prevents setting static IP for Ethernet (IDFGH-3521) Jun 21, 2020
@david-cermak
Copy link
Collaborator

@JeanCarloEM It might get tricky to run DHCP server using tcpip_adapter without a modification of SDK. It is recommended to use esp-netif for IDF versions >= v4.1. Please refer to this post on setting up a DHCP server on ethernet interface #4086 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants