]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
DHCP: Handle option 108 correctly when receiving 0.0.0.0 OFFER (#342)
authortaoyl-g <153713953+taoyl-g@users.noreply.github.com>
Thu, 25 Jul 2024 10:50:59 +0000 (19:50 +0900)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 10:50:59 +0000 (11:50 +0100)
commit9330dbb44f48f14903c3cf59c58166c0da4ca173
treea5124f47aca7533160767f4f6f17753f2bb628b7
parent65f5692a12caadf375677414e633c955c9bec0a0
DHCP: Handle option 108 correctly when receiving 0.0.0.0 OFFER (#342)

* DHCP: Handle option 108 correctly when receiving 0.0.0.0 OFFER

According to RFC8925 section 3.3.1, when the server supports both option
108 (IPv6-Only Preferred) and option 116 (Auto-Configure), and the
client only sends IPv6-Only Preferred option, then the server SHOULD
return 0.0.0.0 as the offered address, and not setting the
Auto-Configure option.

However, in our current client code, the IPv6-Only Preferred option in a
0.0.0.0 OFFER is only handled correctly when the Auto-Configure option
is present. This patch fixes this issue.

---------

Co-authored-by: Roy Marples <roy@marples.name>
src/dhcp.c