Commit 0d5eb26
committed
network: discovery: zigbee: get active route table entry if exists
If the same route entry (destination - next hop) is repeated in the routing
table of a node but with different status, keep the "active" one.
For example:
Route of 0013A2004195C88B - usb1_100B: 0000 - 0000 -> Inactive
Route of 0013A2004195C88B - usb1_100B: 0000 - 0000 -> Active
Route of 0013A2004195C88B - usb1_100B: E814 - 27C9 -> Active
Route of 0013A2004195C88B - usb1_100B: F2E7 - 27C9 -> Active
Route of 0013A2004195C88B - usb1_100B: 27C9 - 0000 -> Active
Route of 0013A2004195C88B - usb1_100B: 0000 - 0000 -> Inactive
Two first entries are the route to the coordinator: the first one is 'Inactive',
the second one is 'Active'. In this case keep the second one.
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>1 parent 880ab5e commit 0d5eb26
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11232 | 11232 | | |
11233 | 11233 | | |
11234 | 11234 | | |
| 11235 | + | |
| 11236 | + | |
| 11237 | + | |
| 11238 | + | |
| 11239 | + | |
| 11240 | + | |
| 11241 | + | |
| 11242 | + | |
| 11243 | + | |
11235 | 11244 | | |
11236 | 11245 | | |
11237 | 11246 | | |
| |||
0 commit comments