1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-24 14:50:17 +03:00

network: doc and code typo fixes (#36422)

This fixes some typos in the documentation, both grammar as well as
incorrect field names.
It also changes the casing of CheckSum to Checksum in L2TP to match
other casings.
This commit is contained in:
Steve Ramage 2025-02-18 09:08:16 -08:00 committed by GitHub
parent fff6dfc75e
commit a4750ae156
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 18 deletions

2
NEWS
View File

@ -5613,7 +5613,7 @@ CHANGES WITH 250:
IP addresses outside of the configured IP pool range for the server.
* CAN support in systemd-networkd gained four new settings Loopback=,
OneShot=, PresumeAck=, ClassicDataLengthCode= for tweaking CAN
OneShot=, PresumeACK=, ClassicDataLengthCode= for tweaking CAN
control modes. It gained a number of further settings for tweaking
CAN timing quanta.

View File

@ -1058,7 +1058,7 @@
<varlistentry>
<term><varname>TunnelId=</varname></term>
<listitem>
<para>Specifies the tunnel identifier. Takes an number in the range 1…4294967295. The value used
<para>Specifies the tunnel identifier. Takes a number in the range 1…4294967295. The value used
must match the <literal>PeerTunnelId=</literal> value being used at the peer. This setting is
compulsory.</para>
@ -1136,7 +1136,7 @@
</listitem>
</varlistentry>
<varlistentry>
<term><varname>UDP6ZeroChecksumTx=</varname></term>
<term><varname>UDP6ChecksumTx=</varname></term>
<listitem>
<para>Takes a boolean. When true, skip UDP checksum calculation for transmitted packets over IPv6.</para>
@ -1144,7 +1144,7 @@
</listitem>
</varlistentry>
<varlistentry>
<term><varname>UDP6ZeroChecksumRx=</varname></term>
<term><varname>UDP6ChecksumRx=</varname></term>
<listitem>
<para>Takes a boolean. When true, allows incoming UDP packets over IPv6 with zero checksum field.</para>
@ -1172,7 +1172,7 @@
<varlistentry>
<term><varname>SessionId=</varname></term>
<listitem>
<para>Specifies the session identifier. Takes an number in the range 1…4294967295. The value used
<para>Specifies the session identifier. Takes a number in the range 1…4294967295. The value used
must match the <literal>SessionId=</literal> value being used at the peer. This setting is
compulsory.</para>
@ -1182,7 +1182,7 @@
<varlistentry>
<term><varname>PeerSessionId=</varname></term>
<listitem>
<para>Specifies the peer session identifier. Takes an number in the range 1…4294967295.
<para>Specifies the peer session identifier. Takes a number in the range 1…4294967295.
The value used must match the <literal>PeerSessionId=</literal> value being used at the peer.
This setting is compulsory.</para>
@ -1717,7 +1717,7 @@
<varlistentry>
<term><varname>ERSPANHardwareId=</varname></term>
<listitem>
<para>Specifies an unique identifier of the ERSPAN v2 engine. Takes an integer in the range 0…63.
<para>Specifies a unique identifier of the ERSPAN v2 engine. Takes an integer in the range 0…63.
Only used when <varname>ERSPANVersion=2</varname>. Defaults to 0.</para>
<xi:include href="version-info.xml" xpointer="v252"/>
@ -2467,7 +2467,7 @@
<para>Takes a boolean. Specifies that duplicate frames (received on inactive ports)
should be dropped when false, or delivered when true. Normally, bonding will drop
duplicate frames (received on inactive ports), which is desirable for
most users. But there are some times it is nice to allow duplicate
most users. But there are some cases where it is nice to allow duplicate
frames to be delivered. The default value is false (drop duplicate frames
received on inactive ports).
</para>
@ -2724,9 +2724,9 @@
</varlistentry>
<varlistentry id='ipoib_umcast'>
<term><varname>IgnoreUserspaceMulticastGroup=</varname></term>
<term><varname>IgnoreUserspaceMulticastGroups=</varname></term>
<listitem>
<para>Takes an boolean value. When true, the kernel ignores multicast groups handled by
<para>Takes a boolean value. When true, the kernel ignores multicast groups handled by
userspace. Defaults to unset, and the kernel's default is used.</para>
<xi:include href="version-info.xml" xpointer="v250"/>

View File

@ -884,7 +884,7 @@ DuplicateAddressDetection=none</programlisting></para>
<term><varname>IPMasquerade=</varname></term>
<listitem>
<para>Configures IP masquerading for the network interface. If enabled, packets forwarded
from the network interface will be appear as coming from the local host. Typically, this should be
from the network interface will appear as coming from the local host. Typically, this should be
enabled on the downstream interface of routers. Takes one of <literal>ipv4</literal>,
<literal>ipv6</literal>, <literal>both</literal>, or <literal>no</literal>. Defaults to
<literal>no</literal>. Note that any positive boolean values such as <literal>yes</literal> or
@ -1359,7 +1359,7 @@ DuplicateAddressDetection=none</programlisting></para>
<citerefentry project='man-pages'><refentrytitle>inet_pton</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
If set to true, then the IPv4 broadcast address will be derived from the
<varname>Address=</varname> setting. If set to false, then the broadcast address will not be
set. Defaults to true, except for wireguard interfaces, where it default to false.</para>
set. Defaults to true, except for wireguard interfaces, where it defaults to false.</para>
<xi:include href="version-info.xml" xpointer="v211"/>
</listitem>
@ -4932,7 +4932,7 @@ ServerAddress=192.168.0.1/24</programlisting>
</listitem>
</varlistentry>
<varlistentry>
<term><varname>PresumeAck=</varname></term>
<term><varname>PresumeACK=</varname></term>
<listitem>
<para>Takes a boolean. When <literal>yes</literal>, the interface will ignore missing CAN
ACKs. When unset, the kernel's default will be used.</para>

View File

@ -113,9 +113,12 @@ L2TP.UDPDestinationPort, config_parse_ip_port,
L2TP.Local, config_parse_l2tp_tunnel_local_address, 0, 0
L2TP.Remote, config_parse_l2tp_tunnel_remote_address, 0, 0
L2TP.EncapsulationType, config_parse_l2tp_encap_type, 0, offsetof(L2tpTunnel, l2tp_encap_type)
L2TP.UDPCheckSum, config_parse_bool, 0, offsetof(L2tpTunnel, udp_csum)
L2TP.UDP6CheckSumRx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_rx)
L2TP.UDP6CheckSumTx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_tx)
L2TP.UDPChecksum, config_parse_bool, 0, offsetof(L2tpTunnel, udp_csum)
L2TP.UDPCheckSum, config_parse_bool, 0, offsetof(L2tpTunnel, udp_csum) /* deprecated */
L2TP.UDP6ChecksumRx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_rx)
L2TP.UDP6CheckSumRx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_rx) /* deprecated */
L2TP.UDP6ChecksumTx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_tx)
L2TP.UDP6CheckSumTx, config_parse_bool, 0, offsetof(L2tpTunnel, udp6_csum_tx) /* deprecated */
L2TPSession.SessionId, config_parse_l2tp_session_id, 0, 0
L2TPSession.PeerSessionId, config_parse_l2tp_session_id, 0, 0
L2TPSession.Layer2SpecificHeader, config_parse_l2tp_session_l2spec, 0, 0

View File

@ -12,8 +12,8 @@ Local=static@test1
Remote=192.168.30.101
EncapsulationType=udp
UDPCheckSum=true
UDP6CheckSumRx=true
UDP6CheckSumTx=true
UDP6ChecksumRx=true
UDP6ChecksumTx=true
[L2TPSession]
SessionId=15