Searched refs:BorderRouterEntry (Results 1 – 9 of 9) sorted by relevance
87 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 …]
908 class BorderRouterEntry : public Equatable<BorderRouterEntry> class1040 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()1151 …BorderRouterEntry *GetFirstEntry(void) { return reinterpret_cast<BorderRouterEntry *>(GetValue());… in GetFirstEntry()1159 const BorderRouterEntry *GetFirstEntry(void) const in GetFirstEntry()[all …]
588 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 …]
66 class BorderRouterEntry;215 const BorderRouterEntry &aBorderRouterEntry);
102 ? sizeof(BorderRouterTlv) + sizeof(BorderRouterEntry) in AddPrefix()115 brTlv->SetLength(brTlv->GetLength() + sizeof(BorderRouterEntry)); in AddPrefix()
972 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()
316 …ool ContainsMatchingEntry(const PrefixTlv *aPrefix, bool aStable, const BorderRouterEntry &aEntry);317 …static bool ContainsMatchingEntry(const BorderRouterTlv *aBorderRouter, const BorderRouterEntry &a…
225 … 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()
214 … const BorderRouterEntry *borderRouterEntry = borderRouter->GetEntry(index); in Iterate()474 …for (BorderRouterEntry *entry = borderRouter->GetFirstEntry(); entry <= borderRouter->GetLastEntry… in RemoveTemporaryDataIn()