Fix DHCP server pbuf handling and allow to change netif address#8602
Merged
mcspr merged 5 commits intoesp8266:masterfrom Jun 27, 2022
Merged
Fix DHCP server pbuf handling and allow to change netif address#8602mcspr merged 5 commits intoesp8266:masterfrom
mcspr merged 5 commits intoesp8266:masterfrom
Conversation
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
approved these changes
Jun 23, 2022
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 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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->lenis less than struct sizeWe must use SDK functions, so static IP could be set through
wifi_set_ip_info