From c447220e53c5ef80382ee199a500e7d17d463f34 Mon Sep 17 00:00:00 2001 From: Sreeram Ramachandran Date: Tue, 3 Jun 2014 18:41:43 -0700 Subject: [PATCH] Add a new IpPrefix class and use it in RouteInfo. This change uses IpPrefix only in the public API and continues to use LinkAddress for everything else. It does not change the callers to use the new APIs, with the exception of changing all current uses of getDestination to getDestinationLinkAddress to make room for the new getDestination method that returns an IpPrefix. Based on Sreeram's earlier change: https://googleplex-android-review.git.corp.google.com/#/c/477874/ but a bit simplified and with a bit more documentation. Bug: 15142362 Bug: 13885501 Change-Id: Ib4cd96b22cbff4ea31bb26a7853989f50da8de4e --- services/core/java/com/android/server/net/IpConfigStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/net/IpConfigStore.java b/services/core/java/com/android/server/net/IpConfigStore.java index bb0d5fe608..35bc6ec4cd 100644 --- a/services/core/java/com/android/server/net/IpConfigStore.java +++ b/services/core/java/com/android/server/net/IpConfigStore.java @@ -85,7 +85,7 @@ public class IpConfigStore { } for (RouteInfo route : linkProperties.getRoutes()) { out.writeUTF(GATEWAY_KEY); - LinkAddress dest = route.getDestination(); + LinkAddress dest = route.getDestinationLinkAddress(); if (dest != null) { out.writeInt(1); out.writeUTF(dest.getAddress().getHostAddress());