]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: rename Gateway=_dhcp6 -> Gateway=_ipv6ra
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 12 Oct 2020 05:52:11 +0000 (14:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 22:04:02 +0000 (07:04 +0900)
man/systemd.network.xml
src/network/networkd-route.c

index 512d657138f93c3d6ba2cf99bea95fefdc46b8a1..5307a508d3fe4430b5c002f2c3bd7590660c45f2 100644 (file)
@@ -1283,9 +1283,8 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
           <term><varname>Gateway=</varname></term>
           <listitem>
             <para>Takes the gateway address or the special values <literal>_dhcp4</literal> and
-            <literal>_dhcp6</literal>. If <literal>_dhcp4</literal> or <literal>_dhcp6</literal> is
-            set, then the gateway address provided by DHCP (or in the IPv6 case, provided by IPv6 RA)
-            is used.</para>
+            <literal>_ipv6ra</literal>. If <literal>_dhcp4</literal> or <literal>_ipv6ra</literal> is
+            set, then the gateway address provided by DHCPv4 or IPv6 RA is used.</para>
           </listitem>
         </varlistentry>
          <varlistentry>
index 86404b9dc64a75a99ed4dc73a62fd5a8fdad47de..da8a12dc713ffa45eac571c7ee77dcbeffb2a8ff 100644 (file)
@@ -1743,7 +1743,7 @@ int config_parse_gateway(
                         return 0;
                 }
 
-                if (streq(rvalue, "_dhcp6")) {
+                if (streq(rvalue, "_ipv6ra")) {
                         n->gw_family = AF_INET6;
                         n->gateway_from_dhcp_or_ra = true;
                         TAKE_PTR(n);
@@ -2388,7 +2388,7 @@ static int route_section_verify(Route *route, Network *network) {
 
                 if (route->gateway_from_dhcp_or_ra) {
                         log_warning("%s: Deprecated value \"_dhcp\" is specified for Gateway= in [Route] section from line %u. "
-                                    "Please use \"_dhcp4\" or \"_dhcp6\" instead. Assuming \"_dhcp4\".",
+                                    "Please use \"_dhcp4\" or \"_ipv6ra\" instead. Assuming \"_dhcp4\".",
                                     route->section->filename, route->section->line);
 
                         route->family = AF_INET;