diff options
| author | Sreeram Ramachandran <sreeram@google.com> | 2014-05-22 14:21:49 -0700 |
|---|---|---|
| committer | Sreeram Ramachandran <sreeram@google.com> | 2014-05-30 18:27:40 +0000 |
| commit | 82eab785bd5cb2eff0a263f5b0dcde13e9139588 (patch) | |
| tree | 76c295e087df8391bee5d452728c5efe99e2f17e /server/TetherController.cpp | |
| parent | ce8f583ff6620a19602d3c4604557e1b1501cafa (diff) | |
Support legacy routes added by apps via ensureRouteToHost().
This adds the routes to two fixed tables:
+ LEGACY, which has higher priority than other non-explicit lookup tables
(per-network and default network).
+ PRIVILEGED_LEGACY, available only to system apps and has higher priority than
VPNs (system apps are those with the CONNECTIVITY_INTERNAL permission).
This will be changed to per-UID tables once the kernel supports UID-based
routing, so that these legacy routes are scoped to each app and not global.
Also, fix a TODO: The framework (as of http://ag/471599) will not set the
gateway argument if it's actually a direct-connected route.
Change-Id: I0ee1ca89fdc859d75a89021ca8c1902811b1e4a9
(cherry picked from commit 38b7af1f2cb9579895465fabc37865f5dadcac25)
Diffstat (limited to 'server/TetherController.cpp')
0 files changed, 0 insertions, 0 deletions
