mirror of
https://github.com/espressif/openthread.git
synced 2026-08-02 17:17:45 +00:00
[mac] add reserved value to source address parsing (#8326)
Fails packet parsing if the reserved value is found in the source addressing field instead of marking the address as "none".
This commit is contained in:
@@ -378,9 +378,14 @@ Error Frame::GetSrcAddr(Address &aAddress) const
|
||||
aAddress.SetExtended(&mPsdu[index], ExtAddress::kReverseByteOrder);
|
||||
break;
|
||||
|
||||
default:
|
||||
case kFcfSrcAddrNone:
|
||||
aAddress.SetNone();
|
||||
break;
|
||||
|
||||
default:
|
||||
// reserved value
|
||||
error = kErrorParse;
|
||||
break;
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user