Skip to content
Snippets Groups Projects
Commit 7676bbe0 authored by Joel Scherpelz's avatar Joel Scherpelz Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarJoel Scherpelz <jscherpelz@google.com>
Acked-by: default avatarLorenzo Colitti <lorenzo@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
(cherry picked from commit e953f89b)
Git-commit: e953f89b
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-3.18/commit/



Change-Id: Ia10d87354d3804faa79f8fb6fe2acbe1753efce4
Signed-off-by: default avatarTejaswi Tanikella <tejaswit@codeaurora.org>
parent 4a39dd27
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment