net: ipv6: Add sysctl for minimum prefix len acceptable in RIOs.
authorJoel Scherpelz <jscherpelz@google.com>
Wed, 22 Mar 2017 09:19:04 +0000 (18:19 +0900)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commitf2a4a926f814066843d083bc3555cc1c86c03b3b
tree4ffba079c48db259dac973d2b48ee3f391f4cf81
parent6b3788fb9405844bb67004bc6aa0a27073903eff
net: ipv6: Add sysctl for minimum prefix len acceptable in RIOs.

This commit adds a new sysctl accept_ra_rt_info_min_plen that
defines the minimum acceptable prefix length of Route Information
Options. The new sysctl is intended to be used together with
accept_ra_rt_info_max_plen to configure a range of acceptable
prefix lengths. It is useful to prevent misconfigurations from
unintentionally blackholing too much of the IPv6 address space
(e.g., home routers announcing RIOs for fc00::/7, which is
incorrect).

[backport of net-next bbea124bc99df968011e76eba105fe964a4eceab]
Bug: 33333670
Test: net_test passes

Signed-off-by: Joel Scherpelz <jscherpelz@google.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
include/linux/ipv6.h
include/uapi/linux/ipv6.h
include/uapi/linux/sysctl.h
net/ipv6/addrconf.c
net/ipv6/ndisc.c