router: use ra_lifetime as lifetime for RA options (FS#2206)
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 17 Apr 2019 09:22:43 +0000 (11:22 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 17 Apr 2019 11:58:05 +0000 (13:58 +0200)
commit38bc630be6816eb5bd0a368437c97ee1aba3ee56
tree12ace3b7baa74e0db748c33ca8a874246b42f6c3
parent0523bdd981f0cc56c2391f73649baeda39ab43e0
router: use ra_lifetime as lifetime for RA options (FS#2206)

Use the RA lifetime as lifetime for the recursive DNS and DNS search options
For the route options use as lifetime the smallest value of either the valid
lifetime of the address associated with the route or the RA lifetime.
This avoids routes having infinite lifetime being installed in downstream
clients which can results into routes pointing to a removed router.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/router.c