Query libnetd_client for the appropriate netId for host resolution.
If libnetd_client can't be found, operate as before and use the default netId
potentially overriden by a more specific netId passed in to
android_get*fornet().
(cherry picked from commit 559c7842cc)
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
This commit is contained in:
committed by
Sreeram Ramachandran
parent
308c30af72
commit
5240b562e7
@@ -43,6 +43,8 @@ static void netdClientInitImpl() {
|
||||
netdClientInitFunction(netdClientHandle, "netdClientInitAccept", &__netdClientDispatch.accept);
|
||||
netdClientInitFunction(netdClientHandle, "netdClientInitConnect",
|
||||
&__netdClientDispatch.connect);
|
||||
netdClientInitFunction(netdClientHandle, "netdClientInitNetIdForResolv",
|
||||
&__netdClientDispatch.netIdForResolv);
|
||||
}
|
||||
|
||||
static pthread_once_t netdClientInitOnce = PTHREAD_ONCE_INIT;
|
||||
|
||||
Reference in New Issue
Block a user