Home
last modified time | relevance | path

Searched refs:mPrefix (Results 1 – 25 of 36) sorted by relevance

12

/openthread-3.5.0/src/core/thread/
Dnetwork_data_types.hpp178 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
186 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
238 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
246 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
254 void SetPrefix(const Ip6::Prefix &aPrefix) { mPrefix = aPrefix; } in SetPrefix()
295 const Ip6::Prefix &GetPrefix(void) const { return AsCoreType(&mPrefix); } in GetPrefix()
298 Ip6::Prefix &GetPrefix(void) { return AsCoreType(&mPrefix); } in GetPrefix()
Dnetwork_data_publisher.cpp453 string.Append("%s", prefixEntry.mPrefix.ToString().AsCString()); in ToString()
826 VerifyOrExit((mType != aNewType) || (mFlags != aNewFlags) || (mPrefix != aPrefix)); in Publish()
832 mPrefix = aPrefix; in Publish()
841 mPrefix = aPrefix; in Publish()
852 LogInfo("Unpublishing %s", mPrefix.ToString().AsCString()); in Unpublish()
882 Get<Publisher>().NotifyPrefixEntryChange(kEventEntryAdded, mPrefix); in Add()
892 config.mPrefix = mPrefix; in AddOnMeshPrefix()
903 config.mPrefix = mPrefix; in AddExternalRoute()
919 IgnoreError(Get<Local>().RemoveOnMeshPrefix(mPrefix)); in Remove()
923 IgnoreError(Get<Local>().RemoveHasRoutePrefix(mPrefix)); in Remove()
[all …]
Dnetwork_data_leader.cpp143 aContext.mPrefix.SetLength(0); in GetContext()
159 if (prefixTlv->GetPrefixLength() > aContext.mPrefix.GetLength()) in GetContext()
161 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext()
168 return (aContext.mPrefix.GetLength() > 0) ? kErrorNone : kErrorNotFound; in GetContext()
192 prefixTlv->CopyPrefixTo(aContext.mPrefix); in GetContext()
205 aContext.mPrefix.Set(Get<Mle::MleRouter>().GetMeshLocalPrefix()); in GetContextForMeshLocalPrefix()
Dlowpan.cpp93 aIid.ApplyPrefix(aContext.mPrefix); in ComputeIid()
193 if (multicastContext.mPrefix.GetLength() == aIpAddr.mFields.m8[3] && in CompressMulticast()
194 memcmp(multicastContext.mPrefix.GetBytes(), aIpAddr.mFields.m8 + 4, 8) == 0) in CompressMulticast()
730 aIp6Header.GetSource().SetPrefix(srcContext.mPrefix); in DecompressBaseHeader()
770 aIp6Header.GetDestination().SetPrefix(dstContext.mPrefix); in DecompressBaseHeader()
810 aIp6Header.GetDestination().mFields.m8[3] = dstContext.mPrefix.GetLength(); in DecompressBaseHeader()
811 … memcpy(aIp6Header.GetDestination().mFields.m8 + 4, dstContext.mPrefix.GetBytes(), 8); in DecompressBaseHeader()
Dnetwork_data_publisher.hpp465 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
497 Ip6::Prefix mPrefix; member in ot::NetworkData::Publisher::PrefixEntry
/openthread-3.5.0/tests/unit/
Dtest_network_data.cpp48 for (uint8_t b : aConfig.mPrefix.mPrefix.mFields.m8) in PrintExternalRouteConfig()
53 …, length:%d, rloc16:%04x, preference:%d, nat64:%d, stable:%d, nexthop:%d", aConfig.mPrefix.mLength, in PrintExternalRouteConfig()
61 for (uint8_t b : aConfig.mPrefix.mPrefix.mFields.m8) in PrintOnMeshPrefixConfig()
66 …printf(", length:%d, rloc16:%04x, preference:%d, stable:%d, def-route:%d", aConfig.mPrefix.mLength… in PrintOnMeshPrefixConfig()
73 return (memcmp(aConfig1.mPrefix.mPrefix.mFields.m8, aConfig2.mPrefix.mPrefix.mFields.m8, in CompareExternalRouteConfig()
74 sizeof(aConfig1.mPrefix.mPrefix)) == 0) && in CompareExternalRouteConfig()
75 …(aConfig1.mPrefix.mLength == aConfig2.mPrefix.mLength) && (aConfig1.mRloc16 == aConfig2.mRloc16) && in CompareExternalRouteConfig()
82 return (memcmp(aConfig1.mPrefix.mPrefix.mFields.m8, aConfig2.mPrefix.mPrefix.mFields.m8, in CompareOnMeshPrefixConfig()
83 sizeof(aConfig1.mPrefix.mPrefix)) == 0) && in CompareOnMeshPrefixConfig()
84 …(aConfig1.mPrefix.mLength == aConfig2.mPrefix.mLength) && (aConfig1.mRloc16 == aConfig2.mRloc16) && in CompareOnMeshPrefixConfig()
Dtest_routing_manager.cpp138 : mPrefix(aPrefix) in DeprecatingPrefix()
143 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
145 Ip6::Prefix mPrefix; // Old on-link prefix being deprecated. member
169 , mPrefix(aPrefix) in RioPrefix()
175 Ip6::Prefix mPrefix; // The RIO prefix. member
442 if (prefix == rioPrefix.mPrefix) in ValidateRouterAdvert()
583 SuccessOrQuit(AsCoreType(&prefix.mPrefix).FromString(aString)); in PrefixFromString()
659 VerifyOrQuit(routeConfig.mPrefix.mLength == 0); in VerifyExternalRouteInNetData()
667 VerifyOrQuit(routeConfig.mPrefix.mLength == 7); in VerifyExternalRouteInNetData()
668 VerifyOrQuit(routeConfig.mPrefix.mPrefix.mFields.m8[0] == 0xfc); in VerifyExternalRouteInNetData()
[all …]
Dtest_ip_address.cpp517 prefix2.mPrefix.mFields.m8[index] ^= mask; in TestIp6Prefix()
752 VerifyOrQuit(memcmp(answer.mPrefix.mFields.m8, prefix.mPrefix.mFields.m8, in TestIp6PrefixTidy()
753 sizeof(answer.mPrefix.mFields.m8)) == 0); in TestIp6PrefixTidy()
765 const char *mPrefix; // NAT64 prefix in TestIp4Ip6Translation() member
796 SuccessOrQuit(address.FromString(testCase.mPrefix)); in TestIp4Ip6Translation()
/openthread-3.5.0/src/core/net/
Ddhcp6_server.hpp141 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
149 Ip6::Prefix &GetPrefix(void) { return mPrefix; } in GetPrefix()
159 return static_cast<const Ip6::Address &>(mPrefix.mPrefix); in GetPrefixAsAddress()
172 mPrefix = aPrefix; in Set()
180 Ip6::Prefix mPrefix; member in ot::Dhcp6::Server::PrefixAgent
Dnd_agent.cpp71 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
100 … error = Get<NetworkData::Leader>().GetContext(AsCoreType(&config.mPrefix.mPrefix), lowpanContext); in UpdateService()
Dip6_address.cpp69 memcpy(mPrefix.mFields.m8, aPrefix, SizeForLength(aLength)); in Set()
75 return (mLength >= 10) && ((mPrefix.mFields.m16[0] & HostSwap16(0xffc0)) == HostSwap16(0xfe80)); 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()
106 mPrefix.mFields.m8[byteLength - 1] &= lastByteBitMask; in Tidy()
109 for (uint16_t i = byteLength; i < GetArrayLength(mPrefix.mFields.m8); i++) in Tidy()
111 mPrefix.mFields.m8[i] = 0; in Tidy()
189 SuccessOrExit(AsCoreType(&mPrefix).ParseFrom(aString, kSlashChar)); in FromString()
223 AsCoreType(&tidyPrefix.mPrefix).AppendHexWords(aWriter, sizeInUint16); in ToString()
Dnd6.cpp96 mPrefix = AsCoreType(&aPrefix.mPrefix); in SetPrefix()
99 void PrefixInfoOption::GetPrefix(Prefix &aPrefix) const { aPrefix.Set(mPrefix.GetBytes(), mPrefixLe… in GetPrefix()
Dip6_address.hpp116 const uint8_t *GetBytes(void) const { return mPrefix.mFields.m8; } in GetBytes()
124 uint16_t GetSubnetId(void) const { return HostSwap16(mPrefix.mFields.m16[3]); } in GetSubnetId()
165 void SetSubnetId(uint16_t aSubnetId) { mPrefix.mFields.m16[3] = HostSwap16(aSubnetId); } in SetSubnetId()
Ddhcp6_client.cpp144 idAssociation->mNetifAddress.mAddress = config.mPrefix.mPrefix; in UpdateAddresses()
145 idAssociation->mNetifAddress.mPrefixLength = config.mPrefix.mLength; in UpdateAddresses()
/openthread-3.5.0/src/core/border_router/
Drouting_manager.cpp831 return aBrUlaPrefix.mLength == kBrUlaPrefixLength && aBrUlaPrefix.mPrefix.mFields.m8[0] == 0xfd; in IsValidBrUlaPrefix()
1765 aEntry.mPrefix = iterator.GetEntry()->GetPrefix(); in GetNextEntry()
1798 mPrefix.Clear(); in SetFrom()
1807 aPio.GetPrefix(mPrefix); in SetFrom()
1816 aRio.GetPrefix(mPrefix); in SetFrom()
1825 return (mType == aOther.mType) && (mPrefix == aOther.mPrefix); in operator ==()
1830 return (mType == aMatcher.mType) && (mPrefix == aMatcher.mPrefix); in Matches()
1835 …return (mType == aChecker.mType) && (mPrefix.IsUniqueLocal() == (aChecker.mMode == Checker::kIsUla… in Matches()
1928 mPrefix = aOnMeshPrefixConfig.GetPrefix(); in SetFrom()
1935 mPrefix = aOmrPrefix.GetPrefix(); in SetFrom()
[all …]
Drouting_manager.hpp648 : mPrefix(aPrefix) in Matcher()
653 const Ip6::Prefix &mPrefix; member
692 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
717 Ip6::Prefix mPrefix; member in ot::BorderRouter::RoutingManager::DiscoveredPrefixTable::Entry
803 bool IsEmpty(void) const { return (mPrefix.GetLength() == 0); } in IsEmpty()
804 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
809 Ip6::Prefix mPrefix; member in ot::BorderRouter::RoutingManager::OmrPrefix
896 bool Matches(const Ip6::Prefix &aPrefix) const { return mPrefix == aPrefix; } in Matches()
898 Ip6::Prefix mPrefix; member
1106 bool HasPrefix(void) const { return IsValidOmrPrefix(mPrefix.GetPrefix()); } in HasPrefix()
[all …]
/openthread-3.5.0/include/openthread/
Dnetdata.h60 otIp6Prefix mPrefix; ///< The IPv6 prefix. member
82 otIp6Prefix mPrefix; ///< The associated IPv6 prefix. member
91 otIp6Prefix mPrefix; ///< The IPv6 prefix. member
Dborder_routing.h101 otIp6Prefix mPrefix; ///< The discovered IPv6 prefix. member
Dhistory_tracker.h240 otBorderRouterConfig mPrefix; ///< The on mesh prefix entry. member
/openthread-3.5.0/src/posix/platform/
Dfirewall.cpp103 otIp6PrefixToString(&config.mPrefix, prefixBuf, sizeof(prefixBuf)); in UpdateIpSets()
106 memcpy(prefix.mPrefix.mFields.m8, otThreadGetMeshLocalPrefix(aInstance)->m8, in UpdateIpSets()
116 otIp6PrefixToString(&config.mPrefix, prefixBuf, sizeof(prefixBuf)); in UpdateIpSets()
Dnetif.cpp688 return AddRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength, aPriority); in AddRoute()
693 return DeleteRoute(aPrefix.mPrefix.mFields.m8, aPrefix.mLength); in DeleteRoute()
758 if (HasAddedOmrRoute(config.mPrefix)) in UpdateOmrRoutes()
763 otIp6PrefixToString(&config.mPrefix, prefixString, sizeof(prefixString)); in UpdateOmrRoutes()
764 if ((error = AddOmrRoute(config.mPrefix)) != OT_ERROR_NONE) in UpdateOmrRoutes()
771 sAddedOmrRoutes[sAddedOmrRoutesNum++] = config.mPrefix; in UpdateOmrRoutes()
798 if (otIp6ArePrefixesEqual(&config.mPrefix, &aExternalRoute)) in HasExternalRouteInNetData()
853 if (config.mRloc16 == otThreadGetRloc16(aInstance) || HasAddedExternalRoute(config.mPrefix)) in UpdateExternalRoutes()
860 otIp6PrefixToString(&config.mPrefix, prefixString, sizeof(prefixString)); in UpdateExternalRoutes()
861 if ((error = AddExternalRoute(config.mPrefix)) != OT_ERROR_NONE) in UpdateExternalRoutes()
[all …]
/openthread-3.5.0/src/cli/
Dcli_history.cpp676 otIp6PrefixToString(&info->mPrefix.mPrefix, prefixString, sizeof(prefixString)); in Process()
677 NetworkData::PrefixFlagsToString(info->mPrefix, flagsString); in Process()
682 … Interpreter::PreferenceToString(info->mPrefix.mPreference), info->mPrefix.mRloc16); in Process()
726 otIp6PrefixToString(&info->mRoute.mPrefix, prefixString, sizeof(prefixString)); in Process()
Dcli_network_data.cpp111 OutputIp6Prefix(aConfig.mPrefix); in OutputPrefix()
149 OutputIp6Prefix(aConfig.mPrefix); in OutputRoute()
657 OutputIp6Prefix(info.mPrefix); in OutputLowpanContexts()
/openthread-3.5.0/src/core/common/
Dsettings.hpp615 const Ip6::Prefix &GetPrefix(void) const { return mPrefix; } in GetPrefix()
623 void SetPrefix(const Ip6::Prefix &aPrefix) { mPrefix = aPrefix; } in SetPrefix()
644 Ip6::Prefix mPrefix; member in ot::SettingsBase::BrOnLinkPrefix
/openthread-3.5.0/src/ncp/
Dncp_base_mtd.cpp950 SuccessOrExit(error = mEncoder.WriteIp6Address(borderRouterConfig.mPrefix.mPrefix)); in HandlePropertyGet()
951 SuccessOrExit(error = mEncoder.WriteUint8(borderRouterConfig.mPrefix.mLength)); in HandlePropertyGet()
970 SuccessOrExit(error = mEncoder.WriteIp6Address(borderRouterConfig.mPrefix.mPrefix)); in HandlePropertyGet()
971 SuccessOrExit(error = mEncoder.WriteUint8(borderRouterConfig.mPrefix.mLength)); in HandlePropertyGet()
1002 SuccessOrExit(error = mDecoder.ReadIp6Address(borderRouterConfig.mPrefix.mPrefix)); in HandlePropertyInsert()
1007 borderRouterConfig.mPrefix.mLength = prefixLength; in HandlePropertyInsert()
1043 SuccessOrExit(error = mDecoder.ReadIp6Address(ip6Prefix.mPrefix)); in HandlePropertyRemove()
2137 SuccessOrExit(error = mEncoder.WriteIp6Address(routeConfig.mPrefix.mPrefix)); in HandlePropertyGet()
2138 SuccessOrExit(error = mEncoder.WriteUint8(routeConfig.mPrefix.mLength)); in HandlePropertyGet()
2156 SuccessOrExit(error = mEncoder.WriteIp6Address(routeConfig.mPrefix.mPrefix)); in HandlePropertyGet()
[all …]

12