0475ae98cd8f45de815d67d1966edaf5997be9a9 |
|
27-Apr-2011 |
Brian Carlstrom <bdc@google.com> |
DNS Proxy should not hang on addresses containing null bytes Two bugs here: 1.) The gethostbyaddr netd protocol was passing a binary address value but the arguments are expected to be strings not containing embedded nulls (or probably other special characters). This happened reliably with IPv6 addresses which contained nulls. It now expects an inet_ntop formatted address. 2.) Although the gethostbyaddr code detected something was wrong, it wasn't doing any proper error handling, leaving clients hanging waiting for a response. It now sends back an empty response so that clients can continue. A corresponding change will be necesssary in bionic for #1 for DNS proxying to work, but given the fix for #2, the existing bionic code will fall back to performing its own gethostbyaddr call. Bug: 4344448 Change-Id: I2d03bfec0093c67e8052717c0f499f8871bcfb85
/system/netd/DnsProxyListener.cpp
|
34ffd85aed3838d53bd1136c751a7825de1940e0 |
|
17-Mar-2011 |
Brad Fitzpatrick <bradfitz@android.com> |
Reference count SocketClients. Avoids a netd crash when the client closes its connection while a DNS request is in-flight. Depends on Icd7f5f03 in system/core. Bug: 3438459 Change-Id: Ie6953196623b97ad2b90df951186fbfce84f8e4e
/system/netd/DnsProxyListener.cpp
|
0a60eb99298e54a3fca719f6695b1d7347dc849a |
|
22-Feb-2011 |
David Turner <digit@android.com> |
am 54a9575b: Merge "Add GetHostByAddrHandler to DnsProxyListener" * commit '54a9575bb7a83ef859ebf4fa2cd610e65b6e9db2': Add GetHostByAddrHandler to DnsProxyListener
|
1dbd6cf148ea3fab57ec0644c336e94c78a488be |
|
15-Feb-2011 |
Mattias Falk <mattias.falk@sonyericsson.com> |
Add GetHostByAddrHandler to DnsProxyListener Added functionality to handle gethostbyaddr in DnsProxyListener. The functionality is used by getnameinfo. The patch is part of the work to have one dns cache for all process in the system. Change-Id: Ia7609160d2bd1d3bbe2b79956bd208d137a8a9ee
/system/netd/DnsProxyListener.cpp
|
df9a6a82700a14169cc9d0b74833f1e261b171c6 |
|
02-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Fix the DNS proxy again, for reals. me == the suck this morning Bug: 3157030 Change-Id: Ib87ed047cd6999ee3d29b392acc7a559d9bb7349
/system/netd/DnsProxyListener.cpp
|
89b99f2375271f2020dbb41ae96afd8c17b8e11a |
|
02-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Fix DNS proxy. Don't assume writing 0 bytes to SocketClient will be successful. (as implemented in libsysutils right now, it returns an error...) Bug: 3157030 Change-Id: I2b2cb8700cbf69be6dffa2e51d1c876c40675b9b
/system/netd/DnsProxyListener.cpp
|
4e248e5a7a542067fd3f0467680eef2f92b1e195 |
|
27-Oct-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
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
/system/netd/DnsProxyListener.cpp
|
ff2c0d8c13457e43f0d4bf06d3177271aac104c1 |
|
17-Nov-2010 |
Olivier Bailly <olivier@google.com> |
Add missing include headers for compilation on x86 targets. Change-Id: I99f7b79bfb5b6305a0772f418a54ace50cac1bbe
/system/netd/DnsProxyListener.cpp
|
6c798fbf4e89c4058f046a65ee4f9aa5647e43e1 |
|
02-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Fix the DNS proxy again, for reals. me == the suck this morning Bug: 3157030 Change-Id: Ib87ed047cd6999ee3d29b392acc7a559d9bb7349
/system/netd/DnsProxyListener.cpp
|
e6a3a58d6aa4b551e38e1e19fdfea2c0d2841b85 |
|
02-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
Fix DNS proxy. Don't assume writing 0 bytes to SocketClient will be successful. (as implemented in libsysutils right now, it returns an error...) Bug: 3157030 Change-Id: I2b2cb8700cbf69be6dffa2e51d1c876c40675b9b
/system/netd/DnsProxyListener.cpp
|
007e987fee7e815e0c4bc820f434a632b7a69a9d |
|
27-Oct-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
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
/system/netd/DnsProxyListener.cpp
|