summaryrefslogtreecommitdiffstats
path: root/libnetd_client
Commit message (Collapse)AuthorAgeFilesLines
* Move netd_client into netd.Sreeram Ramachandran2014-05-214-240/+0
| | | | Change-Id: Ie4b6b303225c93f2448a503d6ea9cebb552cbad5
* Use a function instead of a macro.Sreeram Ramachandran2014-05-141-11/+9
| | | | Change-Id: If5359c26a1474de0c278193fd2f09168f3184dee
* Mark sockets on accept().Sreeram Ramachandran2014-05-141-0/+41
| | | | Change-Id: I5d09be413cf720fbed905f96313b007997ada76c
* Introduce netd_client, a dynamic library that talks to netd.Sreeram Ramachandran2014-05-144-0/+201
This library is dynamically loaded and used by bionic, to replace selected standard socket syscalls with versions that talk to netd. Implement connect() by requesting that the socket be marked with the netId of the default network and then calling through to the actual syscall. There are two escape hatches: + If the fwmark server is unavailable, it isn't an error; we proceed with the syscall. This might help at boot time (when the server isn't ready yet) and if we get rid of the fwmarkd socket entirely in future platform versions. + If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't attempt to use the fwmark server (even if it's available). This allows apps to sidestep unforseen issues in production at runtime. Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9