commit | 0d5d35d052e44fb0638dfa6ad177e57659f4f58a | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Mon Feb 27 20:24:40 2012 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Mon Feb 27 20:24:40 2012 +0000 |
tree | 439e819b9198c14b5a0ca8ecbd953ec0110dc239 | |
parent | 843c96b4b39d36ea4f1df6249d37fda3c68ae614 [diff] [blame] |
RA lifetimes must be at least 2 hours
diff --git a/src/option.c b/src/option.c index c4a62c4..ee7989a 100644 --- a/src/option.c +++ b/src/option.c
@@ -2421,6 +2421,16 @@ } } } + +#ifdef HAVE_DHCP6 + /* lifetimes must be min 2 hrs, by RFC 2462. + This gets enforced in radv.c for DHCP ranges + which are legitimately less. */ + if ((new->flags & CONTEXT_RA_ONLY) && + new->lease_time < 7200) + new->lease_time = 7200; +#endif + break; }