ubus: emit UBus event on DHCP state changes
authorNicolas BESNARD <[email protected]>
Tue, 19 Nov 2024 10:08:36 +0000 (10:08 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commit44c50214997db1eb2968c2c69392fae8d24d6b11
tree7fa960cc2d00dc863e45a743ecceeb9bb50b1430
parent33b972bc526a52dc73c6b58e8637d46d27a49481
ubus: emit UBus event on DHCP state changes

Problem:
    Whenever the DHCPv6 state changes a custom shell script provided in
    an argument on process start is called.

Solution:
    In addition to the current script mechanism, emit a UBus event
    whenever the DHCPv6 state changes.

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.c
src/odhcp6c.h
src/script.c
src/ubus.c
src/ubus.h