diff options
author | Erik Kline <ek@google.com> | 2015-02-04 20:01:23 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-05 15:37:41 -0800 |
commit | c58da4c659803ac12eca5275c8a7064222adb4c7 (patch) | |
tree | 2be9074469ec18c9b99ba52065fe0b69d2bf3789 /net/core/pktgen.c | |
parent | 233c96fc077d310772375d47522fb444ff546905 (diff) |
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.
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>
Diffstat (limited to 'net/core/pktgen.c')
0 files changed, 0 insertions, 0 deletions