ubus: emit UBus event on DHCP state changes
authorNicolas BESNARD <nico.besnard31@gmail.com>
Tue, 19 Nov 2024 10:08:36 +0000 (10:08 +0000)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
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 <nico.besnard31@gmail.com>
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/dhcpv6.c
src/odhcp6c.c
src/odhcp6c.h
src/script.c
src/ubus.c
src/ubus.h