ipv6 addrconf: disallow rtr_solicits < -1
authorMaciej Żenczykowski <maze@google.com>
Fri, 7 Oct 2016 08:00:49 +0000 (01:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Oct 2016 03:43:56 +0000 (23:43 -0400)
commitcb4a4c691e8631089759fc5d1faf8d6ccf581497
treed60f1e4ebf1bcd62e46b6d154aa52ca7a6ca78f2
parent7aa6ec2296614f2da8546bbfe8fca54bbbd8ae12
ipv6 addrconf: disallow rtr_solicits < -1

This disallows setting /proc/sys/net/ipv6/conf/*/router_solicitations
to values below -1.

-1 continues to mean an unlimited number of retransmits.

Note: this depends on 'ipv6 addrconf: remove addrconf_sysctl_hop_limit()'

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c