Merge "Log UID and PID of legacy route requests."

This commit is contained in:
Lorenzo Colitti
2015-10-09 06:35:51 +00:00
committed by Android (Google) Code Review

View File

@@ -1366,7 +1366,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface); bestRoute = RouteInfo.makeHostRoute(addr, bestRoute.getGateway(), iface);
} }
} }
if (DBG) log("Adding " + bestRoute + " for interface " + bestRoute.getInterface()); if (DBG) log("Adding legacy route " + bestRoute +
" for UID/PID " + uid + "/" + Binder.getCallingPid());
try { try {
mNetd.addLegacyRouteForNetId(netId, bestRoute, uid); mNetd.addLegacyRouteForNetId(netId, bestRoute, uid);
} catch (Exception e) { } catch (Exception e) {