1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

network: rename Protocol= in [RoutingPolicyRule] to IPProtocol=

This commit is contained in:
Yu Watanabe 2018-11-29 16:42:39 +01:00
parent dca2309108
commit 97f9df9e30
7 changed files with 8 additions and 8 deletions

View File

@ -1007,9 +1007,9 @@
</listitem>
</varlistentry>
<varlistentry>
<term><varname>Protocol=</varname></term>
<term><varname>IPProtocol=</varname></term>
<listitem>
<para>Specifies the protocol to match in forwarding information base (FIB) rules. Accepted values are tcp, udp and sctp.
<para>Specifies the IP protocol to match in forwarding information base (FIB) rules. Accepted values are <literal>tcp</literal>, <literal>udp</literal> and <literal>sctp</literal>.
Defaults to unset.</para>
</listitem>
</varlistentry>

View File

@ -101,7 +101,7 @@ RoutingPolicyRule.From, config_parse_routing_policy_rule_prefix,
RoutingPolicyRule.To, config_parse_routing_policy_rule_prefix, 0, 0
RoutingPolicyRule.IncomingInterface, config_parse_routing_policy_rule_device, 0, 0
RoutingPolicyRule.OutgoingInterface, config_parse_routing_policy_rule_device, 0, 0
RoutingPolicyRule.Protocol, config_parse_routing_policy_rule_protocol, 0, 0
RoutingPolicyRule.IPProtocol, config_parse_routing_policy_rule_ip_protocol, 0, 0
RoutingPolicyRule.SourcePort, config_parse_routing_policy_rule_port_range, 0, 0
RoutingPolicyRule.DestinationPort, config_parse_routing_policy_rule_port_range, 0, 0
Route.Gateway, config_parse_gateway, 0, 0

View File

@ -932,7 +932,7 @@ int config_parse_routing_policy_rule_port_range(
return 0;
}
int config_parse_routing_policy_rule_protocol(
int config_parse_routing_policy_rule_ip_protocol(
const char *unit,
const char *filename,
unsigned line,

View File

@ -79,4 +79,4 @@ CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_prefix);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_priority);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_device);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_port_range);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_protocol);
CONFIG_PARSER_PROTOTYPE(config_parse_routing_policy_rule_ip_protocol);

View File

@ -8,4 +8,4 @@ From= 192.168.100.18
Priority=111
SourcePort = 1123-1150
DestinationPort = 3224-3290
Protocol = tcp
IPProtocol = tcp

View File

@ -152,7 +152,7 @@ Priority=
FirewallMark=
SourcePort=
DestinationPort=
Protocol=
IPProtocol=
[IPv6PrefixDelegation]
RouterPreference=
DNSLifetimeSec=

View File

@ -8,4 +8,4 @@ From= 192.168.100.18
Priority=111
SourcePort = 1123-1150
DestinationPort = 3224-3290
Protocol = tcp
IPProtocol = tcp