[Dnsmasq-discuss] Enable AdvOnLink bit on RAs

Gui Iribarren gui at altermundi.net
Sat Aug 11 17:14:52 BST 2012


Hello,
interested in the sweet feature of ra-names, i migrated from a
radvd-based setup to dnsmasq 2.62

unfortunately, i found out that dnsmasq doesn't set the "on-link" bit
to 1 on the RA packet, like radvd does by default.
(other than that, the packets are equivalent)

this bit instructs host to add the prefix as a local one (i.e., ip
route add 2001:db8::/64 dev eth0), so it considers other hosts on that
prefix to be neighbours as well.
With dnsmasq, hosts now recurse to using the router as a gateway
between them, since they lack the proper route, which in turn triggers
ICMP redirects from the gateway.

Could this be changed, so that on-link bit is set to 1 by default? (i
think it makes sense given dnsmasq normal use cases, and it's also the
default in radvd)
Or at least expose it as an option?
(radvd respective option is named "AdvOnLink")

I'm loving the entrance of dnsmasq on the ipv6 arena :D

Thanks a lot,

Gui



More information about the Dnsmasq-discuss mailing list