Comment about not being a router is in the wrong place. Router lifetime
is assigned with config_parse_sec().
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);
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)