Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dhcpcd: Respect IPV6_PREFERRED_ONLY flag regardless of state #307

Merged
merged 1 commit into from
Apr 2, 2024

Commits on Apr 2, 2024

  1. Respect IPV6_PREFERRED_ONLY flag on DHS_NONE state

    Current IPv6_PREFERRED_ONLY (option 108) handling code is only effective
    when current state is DHS_DISCOVER and DHS_REBOOT. However, when we
    receive multiple ACKs upon our REQUEST, the first ACK will trigger the
    use_v6only code path and dhcp_drop() us into DHS_NONE state, as a result
    the option 108 on the second ACK won't be handled correctly and we'll
    bind to the lease instead.
    
    This patch fixes the issue by adding DHS_NONE as a state to respect
    option 108 as well.
    taoyl-g committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    10c99de View commit details
    Browse the repository at this point in the history