Commit 7e5520c
Fix DHCP server pbuf handling and allow to change netif address (#8602)
* Fix sending NACK, use helper function to fill pbuf
As noticed in #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 #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>1 parent 0bff52f commit 7e5520c
File tree
2 files changed
+18
-34
lines changed- cores/esp8266
- libraries/ESP8266WiFi/src
2 files changed
+18
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
| 441 | + | |
447 | 442 | | |
448 | 443 | | |
449 | 444 | | |
| |||
475 | 470 | | |
476 | 471 | | |
477 | 472 | | |
478 | | - | |
| 473 | + | |
479 | 474 | | |
480 | 475 | | |
481 | 476 | | |
| |||
492 | 487 | | |
493 | 488 | | |
494 | 489 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
| 490 | + | |
501 | 491 | | |
502 | 492 | | |
503 | 493 | | |
| |||
524 | 514 | | |
525 | 515 | | |
526 | 516 | | |
527 | | - | |
| 517 | + | |
528 | 518 | | |
529 | 519 | | |
530 | 520 | | |
| |||
548 | 538 | | |
549 | 539 | | |
550 | 540 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
| 541 | + | |
557 | 542 | | |
558 | 543 | | |
559 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | 181 | | |
187 | 182 | | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
191 | 186 | | |
192 | | - | |
| 187 | + | |
193 | 188 | | |
194 | 189 | | |
195 | 190 | | |
| |||
227 | 222 | | |
228 | 223 | | |
229 | 224 | | |
230 | | - | |
231 | | - | |
232 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
233 | 229 | | |
234 | 230 | | |
235 | 231 | | |
| |||
246 | 242 | | |
247 | 243 | | |
248 | 244 | | |
| 245 | + | |
249 | 246 | | |
250 | 247 | | |
251 | | - | |
| 248 | + | |
252 | 249 | | |
253 | 250 | | |
254 | 251 | | |
255 | | - | |
256 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
| |||
0 commit comments