Skip to content

Commit 1c30b17

Browse files
committed
network: rename WireGuard.FwMark -> FirewallMark
For the consistency with FirewallMark= in [RoutingPolicyRule] section.
1 parent 6450ee3 commit 1c30b17

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

man/systemd.netdev.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,9 +1416,9 @@
14161416
</listitem>
14171417
</varlistentry>
14181418
<varlistentry>
1419-
<term><varname>FwMark=</varname></term>
1419+
<term><varname>FirewallMark=</varname></term>
14201420
<listitem>
1421-
<para>Sets a firewall mark on outgoing WireGuard packets from this interface.</para>
1421+
<para>Sets a firewall mark on outgoing WireGuard packets from this interface. Takes a number between 1 and 4294967295.</para>
14221422
</listitem>
14231423
</varlistentry>
14241424
</variablelist>

src/network/netdev/netdev-gperf.gperf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ Bridge.VLANFiltering, config_parse_tristate,
197197
Bridge.STP, config_parse_tristate, 0, offsetof(Bridge, stp)
198198
VRF.TableId, config_parse_uint32, 0, offsetof(Vrf, table) /* deprecated */
199199
VRF.Table, config_parse_uint32, 0, offsetof(Vrf, table)
200-
WireGuard.FwMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark)
200+
WireGuard.FirewallMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark)
201+
WireGuard.FwMark, config_parse_unsigned, 0, offsetof(Wireguard, fwmark) /* deprecated */
201202
WireGuard.ListenPort, config_parse_wireguard_listen_port, 0, offsetof(Wireguard, port)
202203
WireGuard.PrivateKey, config_parse_wireguard_private_key, 0, 0
203204
WireGuard.PrivateKeyFile, config_parse_wireguard_private_key_file, 0, 0

test/fuzz/fuzz-netdev-parser/directives.netdev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ListenPort=
1111
PrivateKey=
1212
PrivateKeyFile=
1313
FwMark=
14+
FirewallMark=
1415
[MACVTAP]
1516
Mode=
1617
[Match]

0 commit comments

Comments
 (0)