Fix DHCP server pbuf handling and allow to change netif address by mcspr · Pull Request #8602 · esp8266/Arduino

added 3 commits

June 15, 2022 00:15
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

@d-a-v

@mcspr

@mcspr mcspr deleted the softap-dhcps-oopsie branch

June 27, 2022 00:26

hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request

Nov 18, 2024
…266#8602)

* Fix sending NACK, use helper function to fill pbuf

As noticed in esp8266#8582 (comment)
Plus, handle the case when `pbuf->len` is less than struct size

* Make sure to call SDK functions to start and stop DHCP server

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)

* s

Co-authored-by: david gauchard <gauchard@laas.fr>