dhcpv6: migrate to switch case for dhcpv6_handle_reply
authorPaul Donald <[email protected]>
Tue, 11 Nov 2025 16:57:36 +0000 (17:57 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Thu, 13 Nov 2025 12:36:27 +0000 (13:36 +0100)
commit61a54db802cb3f4df5dbd42115e6bc575553fb64
tree908d9c492bb624497aacf41f12940381b306a5e2
parent49c64bbe00ba36293032d6e5d9f7e93bea185f81
dhcpv6: migrate to switch case for dhcpv6_handle_reply

This cleans up the logic handling a bit, and accelerates the if compares to
jumps. Improves readability. Do not indent some if blocks to make diff easier
to compare.

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