Skip to content

Conversation

stephengroat
Copy link

@stephengroat stephengroat commented Jun 11, 2025

macOS ignores NDP packets that don't originate from link-local addresses, causing IPv6 connectivity issues with odhcpd. This change ensures NDP packets (Neighbor Advertisements and ICMP Echo Requests) are sent using link-local source addresses for RFC 4861 compliance.

Changes:

  • Add odhcpd_send_with_src() to allow explicit source address control
  • Add odhcpd_get_interface_linklocal_addr() to find link-local addresses
  • Update send_na() and ping6() to prefer link-local source addresses
  • Maintain backward compatibility with fallback behavior

Fixes: openwrt/openwrt#7561 #202

@stephengroat stephengroat marked this pull request as ready for review June 11, 2025 04:35
macOS ignores NDP packets that don't originate from link-local addresses,
causing IPv6 connectivity issues with odhcpd. This change ensures NDP
packets (Neighbor Advertisements and ICMP Echo Requests) are sent using
link-local source addresses for RFC 4861 compliance.

Changes:
- Add odhcpd_send_with_src() to allow explicit source address control
- Add odhcpd_get_interface_linklocal_addr() to find link-local addresses
- Update send_na() and ping6() to prefer link-local source addresses
- Maintain backward compatibility with fallback behavior

Fixes: openwrt/openwrt#7561
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.

FS#2759 - odhcpd IPv6 NDP + macOS don't play together
1 participant