diff options
author | Steven Barth <steven@midlink.org> | 2013-01-29 11:57:18 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2013-01-29 11:57:18 +0100 |
commit | 3ae15bc2b82fe32188f726ceabcb1883276a5aed (patch) | |
tree | edd93635a60425a70197c981d86be8d859566e53 | |
parent | a637dba6e4393f0ec8f8bf294fbeb89b8e4ebc66 (diff) |
Add deprecation for static IPv6 prefixes
-rw-r--r-- | interface-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-ip.c b/interface-ip.c index 56f8bd9..6906d62 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -459,7 +459,7 @@ interface_set_prefix_address(struct interface *iface, bool add, if (assignment->enabled) { time_t now = system_get_rtime(); addr.preferred_until = now; - if (addr.valid_until - now > 7200) + if (!addr.valid_until || addr.valid_until - now > 7200) addr.valid_until = now + 7200; system_add_address(l3_downlink, &addr); } |