[CLATJ#7] ClatCoordinator: select IPv4 address for clatd
Introduce ClatCoordinator to replace netd/ClatdController. This is a startup commit. Starting clatd needs to prepare local 464xlat ipv4 address, local 464xlat ipv6 address, tun interface, clat read/write sockets. These will be implemented from this and followup commits. This commit implements that prepare local 464xlat ipv4 address. Bug: 212345928 Test: flash and boot Run "atest ClatCoordinatorTest" in a followup commit. Change-Id: I486db8aef0181ee1aedd7cd7702f95d5a1cef812
This commit is contained in:
parent
8ff032b990
commit
e2cf055590
1 changed files with 180 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
namespace android {
|
||||
|
||||
int register_android_server_TestNetworkService(JNIEnv* env);
|
||||
int register_android_server_connectivity_ClatCoordinator(JNIEnv* env);
|
||||
|
||||
extern "C" jint JNI_OnLoad(JavaVM* vm, void*) {
|
||||
JNIEnv *env;
|
||||
|
|
@ -32,6 +33,10 @@ extern "C" jint JNI_OnLoad(JavaVM* vm, void*) {
|
|||
return JNI_ERR;
|
||||
}
|
||||
|
||||
if (register_android_server_connectivity_ClatCoordinator(env) < 0) {
|
||||
return JNI_ERR;
|
||||
}
|
||||
|
||||
return JNI_VERSION_1_6;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue