dhcpv6: always include IA_NA and IA_PD in Request message if requested
authorNicolas BESNARD <[email protected]>
Fri, 11 Apr 2025 09:40:27 +0000 (09:40 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commit63461f64d4c162dc29005760792deb00c9be5b6a
tree8cd03c9223df2f05c1124c7d9fca346b3685dbf1
parent1051cabb4da3283a58e1504513946130c007ebdf
dhcpv6: always include IA_NA and IA_PD in Request message if requested

RFC7550 says that if you request both IA_NA and IA_PD and only one
option is offered in the Advertise, then the client must send a Request
message (and not a Solicit) and the message SHOULD still include both
IA_NA and IA_PD options.

Problem: A Request message is correctly sent instead of a Solicit but it
doesn't include both IA_NA and IA_PD options.

Solution: If IA_NA and IA_PD are requested, the Request message always
includes both options.

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