Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int

> cat /proc/sys/net/ipv4/tcp_notsent_lowat
-1
> echo 4294967295 > /proc/sys/net/ipv4/tcp_notsent_lowat
-bash: echo: write error: Invalid argument
> echo -2147483648 > /proc/sys/net/ipv4/tcp_notsent_lowat
> cat /proc/sys/net/ipv4/tcp_notsent_lowat
-2147483648

but in documentation we have "tcp_notsent_lowat - UNSIGNED INTEGER"

v2: simplify to just proc_douintvec
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Pavel Tikhomirov and committed by
David S. Miller
b007f090 67c408cf

+1 -1
+1 -1
net/ipv4/sysctl_net_ipv4.c
··· 951 951 .data = &init_net.ipv4.sysctl_tcp_notsent_lowat, 952 952 .maxlen = sizeof(unsigned int), 953 953 .mode = 0644, 954 - .proc_handler = proc_dointvec, 954 + .proc_handler = proc_douintvec, 955 955 }, 956 956 { 957 957 .procname = "tcp_tw_reuse",