summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-radv.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2017-06-16 08:07:13 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2017-06-16 08:44:45 +0200
commit301a2fb99acf8b3484bd295e835983b1ad09bf48 (patch)
tree68044e936d3311c8e1a12b6dd9b860bdd0b7d41e /src/network/networkd-radv.c
parentmeson: only run c++ tests when c++ compiler is available (#6123) (diff)
downloadsystemd-301a2fb99acf8b3484bd295e835983b1ad09bf48.tar.xz
systemd-301a2fb99acf8b3484bd295e835983b1ad09bf48.zip
networkd: Fix comment
Comment about not being a router is in the wrong place. Router lifetime is assigned with config_parse_sec().
Diffstat (limited to '')
-rw-r--r--src/network/networkd-radv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-radv.c b/src/network/networkd-radv.c
index e5be145146..cdcb8c7717 100644
--- a/src/network/networkd-radv.c
+++ b/src/network/networkd-radv.c
@@ -55,6 +55,8 @@ int radv_configure(Link *link) {
if (r < 0)
return r;
+ /* 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);
if (r < 0)