• Maciej Żenczykowski's avatar
    net-tcp: /proc/sys/net/ipv4/tcp_probe_interval is a u32 not int · d4ce5808
    Maciej Żenczykowski authored
    (fix documentation and sysctl access to treat it as such)
    
    Tested:
      # zcat /proc/config.gz | egrep ^CONFIG_HZ
      CONFIG_HZ_1000=y
      CONFIG_HZ=1000
      # echo $[(1<<32)/1000 + 1] | tee /proc/sys/net/ipv4/tcp_probe_interval
      4294968
      tee: /proc/sys/net/ipv4/tcp_probe_interval: Invalid argument
      # echo $[(1<<32)/1000] | tee /proc/sys/net/ipv4/tcp_probe_interval
      4294967
      # echo 0 | tee /proc/sys/net/ipv4/tcp_probe_interval
      # echo -1 | tee /proc/sys/net/ipv4/tcp_probe_interval
      -1
      tee: /proc/sys/net/ipv4/tcp_probe_interval: Invalid argument
    Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d4ce5808
sysctl_net_ipv4.c 31.8 KB