summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2017-06-16 09:35:12 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2017-06-16 09:45:46 +0300
commit945e32252ee4c3dd61145df4bade5e344c6ce9da (patch)
treeed3a36d671520b96cfa3fbbdfaa03be8999a9bf9
parent301a2fb99acf8b3484bd295e835983b1ad09bf48 (diff)
downloadsystemd-945e32252ee4c3dd61145df4bade5e344c6ce9da.tar.gz
systemd-945e32252ee4c3dd61145df4bade5e344c6ce9da.tar.bz2
systemd-945e32252ee4c3dd61145df4bade5e344c6ce9da.zip
networkd-radv: Fix router lifetime assignment
Router lifetime is stored as usec_t, use value accordingly.
-rw-r--r--src/network/networkd-radv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-radv.c b/src/network/networkd-radv.c
index cdcb8c7717..af9e116936 100644
--- a/src/network/networkd-radv.c
+++ b/src/network/networkd-radv.c
@@ -58,7 +58,7 @@ int radv_configure(Link *link) {
/* a value of 0xffffffff represents infinity, 0x0 means this host is
not a router */
r = sd_radv_set_router_lifetime(link->radv,
- link->network->router_lifetime_usec);
+ DIV_ROUND_UP(link->network->router_lifetime_usec, USEC_PER_SEC));
if (r < 0)
return r;