android_system_core/libcutils/include/cutils
Josh Gao 46de1d7f03 adb: don't try to resolve 'localhost'
Misconfigured systems can have localhost pointing to an address that
isn't 127.0.0.1 or ::1.

adb is the only caller of the libcutils socket_loopback functions, so
move them into adb and switch the implementations over to using
INADDR_LOOPBACK and in6addr_loopback, instead of resolving 'localhost'
when connecting.

Bug: http://b/37282612
Test: `killall adb; adb shell`
Test: `killall adb; ip addr del 127.0.0.1/8 dev lo; adb shell`
Change-Id: I01c1885f1d9757ad0f7b353dd04b4d1f057741c8
2017-04-12 16:07:49 -07:00
..
android_get_control_file.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
android_reboot.h remove emergency shutdown and improve init's reboot logic 2017-03-22 11:23:31 -07:00
ashmem.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
atomic.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
bitops.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
compiler.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
config_utils.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
fs.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
hashmap.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
iosched_policy.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
jstring.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
klog.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
list.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
log.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
memory.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
misc.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
multiuser.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
native_handle.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
open_memstream.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
partition_utils.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
properties.h cutils: Add clang FORTIFY support 2017-02-09 20:18:19 +01:00
qtaguid.h Update qtaguid tag/untag documentation. 2017-03-17 17:48:52 +00:00
record_stream.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
sched_policy.h Removed cpusets/schedboost build time dependency. 2017-02-20 20:53:24 +08:00
sockets.h adb: don't try to resolve 'localhost' 2017-04-12 16:07:49 -07:00
str_parms.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
threads.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
trace.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
uevent.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00