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

Only drop IPv4 LL addresses if configured to handle them #464

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

ColinMcInnes
Copy link
Contributor

If "noipv4ll" configured, do not drop IPv4 link local addresses from interface.

Resolves #462

@@ -2170,7 +2170,8 @@ dhcp_finish_dad(struct interface *ifp, struct in_addr *ia)

#ifdef IPV4LL
/* Stop IPv4LL now we have a working DHCP address */
if (!IN_LINKLOCAL(ntohl(ia->s_addr)))
if ((!IN_LINKLOCAL(ntohl(ia->s_addr)))
&& (ifp->options->options & DHCPCD_IPV4LL))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to do this inside ipv4ll_drop?

@rsmarples rsmarples merged commit 0a38e02 into NetworkConfiguration:master Feb 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DHCPv4 NAK causes type "host" addresses to be deleted
2 participants