fix: treat IPv4LL DHCP assignments as incomplete during boot#2649
fix: treat IPv4LL DHCP assignments as incomplete during boot#2649ljm42 wants to merge 2 commits into
Conversation
When IPv4 DHCP is enabled and the interface has carrier, rc.inet1 now waits up to 60 seconds for a non-link-local IPv4 address instead of continuing as soon as dhcpcd assigns a 169.254.x.x address. If no usable IPv4 address is received within the timeout, dhcpcd continues polling in the background.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds dhcp4_addr() and dhcp_wait() to detect non-link-local IPv4 addresses and wrap dhcpcd -w with a 60s timeout and IPv4 polling; ipaddr_up() now calls dhcp_wait() and branches on its return to log IPv4LL-only, do nothing, or start dhcpcd in background. ChangesDHCP Polling Enhancement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🔧 PR Test Plugin AvailableA test plugin has been generated for this PR that includes the modified files. Version: 📥 Installation Instructions:Install via Unraid Web UI:
Alternative: Direct Download
|
Summary
Validation
Summary by CodeRabbit
Bug Fixes
New Features