Maciej Żenczykowski cb9e684e89 ipv6 addrconf: remove addrconf_sysctl_hop_limit()
This is an effective no-op in terms of user observable behaviour.

By preventing the overwrite of non-null extra1/extra2 fields
in addrconf_sysctl() we can enable the use of proc_dointvec_minmax().

This allows us to eliminate the constant min/max (1..255) trampoline
function that is addrconf_sysctl_hop_limit().

This is nice because it simplifies the code, and allows future
sysctls with constant min/max limits to also not require trampolines.

We still can't eliminate the trampoline for mtu because it isn't
actually a constant (it depends on other tunables of the device)
and thus requires at-write-time logic to enforce range.

Signed-off-by: Maciej Żenczykowski <maze@google.com>
Acked-by: Erik Kline <ek@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-02 23:48:13 -04:00
..
2016-09-01 14:09:01 -07:00
2015-08-25 13:37:31 -07:00
2015-05-28 11:23:20 +08:00
2016-09-10 23:12:51 -07:00
2016-05-31 14:07:49 -07:00
2016-09-10 23:12:52 -07:00
2016-09-06 12:54:17 -07:00
2016-09-10 23:12:52 -07:00
2016-04-27 22:48:24 -04:00
2016-06-27 15:06:17 -04:00
2016-09-10 23:12:52 -07:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2016-08-23 23:23:50 -07:00
2016-09-21 10:09:14 +02:00
2016-09-21 10:09:14 +02:00