Home
last modified time | relevance | path

Searched refs:BorderRouterEntry (Results 1 – 9 of 9) sorted by relevance

/openthread-3.6.0/src/core/thread/
Dnetwork_data_types.cpp87 flags |= BorderRouterEntry::kPreferredFlag; in ConvertToTlvFlags()
92 flags |= BorderRouterEntry::kSlaacFlag; in ConvertToTlvFlags()
97 flags |= BorderRouterEntry::kDhcpFlag; in ConvertToTlvFlags()
102 flags |= BorderRouterEntry::kConfigureFlag; in ConvertToTlvFlags()
107 flags |= BorderRouterEntry::kDefaultRouteFlag; in ConvertToTlvFlags()
112 flags |= BorderRouterEntry::kOnMeshFlag; in ConvertToTlvFlags()
117 flags |= BorderRouterEntry::kNdDnsFlag; in ConvertToTlvFlags()
123 flags |= BorderRouterEntry::kDpFlag; in ConvertToTlvFlags()
127 …flags |= (static_cast<uint16_t>(RoutePreferenceToValue(mPreference)) << BorderRouterEntry::kPrefer… in ConvertToTlvFlags()
136 const BorderRouterEntry &aBorderRouterEntry) in SetFrom()
[all …]
Dnetwork_data_tlvs.hpp915 class BorderRouterEntry : public Equatable<BorderRouterEntry> class
1047 BorderRouterEntry *GetNext(void) { return (this + 1); } in GetNext()
1055 const BorderRouterEntry *GetNext(void) const { return (this + 1); } in GetNext()
1124 uint8_t GetNumEntries(void) const { return GetLength() / sizeof(BorderRouterEntry); } in GetNumEntries()
1134 BorderRouterEntry *GetEntry(uint8_t aIndex) in GetEntry()
1136 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry()
1147 const BorderRouterEntry *GetEntry(uint8_t aIndex) const in GetEntry()
1149 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry in GetEntry()
1158BorderRouterEntry *GetFirstEntry(void) { return reinterpret_cast<BorderRouterEntry *>(GetValue());… in GetFirstEntry()
1166 const BorderRouterEntry *GetFirstEntry(void) const in GetFirstEntry()
[all …]
Dnetwork_data_leader_ftd.cpp503 bool Leader::ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry in ContainsMatchingEntry()
511 bool Leader::ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &a… in ContainsMatchingEntry()
519 …for (const BorderRouterEntry *entry = aBorderRouter->GetFirstEntry(); entry <= aBorderRouter->GetL… in ContainsMatchingEntry()
821 const BorderRouterEntry *entry = aBorderRouter.GetFirstEntry(); in AddBorderRouter()
835 VerifyOrExit(CanInsert(sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) + in AddBorderRouter()
853 … VerifyOrExit(CanInsert(sizeof(BorderRouterEntry) + sizeof(ContextTlv)), error = kErrorNoBufs); in AddBorderRouter()
871 VerifyOrExit(CanInsert(sizeof(BorderRouterEntry)), error = kErrorNoBufs); in AddBorderRouter()
873 Insert(dstBorderRouter->GetNext(), sizeof(BorderRouterEntry)); in AddBorderRouter()
874 dstBorderRouter->IncreaseLength(sizeof(BorderRouterEntry)); in AddBorderRouter()
875 aDstPrefix.IncreaseLength(sizeof(BorderRouterEntry)); in AddBorderRouter()
[all …]
Dnetwork_data_types.hpp66 class BorderRouterEntry;
215 const BorderRouterEntry &aBorderRouterEntry);
Dnetwork_data_publisher.cpp972 int8_t preference = BorderRouterEntry::PreferenceFromFlags(mFlags); in CountOnMeshPrefixEntries()
973 … uint16_t flagsWithoutPreference = BorderRouterEntry::FlagsWithoutPreference(mFlags); in CountOnMeshPrefixEntries()
981 …for (const BorderRouterEntry *entry = brSubTlv->GetFirstEntry(); entry <= brSubTlv->GetLastEntry(); in CountOnMeshPrefixEntries()
985 int8_t entryPreference = BorderRouterEntry::PreferenceFromFlags(entryFlags); in CountOnMeshPrefixEntries()
995 if ((BorderRouterEntry::FlagsWithoutPreference(entryFlags) == flagsWithoutPreference) && in CountOnMeshPrefixEntries()
Dnetwork_data_local.cpp102 ? sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) in AddPrefix()
115 brTlv->SetLength(brTlv->GetLength() + sizeof(BorderRouterEntry)); in AddPrefix()
Dnetwork_data_leader.cpp244 … for (const BorderRouterEntry *entry = brTlv->GetFirstEntry(); entry <= brTlv->GetLastEntry(); in IsOnMesh()
385 const BorderRouterEntry *route = nullptr; in DefaultRouteLookup()
389 … for (const BorderRouterEntry *entry = brTlv->GetFirstEntry(); entry <= brTlv->GetLastEntry(); in DefaultRouteLookup()
Dnetwork_data_leader.hpp604 …ool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry);
605 …static bool ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &a…
Dnetwork_data.cpp214 … const BorderRouterEntry *borderRouterEntry = borderRouter->GetEntry(index); in Iterate()
474 …for (BorderRouterEntry *entry = borderRouter->GetFirstEntry(); entry <= borderRouter->GetLastEntry… in RemoveTemporaryDataIn()