diff options
author | Bram Bonné <brambonne@google.com> | 2020-07-20 11:18:03 +0200 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-26 20:55:28 +0000 |
commit | 4bdd7ed4cab82e06565e3de5c53d872f75140196 (patch) | |
tree | de02337da2f7c450ad3fa0de8f565a44458f901f /libc/malloc_hooks/malloc_hooks.cpp | |
parent | f364b7ba45a4dc05c24b30f74b5e4561d5d20fec (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
(cherry picked from commit 3a5a22d607701ee8d5905beef97801538aead820)
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions