mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[neighbor-table] add 'NeighborTable' class (#5354)
This commit adds a `NeighborTable` class which provides helper methods dealing with neighbor, e.g., finding a `Neighbor` (i.e., a `Child` from `ChildTable`, a `Router` from `RouterTable`, or parent or parent candidate entries), or iterating through all neighbors. These methods use the newly added `Neighbor::AddressMacther` to simplify the implementation. The `NeighborTable` methods replace the similar ones in `Mle` and `MleRouter`.
This commit is contained in:
committed by
Jonathan Hui
parent
6c75a53bdc
commit
36b9ecbf11
@@ -256,6 +256,7 @@ LOCAL_SRC_FILES := \
|
||||
src/core/thread/mle_router.cpp \
|
||||
src/core/thread/mle_types.cpp \
|
||||
src/core/thread/mlr_manager.cpp \
|
||||
src/core/thread/neighbor_table.cpp \
|
||||
src/core/thread/network_data.cpp \
|
||||
src/core/thread/network_data_leader.cpp \
|
||||
src/core/thread/network_data_leader_ftd.cpp \
|
||||
|
||||
Reference in New Issue
Block a user