Repository navigation
Complete #46: RFC 9096 renumbering wired in; tests, real-tool CI, docs - #75
Merged
Merged
Conversation
…, real-tool CI, docs The first version left lan6Renumber uncalled (a prefix that did not come back after a reboot was never announced as stale) and shipped no tests or docs. - hooks.go: every dhcpcd event (a WAN's, and the LAN bridge's that gets the delegated prefix) runs lan6Renumber: records the RA bridges' prefixes and, in the first event after a reboot, puts the ones that did not come back on the bridge with preferred lifetime 10 s so dnsmasq deprecates them. - raLeaseSecs: a lease in plain seconds counts as seconds. - Unit tests for the link MTUs, the VLAN ordering in network.sh, lan6Addrs, lan6Plan, raLeaseSecs. - CI: the rendered link commands in a real kernel (PPPoE port 1508, DHCP VLAN 1500); after a "reboot" the real `mr hook dhcpcd` restores the lost prefix and a real dnsmasq advertises it to a client with preferred lifetime 0 while the current prefix stays preferred. - docs/modules/net.md: mtu 1500 (RFC 4638) and renumbering after a reboot. Closes #46 Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
hookDhcpcdnow runslan6Renumberon every dhcpcd event (WAN and LAN-bridge events). The first version merged in PPPoE RFC 4638 MTU and IPv6 renumbering recovery (#46) #73 never called it, so a prefix lost across a reboot was never deprecated.raLeaseSecs: a plain-number lease is seconds (was treated as the 2 h default).TestWANLinkMTUs,TestWANLinkMTUHome,TestLan6Addrs,TestLan6Plan,TestRALeaseSecs.tools/ci.d/net.shstep 4): real kernel link MTUs, and an end-to-end RFC 9096 check with the realmr hook dhcpcd, a real dnsmasq and a raw-ICMPv6 client.docs/modules/net.md(mtu 1500 / RFC 4638, renumbering after a reboot), skill cheat-sheet.Why
#46 was closed by #73 with the RFC 9096 half dead code and no tests.
Verification
sh tools/ci.shon the build host: ALL CHECKS PASSED —net: PPPoE port 1508, DHCP VLAN 1500; RA client:old prefix valid 1790 preferred 0; current preferred 1790.Closes #46
https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr