[routing-manager] support Advertising PIO (AP) flag in published route (#9274)

This commit adds support for the Advertising PIO (AP) flag in Network
Data `ExternalRoute` entries. It also updates the `RoutingManager`
class to set the AP flag on its published Network Data route when the
local on-link prefix is included as PIO in emitted RA messages, which
is equivalent to when the local on-link prefix is being published,
advertised, or deprecated.

This commit also updates the `test_routing_manager` unit test to
validate the AP flag in the published route under different
scenarios.
This commit is contained in:
Abtin Keshavarzian
2023-07-13 10:19:52 -07:00
committed by GitHub
parent 5beae14370
commit f7690fe7e9
13 changed files with 136 additions and 73 deletions
+2
View File
@@ -134,6 +134,7 @@ void TestNetworkDataIterator(void)
false, // mNat64
false, // mStable
false, // mNextHopIsThisDevice
false, // mAdvPio
},
{
{
@@ -146,6 +147,7 @@ void TestNetworkDataIterator(void)
false, // mNat64
true, // mStable
false, // mNextHopIsThisDevice
false, // mAdvPio
},
};