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:
Paul Jensen
2014-05-15 14:43:07 -04:00
committed by Sreeram Ramachandran
parent 308c30af72
commit 5240b562e7
5 changed files with 16 additions and 0 deletions

View File

@@ -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;