Move the 464xlat control plane from clatd to netd.
Some of this code comes from clatd and will be deleted from there
once this topic is merged.
Bug: 65674744
Test: builds, boots
Test: system/netd/tests/runtests.sh
Change-Id: Ifa30652a853401a401d0b74d259d4d27d322e758
diff --git a/server/NetdNativeService.cpp b/server/NetdNativeService.cpp
index ec8cc1d..5bb5df0 100644
--- a/server/NetdNativeService.cpp
+++ b/server/NetdNativeService.cpp
@@ -855,9 +855,10 @@
return statusFromErrcode(res);
}
-binder::Status NetdNativeService::clatdStart(const std::string& ifName) {
+binder::Status NetdNativeService::clatdStart(const std::string& ifName,
+ const std::string& nat64Prefix, std::string* v6Addr) {
NETD_LOCKING_RPC(gCtls->clatdCtrl.mutex, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK);
- int res = gCtls->clatdCtrl.startClatd(ifName.c_str());
+ int res = gCtls->clatdCtrl.startClatd(ifName.c_str(), nat64Prefix, v6Addr);
return statusFromErrcode(res);
}