summaryrefslogtreecommitdiff
path: root/libc/malloc_hooks/malloc_hooks.cpp
diff options
context:
space:
mode:
authorBram Bonné <brambonne@google.com>2020-02-21 11:47:20 +0100
committerBram Bonné <brambonne@google.com>2020-02-25 10:07:31 +0100
commit545477ba2ebe28cf416e37d39f8ea1e530661630 (patch)
tree961224339a6c26ee41a1f33097ce44d098d0e283 /libc/malloc_hooks/malloc_hooks.cpp
parenta5d8b1b008376a5f7687bd86d4359e5d67df23b6 (diff)
Try to resolve interface names before removing nameless interfaces.
For interfaces that didn't get their name set, try to resolve their name using if_indextoname first, before removing them from the list. This allows getifaddrs() to keep returning interfaces that only have an IPv6 address set (as opposed to the previous behavior where only interfaces with an IPv4 address would be returned). Change-Id: I0e4e6611948b12794cd3e354538f2964fbf31078 Fix: 148886805 Bug: 141455849 Test: atest NetworkInterfaceTest Test: atest bionic-unit-tests-static Test: atest IpSecManagerTunnelTest (cherry picked from aosp/1242747)
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions