Ncp: Update the get handler for list of off-mesh routes (from network data) (#1812)

This commit renames the spinel property `THREAD_LOCAL_ROUTES` to
`THREAD_OFF_MESH_ROUTES` and updates the get handler for this property
to include `isLocal` flag which specifies if the route is from local
network data or partition's network data (this change makes the
`OFF_MESH_ROUTES` behavior similar to property `ON_MESH_NETS`). The
spinel draft documentation is also updated.
This commit is contained in:
Abtin Keshavarzian
2017-05-25 14:42:19 -07:00
committed by Jonathan Hui
parent c904910f64
commit 047b1980df
6 changed files with 248 additions and 220 deletions
@@ -96,9 +96,9 @@ Data per item is:
defined. Assumed to be true for set, insert and replace. Clear if
the on mesh network was defined by another node.
### PROP 91: PROP_THREAD_LOCAL_ROUTES
### PROP 91: PROP_THREAD_OFF_MESH_ROUTES
* Type: Read-Write
* Packed-Encoding: `A(t(6CbC))`
* Packed-Encoding: `A(t(6CbCb))`
Data per item is:
@@ -106,6 +106,10 @@ Data per item is:
* `C`: Prefix length, in bits
* `b`: Stable flag
* `C`: Other flags
* `b`: "Is defined locally" flag. Set if this route info was locally
defined as part of local network data. Assumed to be true for set,
insert and replace. Clear if the route is part of partition's network
data.
### PROP 92: PROP_THREAD_ASSISTING_PORTS
* Type: Read-Write