OSDN Git Service

DNS proxy thread in netd.
authorBrad Fitzpatrick <bradfitz@android.com>
Wed, 27 Oct 2010 18:39:52 +0000 (11:39 -0700)
committerBrad Fitzpatrick <bradfitz@android.com>
Mon, 1 Nov 2010 23:00:10 +0000 (16:00 -0700)
commit007e987fee7e815e0c4bc820f434a632b7a69a9d
treebff951d25cfb94f1016c780bb43a74fbad0f4ae1
parentb5ff9b277f256df84caf3d798ccc83b4740a1d31
DNS proxy thread in netd.

New thread in the netd process which listens on the
/dev/socket/dnsproxyd socket (group owned by 'inet', so only useable
by apps with the INTERNET permission), and does getaddrinfo requests
for other processes, caching in one place, rather than per-app.

Still remaining: proper caching based on DNS-requested lengths, upping
the cache size, getnameinfo, stats, flush, etc, etc.

Change-Id: I1d65af7d87876e508c718656bd81217cd961e20a
Android.mk
DnsProxyListener.cpp [new file with mode: 0644]
DnsProxyListener.h [new file with mode: 0644]
main.cpp