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 559c7842cc6862568d9b5799fc0bcf74d58b596b)
Change-Id: I42ef3293172651870fb46d2de22464c4f03e8e0b
diff --git a/libc/private/NetdClientDispatch.h b/libc/private/NetdClientDispatch.h
index 0390bfb..c256288 100644
--- a/libc/private/NetdClientDispatch.h
+++ b/libc/private/NetdClientDispatch.h
@@ -25,6 +25,7 @@
struct NetdClientDispatch {
int (*accept)(int, struct sockaddr*, socklen_t*);
int (*connect)(int, const struct sockaddr*, socklen_t);
+ unsigned (*netIdForResolv)(unsigned);
};
extern __LIBC_HIDDEN__ struct NetdClientDispatch __netdClientDispatch;