dhcpv6: fix solicit loop when server has no address available
authorNicolas BESNARD <nico.besnard31@gmail.com>
Thu, 23 Jan 2025 09:51:31 +0000 (09:51 +0000)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commit52a9a847def401730b86aeb2ef6dc1350eb6d998
treea487bd9d9582c695eeee5dff9287730af91a3445
parent7b1f67c23de620f1f480e7d51eec87c6162c5510
dhcpv6: fix solicit loop when server has no address available

Problem: If Advertise with status 'noaddravail' is received while IA_NA
is requested, a new Solicit is sent creating an infinite loop.

Solution: Set IA_NA mode to none and send INFO-REQ message if no IA_NA
or IA_PD are available.

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