]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: rename GatewayOnlink= to GatewayOnLink=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 27 Feb 2019 08:43:08 +0000 (17:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Feb 2019 01:00:22 +0000 (10:00 +0900)
But still GatewayOnlink= is supported for backward compatibility.

man/systemd.network.xml
src/network/networkd-network-gperf.gperf
src/network/networkd-route.c
test/fuzz/fuzz-network-parser/directives.network
test/fuzz/fuzz-unit-file/directives.service
test/test-network/conf/25-route-gateway-on-link.network

index 2058ba74a35a861ce9edca0a6d79280ba005c7a5..8b6c187f346190cd7433ab9566a786d9d3b7a4e5 100644 (file)
           </listitem>
         </varlistentry>
          <varlistentry>
-           <term><varname>GatewayOnlink=</varname></term>
+           <term><varname>GatewayOnLink=</varname></term>
            <listitem>
              <para>Takes a boolean. If set to true, the kernel does not have
              to check if the gateway is reachable directly by the current machine (i.e., the kernel does
index 1437d83f73a6934e0800352445d5c8721fc34410..7888bdf07af270140600abf67c03a12bc2cab9c4 100644 (file)
@@ -117,6 +117,7 @@ Route.Scope,                            config_parse_route_scope,
 Route.PreferredSource,                  config_parse_preferred_src,                     0,                             0
 Route.Table,                            config_parse_route_table,                       0,                             0
 Route.MTUBytes,                         config_parse_route_mtu,                         AF_UNSPEC,                     0
+Route.GatewayOnLink,                    config_parse_gateway_onlink,                    0,                             0
 Route.GatewayOnlink,                    config_parse_gateway_onlink,                    0,                             0
 Route.IPv6Preference,                   config_parse_ipv6_route_preference,             0,                             0
 Route.Protocol,                         config_parse_route_protocol,                    0,                             0
index 6f67f18e645c187066dcc139dcc55cb9a5b73e82..537f0e48eb6adbfc8eb238975036f34fbe6c226a 100644 (file)
@@ -946,7 +946,7 @@ int config_parse_gateway_onlink(
         r = parse_boolean(rvalue);
         if (r < 0) {
                 log_syntax(unit, LOG_ERR, filename, line, r,
-                           "Could not parse gateway onlink \"%s\", ignoring assignment: %m", rvalue);
+                           "Could not parse %s=\"%s\", ignoring assignment: %m", lvalue, rvalue);
                 return 0;
         }
 
index 587327735fead4aee95489c795be59a6df71a33a..d77c6989cddf56980c1fc7252859b3e23a125df7 100644 (file)
@@ -60,6 +60,7 @@ Protocol=
 Table=
 Gateway=
 InitialAdvertisedReceiveWindow=
+GatewayOnLink=
 GatewayOnlink=
 Type=
 InitialCongestionWindow=
index 4d7526f63619d37f626f9270d654ce5c8e34f385..2fdfd51d60d87fcefb3cbfecd795f8e7f15e5e43 100644 (file)
@@ -409,7 +409,7 @@ From=
 FwMark=
 GVRP=
 Gateway=
-GatewayOnlink=
+GatewayOnLink=
 GenericReceiveOffload=
 GenericSegmentationOffload=
 GratuitousARP=
index aa64c255167b4cbb1c2cef8cd5b63a61766f7204..14894c54bfb932884fb654395150f9cd1ba77e1b 100644 (file)
@@ -10,4 +10,4 @@ Scope=link
 
 [Route]
 Gateway=149.10.125.65
-GatewayOnlink=true
+GatewayOnLink=true