]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: make default router lifetime to 30min
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Nov 2020 07:29:32 +0000 (16:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Nov 2020 15:04:42 +0000 (00:04 +0900)
Closes #17527.

man/systemd.network.xml
src/network/networkd-network.c

index 33a0b37d4c62ad4557ea3142e50ba85558445edd..281c12a1c55dd2e8618e62197aeef9510ee8ed91 100644 (file)
@@ -2254,9 +2254,8 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
       <varlistentry>
         <term><varname>RouterLifetimeSec=</varname></term>
 
-        <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. If set,
-        this host also announces itself in Router Advertisements as an IPv6
-        router for the network link. When unset, the host is not acting as a router.</para>
+        <listitem><para>Takes a timespan. Configures the IPv6 router lifetime in seconds. When set to
+        0, the host is not acting as a router. Defaults to 30 minutes.</para>
         </listitem>
       </varlistentry>
 
index 75bf474e9b548bba08426eb2a8715667877f7c55..00bd73560ccbd661c775d924edff9df944270036 100644 (file)
@@ -379,6 +379,7 @@ int network_load_one(Manager *manager, OrderedHashmap **networks, const char *fi
                 .dhcp_server_emit_router = true,
                 .dhcp_server_emit_timezone = true,
 
+                .router_lifetime_usec = 30 * USEC_PER_MINUTE,
                 .router_emit_dns = true,
                 .router_emit_domains = true,