]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix log message and man page for HopLimit=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Aug 2023 06:49:49 +0000 (15:49 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Aug 2023 10:10:39 +0000 (12:10 +0200)
Follow-up for 88c0642358398240a54d242e812439fcd0564b05.
Closes #28899.

man/systemd.network.xml
src/network/networkd-route.c

index da4282e5020c8697d90b73a922e54c63cc5785a3..47b7d7b1d1f0c7845fe5039f2f2666fd33d451c3 100644 (file)
@@ -1620,7 +1620,8 @@ allow my_server_t localnet_peer_t:peer recv;</programlisting>
       <varlistentry>
         <term><varname>HopLimit=</varname></term>
         <listitem>
-          <para> Configures per route hop limit. See also <varname>IPv6HopLimit=</varname>.</para>
+          <para>Configures per route hop limit. Takes an integer in the range 1…255. See also
+          <varname>IPv6HopLimit=</varname>.</para>
         </listitem>
       </varlistentry>
 
index 7af697c16d25ec8c7ca38014b83a9bbb7d895a0d..99c9a13539536d9a7a7008fb963c6f153063aa74 100644 (file)
@@ -2573,17 +2573,17 @@ int config_parse_route_hop_limit(
         r = safe_atou32(rvalue, &k);
         if (r < 0) {
                 log_syntax(unit, LOG_WARNING, filename, line, r,
-                           "Could not parse route hop limit %s \"%s\", ignoring assignment: %m", lvalue, rvalue);
+                           "Could not parse per route hop limit, ignoring assignment: %s", rvalue);
                 return 0;
         }
         if (k > 255) {
                 log_syntax(unit, LOG_WARNING, filename, line, 0,
-                           "Specified route hop limit %s \"%s\" is too large, ignoring assignment: %m", lvalue, rvalue);
+                           "Specified per route hop limit \"%s\" is too large, ignoring assignment: %m", rvalue);
                 return 0;
         }
         if (k == 0) {
                 log_syntax(unit, LOG_WARNING, filename, line, 0,
-                           "Invalid route hop limit %s \"%s\", ignoring assignment: %m", lvalue, rvalue);
+                           "Invalid per route hop limit \"%s\", ignoring assignment: %m", rvalue);
                 return 0;
         }