diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-30 10:55:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 10:55:18 +0200 |
commit | 24d86fdb2f0db5bdd88b24d0a4f0f8a43a88d41f (patch) | |
tree | 8ef264cb6250065dd366b55a18e7b7a4f89d2c8b /src | |
parent | resolved: turn off that a search domain is derived from the host's fqdn (diff) | |
parent | man: update InitialCongestionWindow= and InitialAdvertisedReceiveWindow= (diff) | |
download | systemd-24d86fdb2f0db5bdd88b24d0a4f0f8a43a88d41f.tar.xz systemd-24d86fdb2f0db5bdd88b24d0a4f0f8a43a88d41f.zip |
Merge pull request #17087 from yuwata/man-initial-congestion-window
man: update InitialCongestionWindow= and InitialAdvertisedReceiveWindow=
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index b82c4e7f79..2610b24c82 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -1465,7 +1465,7 @@ int config_parse_tcp_window( _cleanup_(route_free_or_set_invalidp) Route *n = NULL; Network *network = userdata; - uint64_t k; + uint32_t k; int r; assert(filename); @@ -1483,13 +1483,13 @@ int config_parse_tcp_window( return 0; } - r = parse_size(rvalue, 1024, &k); + r = safe_atou32(rvalue, &k); if (r < 0) { log_syntax(unit, LOG_WARNING, filename, line, r, "Could not parse TCP %s \"%s\", ignoring assignment: %m", lvalue, rvalue); return 0; } - if (k > UINT32_MAX) { + if (k >= 1024) { log_syntax(unit, LOG_WARNING, filename, line, 0, "Specified TCP %s \"%s\" is too large, ignoring assignment: %m", lvalue, rvalue); return 0; |