Separate network and interface addition/removal netd APIs.
This should facilitate stacked interfaces (i.e. clatd).
Change-Id: Ib3e7a4d3847ef6ec4449451f6da42e75959baa4f
diff --git a/RouteController.h b/RouteController.h
index d9cb10a..77b7eea 100644
--- a/RouteController.h
+++ b/RouteController.h
@@ -25,8 +25,9 @@
static void Init();
- static bool createNetwork(unsigned netId, const char* interface, Permission permission);
- static bool destroyNetwork(unsigned netId, const char* interface, Permission permission);
+ static bool addInterfaceToNetwork(unsigned netId, const char* interface, Permission permission);
+ static bool removeInterfaceFromNetwork(unsigned netId, const char* interface,
+ Permission permission);
static bool modifyNetworkPermission(unsigned netId, const char* interface,
Permission oldPermission, Permission newPermission);