projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a637dba
)
Add deprecation for static IPv6 prefixes
author
Steven Barth
<steven@midlink.org>
Tue, 29 Jan 2013 10:57:18 +0000
(11:57 +0100)
committer
Steven Barth
<steven@midlink.org>
Tue, 29 Jan 2013 10:57:18 +0000
(11:57 +0100)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index 56f8bd9468f38694e998759d930f57859526f87c..6906d629e5ba99312b1e2e5fdf389986f892a3d1 100644
(file)
--- 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);
}