]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: Fix comment
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 16 Jun 2017 06:07:13 +0000 (09:07 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 16 Jun 2017 06:44:45 +0000 (09:44 +0300)
Comment about not being a router is in the wrong place. Router lifetime
is assigned with config_parse_sec().

src/network/networkd-address.c
src/network/networkd-radv.c

index de918c3c299c0eea17f371a81e143ab4c741c1d8..badc47af05d2882c50ab51a596eb4b2d690c9302 100644 (file)
@@ -1166,8 +1166,7 @@ int config_parse_prefix_lifetime(const char *unit,
                 return 0;
         }
 
-        /* a value of 0xffffffff represents infinity, 0x0 means this host is
-           not a router */
+        /* a value of 0xffffffff represents infinity */
         if (streq(lvalue, "PreferredLifetimeSec"))
                 r = sd_radv_prefix_set_preferred_lifetime(p->radv_prefix,
                                                           (usec + USEC_PER_SEC - 1) / USEC_PER_SEC);
index e5be145146a6ed308be8206733e95baad3d595f3..cdcb8c77171c03746eed34686af69bbe3384df32 100644 (file)
@@ -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)