net: ipv6: allow explicitly choosing optimistic addresses
RFC 4429 ("Optimistic DAD") states that optimistic addresses
should be treated as deprecated addresses. From section 2.1:
Unless noted otherwise, components of the IPv6 protocol stack
should treat addresses in the Optimistic state equivalently to
those in the Deprecated state, indicating that the address is
available for use but should not be used if another suitable
address is available.
Optimistic addresses are indeed avoided when other addresses are
available (i.e. at source address selection time), but they have
not heretofore been available for things like explicit bind() and
sendmsg() with struct in6_pktinfo, etc.
This change makes optimistic addresses treated more like
deprecated addresses than tentative ones.
CRs-fixed: 1009682
Change-Id: I11b2b5fec16d42075fd08d2755dc6dd31c0e0497
Signed-off-by:
Erik Kline <ek@google.com>
Acked-by:
Lorenzo Colitti <lorenzo@google.com>
Acked-by:
Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by:
David S. Miller <davem@davemloft.net>
Git-commit: 8ceb9f4421983a8036855fc2510e3109a799e4c1
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by:
Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Loading
Please sign in to comment