ot::RouterTable::FillRouteTlv() const method
Fills a Route TLV. When @p aNeighbor is not `nullptr`, we limit the number of router entries to `kMaxRoutersInRouteTlvForLinkAccept` when populating `aRouteTlv`, so that the TLV can be appended in a Link Accept message. In this case, we ensure to include router entries associated with @p aNeighbor, leader, and this device itself.
Arguments
aRouteTlv
A Route TLV to be filled.
aNeighbor
A pointer to the receiver (in case TLV is for a Link Accept message).
ot::RouterTable::FillRouteTlv() const calls 14 functions:
![]()
ot::RouterTable::FillRouteTlv() const
ot::RouterTable::FillRouteTlv() const reads 7 variables:
![]()
ot::RouterTable::FillRouteTlv() const