diff options
author | Bram Bonné <brambonne@google.com> | 2020-07-20 11:18:03 +0200 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2020-07-23 08:40:25 -0700 |
commit | 3a5a22d607701ee8d5905beef97801538aead820 (patch) | |
tree | de02337da2f7c450ad3fa0de8f565a44458f901f /libc/malloc_debug/malloc_debug.cpp | |
parent | 4785c135498ee01e3799f4c88369560cec252c17 (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
Bug: 161869825
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