ubus: implement UBus method to get state data immediately
authorNicolas BESNARD <[email protected]>
Tue, 19 Nov 2024 12:46:22 +0000 (12:46 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commit3a1a599fecb7b06f1a6847d5a4dc44c886c12f81
tree0f4e6631dba36cf95969422e73a646bccba3fcd1
parent44c50214997db1eb2968c2c69392fae8d24d6b11
ubus: implement UBus method to get state data immediately

Problem:
    odhcp6c state data are transmitted when the DHCPv6 state changes.
    If a process subscribes after the start of odhcp6c, then it has to
    wait for the next update event.

Solution:
    Add a new UBus method "get_state" to get the latest state data
    immediately.

Signed-off-by: Nicolas BESNARD <[email protected]>
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c
src/odhcp6c.h
src/ubus.c