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

Fix DHCP server pbuf handling and allow to change netif address #8602

Merged
merged 5 commits into from
Jun 27, 2022

Conversation

mcspr
Copy link
Collaborator

@mcspr mcspr commented Jun 14, 2022

See #8582 (comment)

Fix sending NACK (fix pointer to pointer), use helper function to fill pbuf with data pointer
This properly handles the case when pbuf->len is less than struct size

We must use SDK functions, so static IP could be set through wifi_set_ip_info

As noticed in esp8266#8582 (comment)
Plus, handle the case when `pbuf->len` is less than struct size
As noticed in esp8266#8582 (comment)
Can't really use `server.begin()` and `server.end()` directly, only
default static IP is applied to the interface since DHCP server is
deemed 'running' (see `wifi_softap_dhcps_status()` return value)
@d-a-v d-a-v added this to the 3.1 milestone Jun 26, 2022
@mcspr mcspr merged commit 7e5520c into esp8266:master Jun 27, 2022
@mcspr mcspr deleted the softap-dhcps-oopsie branch June 27, 2022 00:26
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.

2 participants