diff options
author | Andreas Hofmeister <andi@collax.com> | 2011-10-24 19:13:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-24 19:13:15 -0400 |
commit | 9f56220fad0d13f8b0ebe7592f41fdb49874d143 (patch) | |
tree | 7e5d439d2f53fb86d509d8c9f4994754ca5c3fe2 /net/x25 | |
parent | 48855432047c9de7ea9987349de4c47d48ade8d1 (diff) |
ipv6: Do not use routes from locally generated RAs
When hybrid mode is enabled (accept_ra == 2), the kernel also sees RAs
generated locally. This is useful since it allows the kernel to auto-configure
its own interface addresses.
However, if 'accept_ra_defrtr' and/or 'accept_ra_rtr_pref' are set and the
locally generated RAs announce the default route and/or other route information,
the kernel happily inserts bogus routes with its own address as gateway.
With this patch, adding routes from an RA will be skiped when the RAs source
address matches any local address, just as if 'accept_ra_defrtr' and
'accept_ra_rtr_pref' were set to 0.
Signed-off-by: Andreas Hofmeister <andi@collax.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions