odhcp6c: sync and accumulate RA & DHCPv6 events as fast as possible
authorAlin Nastac <[email protected]>
Wed, 3 Jan 2024 14:59:55 +0000 (15:59 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 14 Oct 2025 06:29:12 +0000 (08:29 +0200)
commit6ca1552cb3fe1a50153d8c2bfa4067513afcdd6b
tree3cc12b37797e058d135957991b30b131c168ba9d
parent29b58cfb471129ac8e67b5357a2355b487372c26
odhcp6c: sync and accumulate RA & DHCPv6 events as fast as possible

This fixes commit dc186d6d2b0d which introduced accumulation delay
differences between the 2 possible scenarios:
  1. When DHCPv6 bound event precede RA receival, sync script is called
     after 1 second since accumulation has been completed (i.e. RA has
     been received).
  2. When RA receival precedes DHCPv6 bound event, sync script is called
     after a delay of 10 seconds since accumulation is done.

Fixes: dc186d6d2b0d ("odhcp6c: sync and accumulate RA & DHCPv6 events correctly")
Signed-off-by: Alin Nastac <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/82
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.c