summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorBram Bonné <brambonne@google.com>2020-07-20 11:18:03 +0200
committerBram Bonné <brambonne@google.com>2020-07-21 19:14:12 +0200
commit8e20ac441388564a3acd51b0097fc63e7903664d (patch)
tree6b4f84c0e9114d0667738dce9fa7c10c8095a5d2 /libc/malloc_debug/malloc_debug.cpp
parenta96099e13068278e54afa637c088496d56c85b62 (diff)
Resolve interface flags using SIOCGIFFLAGS ioctl
Normally, getifaddrs() gets its information about interface flags from RTM_NEWLINK messages. With the ability for non-system apps to send RTM_GETLINK messages going away, resolve these flags by performing a SIOCGIFFLAGS ioctl call instead. This fixes a bug where the flags were erroneously copied over from an ifaddrmsg's ifa_flags. Bug: 141455849 Test: atest bionic-unit-tests-static Test: Connect to wireless network. Test: Call getifaddrs() from a non-system app targeting API R+, verify that the interface flags are correct. Change-Id: I552f3b9d21072f59ee6f0890f47cb1bdf3cfcf20
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions