aboutsummaryrefslogtreecommitdiffstats
path: root/tests/sys_personality_test.cpp
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2015-06-25 14:27:34 +0900
committerErik Kline <ek@google.com>2015-06-30 12:12:08 +0900
commit754f669076ec1edfc0d597aaf89600d4c93f9a7c (patch)
tree2fb3c70663feacc09e784f99cd5dce3702e82158 /tests/sys_personality_test.cpp
parentf7d5bf334dc4bc5b7399d4c8268e1b0bf676548f (diff)
downloadandroid_bionic-754f669076ec1edfc0d597aaf89600d4c93f9a7c.tar.gz
android_bionic-754f669076ec1edfc0d597aaf89600d4c93f9a7c.tar.bz2
android_bionic-754f669076ec1edfc0d597aaf89600d4c93f9a7c.zip
Pass around struct android_net_context for better behaviour
Group network context elements in to a single struct and add a version of android_getaddrinfofornet() that accepts it. The introduction of UID-based routing means that the UID is an integral part of the network context when evaluating connectivity, sorting addresses, etc. Also, introduce a distinction between DNS netids/marks and those expected to be used by the application. This can be important when the network an application is using is not the same as the network on which DNS queries will be issued. Additionally, de-duplicate the UDP connect logic (collapse both _test_connect() and _find_src_addr() into just the latter). Bug: 19470192 Bug: 20733156 Bug: 21832279 Change-Id: If16c2f4744695f507993afdac078ca105eb5d3e4 (cherry picked from commit 01e37c9665018534c798daaa59d5b0adb408e0a4)
Diffstat (limited to 'tests/sys_personality_test.cpp')
0 files changed, 0 insertions, 0 deletions