Add RouteInfo objects for tracking routes.
Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
This commit is contained in:
@@ -20,6 +20,7 @@ package com.android.internal.telephony;
|
||||
import android.net.LinkAddress;
|
||||
import android.net.LinkProperties;
|
||||
import android.net.NetworkUtils;
|
||||
import android.net.RouteInfo;
|
||||
import android.os.SystemProperties;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -196,7 +197,7 @@ public class DataCallState {
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new UnknownHostException("Non-numeric gateway addr=" + addr);
|
||||
}
|
||||
linkProperties.addGateway(ia);
|
||||
linkProperties.addRoute(new RouteInfo(ia));
|
||||
}
|
||||
|
||||
result = SetupResult.SUCCESS;
|
||||
@@ -223,5 +224,3 @@ public class DataCallState {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user