-
- Downloads
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>
Showing
- Documentation/networking/ip-sysctl.txt 11 additions, 2 deletionsDocumentation/networking/ip-sysctl.txt
- include/linux/ipv6.h 1 addition, 0 deletionsinclude/linux/ipv6.h
- include/uapi/linux/ipv6.h 10 additions, 0 deletionsinclude/uapi/linux/ipv6.h
- include/uapi/linux/sysctl.h 1 addition, 0 deletionsinclude/uapi/linux/sysctl.h
- net/ipv6/addrconf.c 10 additions, 0 deletionsnet/ipv6/addrconf.c
- net/ipv6/ndisc.c 2 additions, 0 deletionsnet/ipv6/ndisc.c
Loading
Please register or sign in to comment