1
0
mirror of https://github.com/systemd/systemd.git synced 2025-12-04 20:25:45 +03:00

network: rename GatewayOnlink= to GatewayOnLink=

But still GatewayOnlink= is supported for backward compatibility.
This commit is contained in:
Yu Watanabe
2019-02-27 17:43:08 +09:00
parent dc16327c48
commit 9cb8c55934
6 changed files with 6 additions and 4 deletions

View File

@@ -1081,7 +1081,7 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>GatewayOnlink=</varname></term> <term><varname>GatewayOnLink=</varname></term>
<listitem> <listitem>
<para>Takes a boolean. If set to true, the kernel does not have <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 to check if the gateway is reachable directly by the current machine (i.e., the kernel does

View File

@@ -117,6 +117,7 @@ Route.Scope, config_parse_route_scope,
Route.PreferredSource, config_parse_preferred_src, 0, 0 Route.PreferredSource, config_parse_preferred_src, 0, 0
Route.Table, config_parse_route_table, 0, 0 Route.Table, config_parse_route_table, 0, 0
Route.MTUBytes, config_parse_route_mtu, AF_UNSPEC, 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.GatewayOnlink, config_parse_gateway_onlink, 0, 0
Route.IPv6Preference, config_parse_ipv6_route_preference, 0, 0 Route.IPv6Preference, config_parse_ipv6_route_preference, 0, 0
Route.Protocol, config_parse_route_protocol, 0, 0 Route.Protocol, config_parse_route_protocol, 0, 0

View File

@@ -946,7 +946,7 @@ int config_parse_gateway_onlink(
r = parse_boolean(rvalue); r = parse_boolean(rvalue);
if (r < 0) { if (r < 0) {
log_syntax(unit, LOG_ERR, filename, line, r, 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; return 0;
} }

View File

@@ -60,6 +60,7 @@ Protocol=
Table= Table=
Gateway= Gateway=
InitialAdvertisedReceiveWindow= InitialAdvertisedReceiveWindow=
GatewayOnLink=
GatewayOnlink= GatewayOnlink=
Type= Type=
InitialCongestionWindow= InitialCongestionWindow=

View File

@@ -409,7 +409,7 @@ From=
FwMark= FwMark=
GVRP= GVRP=
Gateway= Gateway=
GatewayOnlink= GatewayOnLink=
GenericReceiveOffload= GenericReceiveOffload=
GenericSegmentationOffload= GenericSegmentationOffload=
GratuitousARP= GratuitousARP=

View File

@@ -10,4 +10,4 @@ Scope=link
[Route] [Route]
Gateway=149.10.125.65 Gateway=149.10.125.65
GatewayOnlink=true GatewayOnLink=true