openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
161 stars 98 forks source link

Default values for RA-only mode #43

Open kirelagin opened 9 years ago

kirelagin commented 9 years ago

It is somewhat unexpected that with

option dhcpv6 'disabled'
option ra 'server'

odhcpd still sends the “Managed” flag. It took me quite some time to figure out what was going on. It seems to be better to have the default value for option ra_management derived from option dhcpv6, i.e. if and only if DHCPv6 is enabled, ra_management should be 1 by default.

cvmiller commented 8 years ago

Although unexpected, I would agree with the current configuration. This allows one to have an "external" dhcpv6 server (to the router), and still have the router advertise the M-bit in the RA.