IpManager: use InitialConfiguration for provisioning
This patch changes IpManager to take into account static provisioning information specified in the InitialConfiguration for IPv6 static configuration. When a valid InitialConfiguration with IPv6 content is specified, IpManager will do the following things: - at start(), it will push the IPv6 addresses in the config to netd - it will observe all addresses be notified via Netlink - when all addresses are there, it will patch in the associated IPv6 routes in the config, so that they get passed to ConnectivityService through the usual mechanism The logic triggering onProvisioningSuccess is also changed to take into account InitialConfiguration: when all addresses and all routes in the config are seen the provisioning is successful. Bug: 62988545 Test: runtest frameworks-net, with newly added tests Merged-In: I77ed7c576c4b198de7a4726be70c78b74689e98b Merged-In: I131589680b68222e4fda4e9165ac2f50894ee28e Merged-In: I6e42d26ae430c213f65e466a2c556760ff0e14eb Merged-In: I8e9c6de63697b8c3f41480d69309360763119838 Merged-In: I80439f92cad469ac77c11430727e5207e75cf432 (cherry picked from commit d00ddf56) Change-Id: I7b1ced13361f49a92b10174486de9a1f70dd68d1
Loading
Please register or sign in to comment