openwrt / odhcp6c

This repository is a mirror of https://git.openwrt.org/?p=project/odhcp6c.git. It is for reference only and is not active for checks-ins or reporting issues; issues should be reported at: https://bugs.openwrt.org. Pull requests will be accepted which will be merged in odhcp6c.git
GNU General Public License v2.0
78 stars 83 forks source link

Add option to ignore default lifetime for RDNSS records #53

Closed neocturne closed 6 years ago

neocturne commented 7 years ago

As discussed in #21:

While RFC6106 mandates that the RDNSS lifetime is capped to the default lifetime, this behaviour is often undesirable. In particular, it prevents accepting RDNSS records from RAs that don't also advertise a default route (set the default lifetime to 0).

Therefore, make it possible to opt out of this behaviour and respect the RDNSS lifetime independently of the default lifetime using the new command line switch -L.

Any suggestions for the UCI option name? I'd probably go with dnsdefaultlifetime (defaulting to 1), which is long and doesn't really say a lot...

neocturne commented 7 years ago

Ping?

dedeckeh commented 7 years ago

@NeoRaider Patch applied in odhcp6c lede git repo (https://git.lede-project.org/?p=project/odhcp6c.git;a=commit;h=d420f49396c627ce1072b83170889baf0720bc8b)