Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 17 | #include <regex> |
| 18 | #include <set> |
| 19 | #include <string> |
| 20 | |
| 21 | #include <android-base/strings.h> |
Lorenzo Colitti | 05306fb | 2017-02-09 04:56:00 +0900 | [diff] [blame] | 22 | #include <android-base/stringprintf.h> |
| 23 | |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 24 | #define LOG_TAG "Netd" |
| 25 | #include <cutils/log.h> |
| 26 | |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 27 | #include "Controllers.h" |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 28 | #include "IdletimerController.h" |
| 29 | #include "NetworkController.h" |
| 30 | #include "RouteController.h" |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 31 | #include "Stopwatch.h" |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 32 | #include "oem_iptables_hook.h" |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 33 | |
| 34 | namespace android { |
| 35 | namespace net { |
| 36 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 37 | using android::base::Join; |
| 38 | using android::base::StringPrintf; |
| 39 | using android::base::StringAppendF; |
| 40 | |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 41 | auto Controllers::execIptablesRestore = ::execIptablesRestore; |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 42 | auto Controllers::execIptablesRestoreWithOutput = ::execIptablesRestoreWithOutput; |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 43 | |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 44 | namespace { |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 45 | |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 46 | /** |
| 47 | * List of module chains to be created, along with explicit ordering. ORDERING |
| 48 | * IS CRITICAL, AND SHOULD BE TRIPLE-CHECKED WITH EACH CHANGE. |
| 49 | */ |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 50 | static const std::vector<const char*> FILTER_INPUT = { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 51 | // Bandwidth should always be early in input chain, to make sure we |
| 52 | // correctly count incoming traffic against data plan. |
| 53 | BandwidthController::LOCAL_INPUT, |
| 54 | FirewallController::LOCAL_INPUT, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 55 | }; |
| 56 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 57 | static const std::vector<const char*> FILTER_FORWARD = { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 58 | OEM_IPTABLES_FILTER_FORWARD, |
| 59 | FirewallController::LOCAL_FORWARD, |
| 60 | BandwidthController::LOCAL_FORWARD, |
Lorenzo Colitti | a93126d | 2017-08-24 13:28:19 +0900 | [diff] [blame] | 61 | TetherController::LOCAL_FORWARD, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 62 | }; |
| 63 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 64 | static const std::vector<const char*> FILTER_OUTPUT = { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 65 | OEM_IPTABLES_FILTER_OUTPUT, |
| 66 | FirewallController::LOCAL_OUTPUT, |
| 67 | StrictController::LOCAL_OUTPUT, |
| 68 | BandwidthController::LOCAL_OUTPUT, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 69 | }; |
| 70 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 71 | static const std::vector<const char*> RAW_PREROUTING = { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 72 | BandwidthController::LOCAL_RAW_PREROUTING, |
| 73 | IdletimerController::LOCAL_RAW_PREROUTING, |
Lorenzo Colitti | a93126d | 2017-08-24 13:28:19 +0900 | [diff] [blame] | 74 | TetherController::LOCAL_RAW_PREROUTING, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 75 | }; |
| 76 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 77 | static const std::vector<const char*> MANGLE_POSTROUTING = { |
Lorenzo Colitti | 05306fb | 2017-02-09 04:56:00 +0900 | [diff] [blame] | 78 | OEM_IPTABLES_MANGLE_POSTROUTING, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 79 | BandwidthController::LOCAL_MANGLE_POSTROUTING, |
| 80 | IdletimerController::LOCAL_MANGLE_POSTROUTING, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 81 | }; |
| 82 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 83 | static const std::vector<const char*> MANGLE_INPUT = { |
Joel Scherpelz | 08b84cd | 2017-05-22 13:11:54 +0900 | [diff] [blame] | 84 | WakeupController::LOCAL_MANGLE_INPUT, |
Lorenzo Colitti | d78843e | 2017-03-27 05:52:31 +0900 | [diff] [blame] | 85 | RouteController::LOCAL_MANGLE_INPUT, |
Lorenzo Colitti | d78843e | 2017-03-27 05:52:31 +0900 | [diff] [blame] | 86 | }; |
| 87 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 88 | static const std::vector<const char*> MANGLE_FORWARD = { |
Lorenzo Colitti | a93126d | 2017-08-24 13:28:19 +0900 | [diff] [blame] | 89 | TetherController::LOCAL_MANGLE_FORWARD, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 90 | }; |
| 91 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 92 | static const std::vector<const char*> NAT_PREROUTING = { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 93 | OEM_IPTABLES_NAT_PREROUTING, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 94 | }; |
| 95 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 96 | static const std::vector<const char*> NAT_POSTROUTING = { |
Lorenzo Colitti | a93126d | 2017-08-24 13:28:19 +0900 | [diff] [blame] | 97 | TetherController::LOCAL_NAT_POSTROUTING, |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 98 | }; |
| 99 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 100 | // Commands to create child chains and to match created chains in iptables -S output. Keep in sync. |
| 101 | static const char* CHILD_CHAIN_TEMPLATE = "-A %s -j %s\n"; |
| 102 | static const std::regex CHILD_CHAIN_REGEX("^-A ([^ ]+) -j ([^ ]+)$", |
| 103 | std::regex_constants::extended); |
| 104 | |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 105 | } // namespace |
| 106 | |
| 107 | /* static */ |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 108 | std::set<std::string> Controllers::findExistingChildChains(const IptablesTarget target, |
| 109 | const char* table, |
| 110 | const char* parentChain) { |
| 111 | if (target == V4V6) { |
| 112 | ALOGE("findExistingChildChains only supports one protocol at a time"); |
| 113 | abort(); |
| 114 | } |
| 115 | |
| 116 | std::set<std::string> existing; |
| 117 | |
| 118 | // List the current contents of parentChain. |
| 119 | // |
| 120 | // TODO: there is no guarantee that nothing else modifies the chain in the few milliseconds |
| 121 | // between when we list the existing rules and when we delete them. However: |
| 122 | // - Since this code is only run on startup, nothing else in netd will be running. |
| 123 | // - While vendor code is known to add its own rules to chains created by netd, it should never |
| 124 | // be modifying the rules in childChains or the rules that hook said chains into their parent |
| 125 | // chains. |
| 126 | std::string command = StringPrintf("*%s\n-S %s\nCOMMIT\n", table, parentChain); |
| 127 | std::string output; |
| 128 | if (Controllers::execIptablesRestoreWithOutput(target, command, &output) == -1) { |
| 129 | ALOGE("Error listing chain %s in table %s\n", parentChain, table); |
| 130 | return existing; |
| 131 | } |
| 132 | |
| 133 | // The only rules added by createChildChains are of the simple form "-A <parent> -j <child>". |
| 134 | // Find those rules and add each one's child chain to existing. |
| 135 | std::smatch matches; |
| 136 | std::stringstream stream(output); |
| 137 | std::string rule; |
| 138 | while (std::getline(stream, rule, '\n')) { |
| 139 | if (std::regex_search(rule, matches, CHILD_CHAIN_REGEX) && matches[1] == parentChain) { |
| 140 | existing.insert(matches[2]); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | return existing; |
| 145 | } |
| 146 | |
| 147 | /* static */ |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 148 | void Controllers::createChildChains(IptablesTarget target, const char* table, |
| 149 | const char* parentChain, |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 150 | const std::vector<const char*>& childChains, |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 151 | bool exclusive) { |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 152 | std::string command = StringPrintf("*%s\n", table); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 153 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 154 | // We cannot just clear all the chains we create because vendor code modifies filter OUTPUT and |
| 155 | // mangle POSTROUTING directly. So: |
| 156 | // |
| 157 | // - If we're the exclusive owner of this chain, simply clear it entirely. |
| 158 | // - If not, then list the chain's current contents to ensure that if we restart after a crash, |
| 159 | // we leave the existing rules alone in the positions they currently occupy. This is faster |
| 160 | // than blindly deleting our rules and recreating them, because deleting a rule that doesn't |
| 161 | // exists causes iptables-restore to quit, which takes ~30ms per delete. It's also more |
| 162 | // correct, because if we delete rules and re-add them, they'll be in the wrong position with |
| 163 | // regards to the vendor rules. |
| 164 | // |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 165 | // TODO: Make all chains exclusive once vendor code uses the oem_* rules. |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 166 | std::set<std::string> existingChildChains; |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 167 | if (exclusive) { |
| 168 | // Just running ":chain -" flushes user-defined chains, but not built-in chains like INPUT. |
| 169 | // Since at this point we don't know if parentChain is a built-in chain, do both. |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 170 | StringAppendF(&command, ":%s -\n", parentChain); |
| 171 | StringAppendF(&command, "-F %s\n", parentChain); |
| 172 | } else { |
| 173 | existingChildChains = findExistingChildChains(target, table, parentChain); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 174 | } |
| 175 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 176 | for (const auto& childChain : childChains) { |
| 177 | // Always clear the child chain. |
| 178 | StringAppendF(&command, ":%s -\n", childChain); |
| 179 | // But only add it to the parent chain if it's not already there. |
| 180 | if (existingChildChains.find(childChain) == existingChildChains.end()) { |
| 181 | StringAppendF(&command, CHILD_CHAIN_TEMPLATE, parentChain, childChain); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 182 | } |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 183 | } |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 184 | command += "COMMIT\n"; |
Lorenzo Colitti | 05306fb | 2017-02-09 04:56:00 +0900 | [diff] [blame] | 185 | execIptablesRestore(target, command); |
| 186 | } |
| 187 | |
Joel Scherpelz | 08b84cd | 2017-05-22 13:11:54 +0900 | [diff] [blame] | 188 | Controllers::Controllers() |
| 189 | : clatdCtrl(&netCtrl), |
| 190 | wakeupCtrl( |
| 191 | [this](const std::string& prefix, uid_t uid, gid_t gid, uint64_t timestampNs) { |
| 192 | const auto listener = eventReporter.getNetdEventListener(); |
| 193 | if (listener == nullptr) { |
| 194 | ALOGE("getNetdEventListener() returned nullptr. dropping wakeup event"); |
| 195 | return; |
| 196 | } |
| 197 | listener->onWakeupEvent(String16(prefix.c_str()), uid, gid, timestampNs); |
| 198 | }, |
| 199 | &iptablesRestoreCtrl) { |
Erik Kline | 2c5aaa1 | 2016-06-08 13:24:45 +0900 | [diff] [blame] | 200 | InterfaceController::initializeAll(); |
| 201 | } |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 202 | |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 203 | void Controllers::initChildChains() { |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 204 | /* |
| 205 | * This is the only time we touch top-level chains in iptables; controllers |
| 206 | * should only mutate rules inside of their children chains, as created by |
| 207 | * the constants above. |
| 208 | * |
| 209 | * Modules should never ACCEPT packets (except in well-justified cases); |
| 210 | * they should instead defer to any remaining modules using RETURN, or |
| 211 | * otherwise DROP/REJECT. |
| 212 | */ |
| 213 | |
Lorenzo Colitti | 05306fb | 2017-02-09 04:56:00 +0900 | [diff] [blame] | 214 | // Create chains for child modules. |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 215 | createChildChains(V4V6, "filter", "INPUT", FILTER_INPUT, true); |
| 216 | createChildChains(V4V6, "filter", "FORWARD", FILTER_FORWARD, true); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 217 | createChildChains(V4V6, "raw", "PREROUTING", RAW_PREROUTING, true); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 218 | createChildChains(V4V6, "mangle", "FORWARD", MANGLE_FORWARD, true); |
Lorenzo Colitti | d78843e | 2017-03-27 05:52:31 +0900 | [diff] [blame] | 219 | createChildChains(V4V6, "mangle", "INPUT", MANGLE_INPUT, true); |
Lorenzo Colitti | cda022e | 2017-02-03 12:35:46 +0900 | [diff] [blame] | 220 | createChildChains(V4, "nat", "PREROUTING", NAT_PREROUTING, true); |
| 221 | createChildChains(V4, "nat", "POSTROUTING", NAT_POSTROUTING, true); |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 222 | |
Lorenzo Colitti | adc3a5f | 2017-08-08 17:23:12 +0900 | [diff] [blame] | 223 | createChildChains(V4, "filter", "OUTPUT", FILTER_OUTPUT, false); |
| 224 | createChildChains(V6, "filter", "OUTPUT", FILTER_OUTPUT, false); |
| 225 | createChildChains(V4, "mangle", "POSTROUTING", MANGLE_POSTROUTING, false); |
| 226 | createChildChains(V6, "mangle", "POSTROUTING", MANGLE_POSTROUTING, false); |
Lorenzo Colitti | 341d3a0 | 2017-08-08 17:31:35 +0900 | [diff] [blame] | 227 | } |
| 228 | |
| 229 | void Controllers::initIptablesRules() { |
| 230 | Stopwatch s; |
| 231 | initChildChains(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 232 | ALOGI("Creating child chains: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 233 | |
| 234 | // Let each module setup their child chains |
| 235 | setupOemIptablesHook(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 236 | ALOGI("Setting up OEM hooks: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 237 | |
| 238 | /* When enabled, DROPs all packets except those matching rules. */ |
| 239 | firewallCtrl.setupIptablesHooks(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 240 | ALOGI("Setting up FirewallController hooks: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 241 | |
| 242 | /* Does DROPs in FORWARD by default */ |
Lorenzo Colitti | a93126d | 2017-08-24 13:28:19 +0900 | [diff] [blame] | 243 | tetherCtrl.setupIptablesHooks(); |
| 244 | ALOGI("Setting up TetherController hooks: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 245 | |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 246 | /* |
| 247 | * Does REJECT in INPUT, OUTPUT. Does counting also. |
| 248 | * No DROP/REJECT allowed later in netfilter-flow hook order. |
| 249 | */ |
| 250 | bandwidthCtrl.setupIptablesHooks(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 251 | ALOGI("Setting up BandwidthController hooks: %.1fms", s.getTimeAndReset()); |
| 252 | |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 253 | /* |
| 254 | * Counts in nat: PREROUTING, POSTROUTING. |
| 255 | * No DROP/REJECT allowed later in netfilter-flow hook order. |
| 256 | */ |
| 257 | idletimerCtrl.setupIptablesHooks(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 258 | ALOGI("Setting up IdletimerController hooks: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | void Controllers::init() { |
| 262 | initIptablesRules(); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 263 | |
| 264 | Stopwatch s; |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 265 | bandwidthCtrl.enableBandwidthControl(false); |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 266 | ALOGI("Disabling bandwidth control: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 267 | |
| 268 | if (int ret = RouteController::Init(NetworkController::LOCAL_NET_ID)) { |
| 269 | ALOGE("failed to initialize RouteController (%s)", strerror(-ret)); |
| 270 | } |
Lorenzo Colitti | 19ee8a8 | 2017-02-02 12:59:05 +0900 | [diff] [blame] | 271 | ALOGI("Initializing RouteController: %.1fms", s.getTimeAndReset()); |
Lorenzo Colitti | 1ed96e2 | 2017-02-02 12:21:56 +0900 | [diff] [blame] | 272 | } |
| 273 | |
Pierre Imai | 1cfa543 | 2016-02-24 18:00:03 +0900 | [diff] [blame] | 274 | Controllers* gCtls = nullptr; |
| 275 | |
| 276 | } // namespace net |
| 277 | } // namespace android |