dhcpv6-ia: switch case refactor in dhcpv6_handle_ias() master
authorPaul Donald <newtwen+github@gmail.com>
Mon, 22 Dec 2025 13:44:58 +0000 (14:44 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 22 Dec 2025 16:52:18 +0000 (17:52 +0100)
commit9857adb8ac999742836e5c30e75da9aad34a4ba9
treeb0d7b7e86ef52d821d57ffaa45e2c32f4f092b90
parent5a13d875ac71d52a221515a30d21916ed4976126
dhcpv6-ia: switch case refactor in dhcpv6_handle_ias()

Rewrite core logic using switch cases for clarity and improved
performance. This also simplifies the DHCPV6_MSG_REBIND cases:

DHCPV6_MSG_REBIND and !a is parsed in the switch
DHCPV6_MSG_REBIND and a is now parsed after the switch (5 lines)

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
https://github.com/openwrt/odhcpd/pull/360
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
src/dhcpv6-ia.c