zephyr/subsys
Peter Bigot 2c813bc620 net: dhcp: fix invalid timeout on send failure
If send_request() fails it would return UINT32_MAX as the next
timeout.  Callers pass the returned value to update_timeout_work
without validating it.  This has worked only because
update_timeout_work will not set a timeout if an existing timeout
would fire earlier, and the way the state is currently structured it
is likely there will be an existing timeout.  However, if work thread
retransmission from REQUESTING failed the timer would not be
rescheduled, causing the state machine to stop.

A more clean solution, which matches the behavior of send_discover(),
is to return the timeout for the next transmission even in the case
when the send fails.  The observed behavior is the same as if the
network, rather than the sender, failed to transport the request.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
2021-01-04 10:02:58 +02:00
..
bluetooth Bluetooth: GATT: Fix BT_GATT_AUTO_DISCOVER_CCC 2020-12-27 18:20:28 +01:00
canbus drivers: can: rework zcan_frame and zcan_filter 2020-12-17 11:07:53 +01:00
console device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
cpp
debug debug: analyzer: add support for thread runtime stats 2020-12-14 13:00:47 -05:00
dfu dfu: mcuboot: add shell module 2020-12-14 11:24:57 +01:00
disk disk: sdhc: Convert drivers to new DT device macros 2020-12-15 15:17:59 -06:00
emul drivers: sensors: bmi160: Fix issue with sample read 2020-12-01 17:58:06 -05:00
fb device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fs fs: littlefs: define mount point structures for file systems 2020-12-27 18:16:20 +01:00
jwt Kconfig: cleanup subsystems 2020-08-24 10:24:30 +02:00
logging logging: Reduce missinglog_strdup() on SPARC 2020-12-14 11:23:34 +01:00
lorawan lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00
mgmt mgmt: updatehub: Kconfig: Drop NET_CONFIG_SETTINGS option 2020-12-14 11:21:06 +01:00
net net: dhcp: fix invalid timeout on send failure 2021-01-04 10:02:58 +02:00
power power: Idle depends on system clock when power management enabled 2020-12-19 21:05:45 -05:00
random random: ctr_drbg: Fix the error path in sys_csrand_get 2020-12-01 10:20:06 -06:00
settings settings: fix possible unaligned write while a line coping 2020-12-04 17:10:47 +01:00
shell power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage devicetree: flash-partitions: expose helper macros 2020-12-27 18:16:20 +01:00
testsuite kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
timing timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
tracing systemview: Use common function to get sysview thread name 2020-11-21 08:29:26 -05:00
usb usb: dfu: add separate pid for dfu mode 2020-12-20 13:04:45 -05:00
CMakeLists.txt timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
Kconfig lorawan: Add initial support for LoRaWAN 2020-10-08 12:15:38 +02:00