Skip to content

PPPoE RFC 4638 MTU and IPv6 renumbering recovery (#46) - #73

Merged
Cd1s merged 1 commit into
mainfrom
fix/pppoe-rfc4638
Sep 25, 2026
Merged

Cd1s merged 1 commit into
mainfrom
fix/pppoe-rfc4638

Conversation

@Cd1s

@Cd1s Cd1s commented Sep 25, 2026

Copy link
Copy Markdown
Owner

What

  • PPPoE sessions with mtu: 1500 raise the physical link MTU to 1508 before PPP starts and request RFC 4638 PPP-Max-Payload. If the peer does not echo the option, pppd falls back to 1492.
  • DHCP/static WANs sharing the same physical link are rejected when the requested link MTU is incompatible with the PPPoE session. The generated network script sets parent MTUs before VLANs and verifies after apply that the device accepted a required MTU.
  • IPv6 prefixes advertised on LAN RA bridges are recorded on flash. After reboot, a disappeared prefix is briefly re-added with preferred lifetime zero so dnsmasq advertises it as stale and clients stop using it, following RFC 9096.
  • Runtime WAN status reports the active interface MTU.

Verification

  • tools/ci.sh passes in private and public trees on the remote build host.
  • Tests cover RFC 4638 link MTU calculation, conflict validation, rendering, stale-prefix parsing/planning and address normalization.

Closes #46

https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr

- PPPoE sessions above 1492 raise the physical link MTU by the PPPoE overhead, request the larger
  PPP-Max-Payload, and verify that the device accepted it. Incompatible DHCP/static WANs sharing the
  link are rejected; pppd falls back safely when the peer does not support RFC 4638.
- IPv6 prefixes advertised on LAN bridges are recorded. After reboot, a prefix that disappeared is
  briefly re-added with preferred lifetime zero so dnsmasq signals clients to stop using it (RFC 9096).
- CI covers rendering, validation, MTU verification and stale-prefix planning.

Closes #46
@Cd1s
Cd1s merged commit eb97def into main Sep 25, 2026
2 checks passed
@Cd1s
Cd1s deleted the fix/pppoe-rfc4638 branch September 25, 2026 20:21
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.

提议:PPPoE 1500 MTU(RFC 4638)与 IPv6 前缀变化不断网(RFC 9096)

1 participant