diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2015-09-14 19:17:25 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2015-09-14 19:17:25 +0000 |
commit | 75d72d4482b6729c83680fd68ef0427dc53a9ae2 (patch) | |
tree | 1dd27897caf8de58b08d88b9a3c45b48fa10490c /usr.sbin/pw | |
parent | da6ab8d9929a602b6831460dd1200e3b0dde6f79 (diff) | |
download | FreeBSD-src-75d72d4482b6729c83680fd68ef0427dc53a9ae2.zip FreeBSD-src-75d72d4482b6729c83680fd68ef0427dc53a9ae2.tar.gz |
Fix the handling of IPv6 On-Link Redirects.
On receipt of a redirect message, install an interface route for the
redirected destination. On removal of the corresponding Neighbor Cache
entry, remove the interface route.
This requires changes in rtredirect_fib() to cope with an AF_LINK
address for the gateway and with the absence of RTF_GATEWAY.
This fixes the "Redirected On-Link" test cases in the Tahi IPv6 Ready Logo
Phase 2 test suite.
Unrelated to the above, fix a recursion on the radix node head lock
triggered by the Tahi Redirected to Alternate Router test cases.
When I first wrote this patch in October 2012, all Section 2
(Neighbor Discovery) test cases passed on 10-CURRENT, 9-STABLE,
and 8-STABLE. cem@ recently rebased the 10.x patch onto head and reported
that it passes Tahi. (Thanks!)
These other test cases also passed in 2012:
* the RTF_MODIFIED case, with IPv4 and IPv6 (using a
RTF_HOST|RTF_GATEWAY route for the destination)
* the redirected-to-self case, with IPv4 and IPv6
* a valid IPv4 redirect
All testing in 2012 was done with WITNESS and INVARIANTS.
Tested by: EMC / Isilon Storage Division via Conrad Meyer (cem) in 2015,
Mark Kelley <mark_kelley@dell.com> in 2012,
TC Telkamp <terence_telkamp@dell.com> in 2012
PR: 152791
Reviewed by: melifaro (current rev), bz (earlier rev)
Approved by: kib (mentor)
MFC after: 1 month
Relnotes: yes
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D3602
Diffstat (limited to 'usr.sbin/pw')
0 files changed, 0 insertions, 0 deletions