zephyr/subsys
Peter Bigot b4ed597afe net: dhcp: fix timeout on entry to bound state
When a renewal occurs the client enters RENEWING, sends a request,
then sets a short timeout (about 4 s) for the response.  In the common
case the response will arrive immediately, which will trigger an
attempt to reset the timer with T1 which is generally large.

However the check for updating the timer performs the update only if
the new deadline is closer than the currently set one.  Thus the timer
fires at the time the RENEWING request would have been retransmitted,
and only then updates to the correct deadline (T1) for the current
machine state.

Remove the extra timeout by unconditionally setting the timeout to the
new value.

This works when there is one interface; it could be wrong if there
were multiple interfaces one of which had a closer deadline, but
multiple interfaces are mishandled anyway and will be fixed next.

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 cpp: Fixed compile warning with extern array declaration 2020-06-09 14:42:16 +02:00
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 timeout on entry to bound state 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