Lines Matching refs:aPrefix
54 void Prefix::Set(const uint8_t *aPrefix, uint8_t aLength) in Set() argument
56 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set()
303 void InterfaceIdentifier::ApplyPrefix(const Prefix &aPrefix) in ApplyPrefix() argument
305 if (aPrefix.GetLength() > NetworkPrefix::kLength) in ApplyPrefix()
307 Address::CopyBits(mFields.m8, aPrefix.GetBytes() + NetworkPrefix::kSize, in ApplyPrefix()
308 aPrefix.GetLength() - NetworkPrefix::kLength); in ApplyPrefix()
394 bool Address::MatchesPrefix(const Prefix &aPrefix) const in MatchesPrefix()
396 …return Prefix::MatchLength(mFields.m8, aPrefix.GetBytes(), aPrefix.GetBytesSize()) >= aPrefix.GetL… in MatchesPrefix()
399 bool Address::MatchesPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) const in MatchesPrefix() argument
401 …return Prefix::MatchLength(mFields.m8, aPrefix, Prefix::SizeForLength(aPrefixLength)) >= aPrefixLe… in MatchesPrefix()
406 void Address::SetPrefix(const Prefix &aPrefix) { CopyBits(mFields.m8, aPrefix.GetBytes(), aPrefix.G… in SetPrefix() argument
432 void Address::SetMulticastNetworkPrefix(const uint8_t *aPrefix, uint8_t aPrefixLength) in SetMulticastNetworkPrefix() argument
434 CopyBits(&mFields.m8[kMulticastNetworkPrefixOffset], aPrefix, aPrefixLength); in SetMulticastNetworkPrefix()
498 void Address::SynthesizeFromIp4Address(const Prefix &aPrefix, const Ip4::Address &aIp4Address) in SynthesizeFromIp4Address() argument
524 OT_ASSERT(aPrefix.IsValidNat64()); in SynthesizeFromIp4Address()
527 SetPrefix(aPrefix); in SynthesizeFromIp4Address()
529 ip6Index = aPrefix.GetLength() / kBitsPerByte; in SynthesizeFromIp4Address()