summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorBram Bonné <brambonne@google.com>2020-01-15 14:17:07 +0100
committerBram Bonné <brambonne@google.com>2020-01-23 16:15:44 +0100
commitd54ad07f50efb5a1f35d460deb5857b6ad220942 (patch)
treed2dd2e14715ac09b33b26d7317bc80d0d79e1c64 /tests/malloc_test.cpp
parent73e9f242ed07631798433df4e35f5f73443cb9f9 (diff)
Extends ifaddrs for cases where the client cannot send RTM_GETLINK requests.
The previous implementation of getifaddrs() depended on RTM_GETLINK requests being allowed, returning an error otherwise. This change makes getifaddrs() attempt to get all necessary information from RTM_NEWADDR messages when RTM_NEWLINK messages are not available. The code is functionally the same when RTM_GETLINK requests are allowed. When RTM_GETLINK requests are denied, only interfaces that have a network address are returned, and physical addresses for these interfaces remain unset. In addition, this change updates the copyright notice because repohooks asked nicely. Bug: 141455849 Test: atest bionic-unit-tests-static Test: atest NetworkInterfaceTest Test: Connect to Wi-Fi network Test: Set up hotspot Test: Cast from device Test: Pair Bluetooth device Test: Call getifaddrs() directly from within an app. Test: Call NetworkInterface#getNetworkInterfaces() from within an app. Change-Id: Ia47e037d181ca5df6d9fdae19b405cabfafc6b0f
Diffstat (limited to 'tests/malloc_test.cpp')
0 files changed, 0 insertions, 0 deletions