]> git.karo-electronics.de Git - linux-beck.git/commit
ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Mon, 9 Jan 2017 07:45:49 +0000 (10:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 21:34:38 +0000 (16:34 -0500)
commitb007f09072ca8afa118ade333e717ba443e8d807
treec675327e77f5e8b654785cc36825c48595a932c9
parent67c408cfa8862fe7e45b3a1f762f7140e03b7217
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>
net/ipv4/sysctl_net_ipv4.c