dhcpv6: Add error checking to handle renew failure for IA_PD operations
authorLuke Deller <[email protected]>
Sun, 1 Dec 2024 02:46:28 +0000 (13:46 +1100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 19 Oct 2025 16:40:04 +0000 (18:40 +0200)
commit3c7e425169e120b361af0629ba9d76f2bdd0e28c
tree5bd0497e87cd9a89463fc2da58ac6a2f1e65a68a
parent8de25373a860bc0649f4ae8aadc4010912af4916
dhcpv6: Add error checking to handle renew failure for IA_PD operations

Check for error status code in the IA Prefix option in replies to RENEW
messages.

This fixes a problem where odhcp6c thinks that renewal succeeded, when
actually the upstream router is no longer routing this prefix for us.

See https://github.com/openwrt/odhcp6c/issues/61#issuecomment-2509536512

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