Home
last modified time | relevance | path

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

/openthread-3.4.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.hpp908 class BorderRouterEntry : public Equatable<BorderRouterEntry> class
1040 BorderRouterEntry *GetNext(void) { return (this + 1); } in GetNext()
1048 const BorderRouterEntry *GetNext(void) const { return (this + 1); } in GetNext()
1117 uint8_t GetNumEntries(void) const { return GetLength() / sizeof(BorderRouterEntry); } in GetNumEntries()
1127 BorderRouterEntry *GetEntry(uint8_t aIndex) in GetEntry()
1129 … return reinterpret_cast<BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry))); in GetEntry()
1140 const BorderRouterEntry *GetEntry(uint8_t aIndex) const in GetEntry()
1142 …return reinterpret_cast<const BorderRouterEntry *>(GetValue() + (aIndex * sizeof(BorderRouterEntry in GetEntry()
1151BorderRouterEntry *GetFirstEntry(void) { return reinterpret_cast<BorderRouterEntry *>(GetValue());… in GetFirstEntry()
1159 const BorderRouterEntry *GetFirstEntry(void) const in GetFirstEntry()
[all …]
Dnetwork_data_leader_ftd.cpp588 bool Leader::ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry in ContainsMatchingEntry()
596 bool Leader::ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &a… in ContainsMatchingEntry()
604 …for (const BorderRouterEntry *entry = aBorderRouter->GetFirstEntry(); entry <= aBorderRouter->GetL… in ContainsMatchingEntry()
850 const BorderRouterEntry *entry = aBorderRouter.GetFirstEntry(); in AddBorderRouter()
864 VerifyOrExit(CanInsert(sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) + in AddBorderRouter()
882 … VerifyOrExit(CanInsert(sizeof(BorderRouterEntry) + sizeof(ContextTlv)), error = kErrorNoBufs); in AddBorderRouter()
900 VerifyOrExit(CanInsert(sizeof(BorderRouterEntry)), error = kErrorNoBufs); in AddBorderRouter()
902 Insert(dstBorderRouter->GetNext(), sizeof(BorderRouterEntry)); in AddBorderRouter()
903 dstBorderRouter->IncreaseLength(sizeof(BorderRouterEntry)); in AddBorderRouter()
904 aDstPrefix.IncreaseLength(sizeof(BorderRouterEntry)); in AddBorderRouter()
[all …]
Dnetwork_data_types.hpp66 class BorderRouterEntry;
215 const BorderRouterEntry &aBorderRouterEntry);
Dnetwork_data_local.cpp102 ? sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) in AddPrefix()
115 brTlv->SetLength(brTlv->GetLength() + sizeof(BorderRouterEntry)); in AddPrefix()
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_leader_ftd.hpp316 …ool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry);
317 …static bool ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &a…
Dnetwork_data_leader.cpp225 … for (const BorderRouterEntry *entry = brTlv->GetFirstEntry(); entry <= brTlv->GetLastEntry(); in IsOnMesh()
362 const BorderRouterEntry *route = nullptr; in DefaultRouteLookup()
366 … for (const BorderRouterEntry *entry = brTlv->GetFirstEntry(); entry <= brTlv->GetLastEntry(); in DefaultRouteLookup()
Dnetwork_data.cpp214 … const BorderRouterEntry *borderRouterEntry = borderRouter->GetEntry(index); in Iterate()
474 …for (BorderRouterEntry *entry = borderRouter->GetFirstEntry(); entry <= borderRouter->GetLastEntry… in RemoveTemporaryDataIn()