History

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).

Joel Scherpelz committed 9 years ago

Commit bbea1241 parent 0e4c9f16 files · +26 −2Browse files

Showing the changes to include/uapi/linux (2 of 6 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/ipv6.h +1 −0
  2. include/uapi/linux/sysctl.h +1 −0
include/uapi/linux/ipv6.h+1−0
@@ -184,6 +184,7 @@ enum { · 183 unmodified lines
184184 DEVCONF_ENHANCED_DAD,
185185 DEVCONF_ADDR_GEN_MODE,
186186 DEVCONF_DISABLE_POLICY,
187+ DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
187188 DEVCONF_MAX
188189 };
189190
include/uapi/linux/sysctl.h+1−0
@@ -568,6 +568,7 @@ enum { · 567 unmodified lines
568568 NET_IPV6_PROXY_NDP=23,
569569 NET_IPV6_ACCEPT_SOURCE_ROUTE=25,
570570 NET_IPV6_ACCEPT_RA_FROM_LOCAL=26,
571+ NET_IPV6_ACCEPT_RA_RT_INFO_MIN_PLEN=27,
571572 __NET_IPV6_MAX
572573 };
573574