Lines Matching full:prefix

65 // Prefix methods
67 void Prefix::Set(const uint8_t *aPrefix, uint8_t aLength) in Set()
73 bool Prefix::IsLinkLocal(void) const in IsLinkLocal()
78 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast()
80 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal()
82 bool Prefix::IsEqual(const uint8_t *aPrefixBytes, uint8_t aPrefixLength) const in IsEqual()
87 bool Prefix::ContainsPrefix(const Prefix &aSubPrefix) const in ContainsPrefix()
93 bool Prefix::ContainsPrefix(const NetworkPrefix &aSubPrefix) const in ContainsPrefix()
99 void Prefix::Tidy(void) in Tidy()
115 bool Prefix::operator==(const Prefix &aOther) const in operator ==()
120 bool Prefix::operator<(const Prefix &aOther) const in operator <()
141 uint8_t Prefix::MatchLength(const uint8_t *aPrefixA, const uint8_t *aPrefixB, uint8_t aMaxSize) in MatchLength()
170 bool Prefix::IsValidNat64PrefixLength(uint8_t aLength) in IsValidNat64PrefixLength()
176 Error Prefix::FromString(const char *aString) in FromString()
201 Prefix::InfoString Prefix::ToString(void) const in ToString()
210 void Prefix::ToString(char *aBuffer, uint16_t aSize) const in ToString()
217 void Prefix::ToString(StringWriter &aWriter) const in ToString()
220 Prefix tidyPrefix = *this; in ToString()
315 void InterfaceIdentifier::ApplyPrefix(const Prefix &aPrefix) in ApplyPrefix()
388 bool Address::MatchesPrefix(const Prefix &aPrefix) const in MatchesPrefix()
390 …return Prefix::MatchLength(mFields.m8, aPrefix.GetBytes(), aPrefix.GetBytesSize()) >= aPrefix.GetL… in MatchesPrefix()
395 …return Prefix::MatchLength(mFields.m8, aPrefix, Prefix::SizeForLength(aPrefixLength)) >= aPrefixLe… in MatchesPrefix()
400 void Address::SetPrefix(const Prefix &aPrefix) { CopyBits(mFields.m8, aPrefix.GetBytes(), aPrefix.G… in SetPrefix()
464 return Prefix::MatchLength(mFields.m8, aOther.mFields.m8, sizeof(Address)); in PrefixMatch()
492 void Address::SynthesizeFromIp4Address(const Prefix &aPrefix, const Ip4::Address &aIp4Address) in SynthesizeFromIp4Address()
494 // The prefix length must be 32, 40, 48, 56, 64, 96. IPv4 bytes are added in SynthesizeFromIp4Address()
495 // after the prefix, skipping over the bits 64 to 71 (byte at `kSkipIndex`) in SynthesizeFromIp4Address()
501 // |32| prefix |v4(32) | u | suffix | in SynthesizeFromIp4Address()
503 // |40| prefix |v4(24) | u |(8)| suffix | in SynthesizeFromIp4Address()
505 // |48| prefix |v4(16) | u | (16) | suffix | in SynthesizeFromIp4Address()
507 // |56| prefix |(8)| u | v4(24) | suffix | in SynthesizeFromIp4Address()
509 // |64| prefix | u | v4(32) | suffix | in SynthesizeFromIp4Address()
511 // |96| prefix | v4(32) | in SynthesizeFromIp4Address()