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

fix: lwip: when a DHCP lease is obtained, stop autoip to avoid that it overwrites the IP address after conflict resolution #50

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

richardapeters
Copy link

Issue:

When a DHCP lease cannot be obtained, after several retries AutoIP is started, and a new attempt at getting a DHCP lease is made. Simultaneously, AutoIP selects an IP address and performs address conflict detection on that IP address. If the new attempt to get a DHCP lease is successful before ACD finishes, then that IP address is overwritten by the AutoIP address once ACD finishes.

Fix:

  • autoip_stop now invokes acd_stop and acd_remove to properly clean up the administration in acd that was created by autoip_start
  • dhcp_bind now invokes autoip_stop so that autoip does not overwrite the IP address obtained by DHCP
  • dhcp_release_and_stop now invokes autoip_stop for similar reasons

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.

1 participant