odhcpd: remove mac_len argument to ubus_bcast_dhcp_event()
authorDavid Härdeman <[email protected]>
Tue, 7 Oct 2025 11:44:08 +0000 (13:44 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 9 Oct 2025 06:48:51 +0000 (08:48 +0200)
commit22481d848e0d37a09c6281a28a59cdfaf8237d62
tree95799c5183dd518efa94cece7016f3b7c526f3db
parentd31d64efd56cf50c537da680d240fa2a4112c205
odhcpd: remove mac_len argument to ubus_bcast_dhcp_event()

All the places that call ubus_bcast_dhcp_event() have already checked that the
hardware adress is a MAC address, and it's not like we support anything else,
so remove the length argument.

The function is actually DHCPv4 specific, but that's a topic for another time.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/270
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c
src/odhcpd.h
src/ubus.c