platform_system_core/adb/sysdeps
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
..
posix adb: don't try to resolve 'localhost' 2017-04-12 16:07:49 -07:00
win32 Revert "Revert "adb: move adb_strerror to sysdeps/win32/errno.cpp."" 2016-12-05 17:38:30 -08:00
chrono.h adb: add sysdeps/chrono.h for chrono literals on Win32. 2016-11-16 12:14:59 -08:00
errno.cpp Revert "Revert "adb: extend sync protocol's stat support."" 2016-12-05 17:38:30 -08:00
errno.h Revert "Revert "adb: extend sync protocol's stat support."" 2016-12-05 17:38:30 -08:00
network.h adb: don't try to resolve 'localhost' 2017-04-12 16:07:49 -07:00
stat.h adb: make sure that file mode macros match linux. 2016-11-21 18:39:21 -08:00
stat_test.cpp adb: fix stat on Windows. 2016-08-01 12:36:04 -07:00