Merge "Explicitly check route type in NetworkDiagnostics" am: 1c2f79705f
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1784544 Change-Id: I3ad62ce4b176c4fecfc100a2171a833d3c967c96
This commit is contained in:
commit
37a3fd117b
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ public class NetworkDiagnostics {
|
|||
}
|
||||
|
||||
for (RouteInfo route : mLinkProperties.getRoutes()) {
|
||||
if (route.hasGateway()) {
|
||||
if (route.getType() == RouteInfo.RTN_UNICAST && route.hasGateway()) {
|
||||
InetAddress gateway = route.getGateway();
|
||||
prepareIcmpMeasurement(gateway);
|
||||
if (route.isIPv6Default()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue