mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 04:09:52 +00:00
[ip6] allow anycast source (#5747)
This commit allows IPv6 anycast as source address given it is not forbidden in standards.
This commit is contained in:
@@ -1075,8 +1075,7 @@ otError Ip6::SendRaw(Message &aMessage)
|
||||
bool freed = false;
|
||||
|
||||
SuccessOrExit(error = header.Init(aMessage));
|
||||
VerifyOrExit(!header.GetSource().IsMulticast() && !Get<Mle::Mle>().IsAnycastLocator(header.GetSource()),
|
||||
error = OT_ERROR_INVALID_SOURCE_ADDRESS);
|
||||
VerifyOrExit(!header.GetSource().IsMulticast(), error = OT_ERROR_INVALID_SOURCE_ADDRESS);
|
||||
|
||||
messageInfo.SetPeerAddr(header.GetSource());
|
||||
messageInfo.SetSockAddr(header.GetDestination());
|
||||
|
||||
Reference in New Issue
Block a user