Merge "Explicitly check route type in NetworkDiagnostics"

This commit is contained in:
Taras Antoshchuk 2022-03-17 11:08:50 +00:00 • committed by Gerrit Code Review
commit 1c2f79705f

View file

@ -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()) {