From 00c5e70471bf5fd0d49ca1242d05968217de4a49 Mon Sep 17 00:00:00 2001 From: Remi NGUYEN VAN Date: Mon, 30 Nov 2020 16:35:43 +0900 Subject: [PATCH] Use IPV6_MIN_MTU from NetworkConstants in Ikev2Vpn Instead of sharing the constant from LinkProperties, use the already defined constant in the NetworkConstants class. This allows Ikev2VpnProfile to allow depending on non-public LinkProperties APIs, as LinkProperties is planned to move to framework-connectivity. Bug: 174436414 Test: m Change-Id: I594bb7e81bc7681799c16eff621a5ffd1b29624c --- core/java/android/net/LinkProperties.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/java/android/net/LinkProperties.java b/core/java/android/net/LinkProperties.java index 06046f7ded..0941e7dbed 100644 --- a/core/java/android/net/LinkProperties.java +++ b/core/java/android/net/LinkProperties.java @@ -81,8 +81,7 @@ public final class LinkProperties implements Parcelable { private static final int MIN_MTU = 68; - /** @hide */ - public static final int MIN_MTU_V6 = 1280; + private static final int MIN_MTU_V6 = 1280; private static final int MAX_MTU = 10000;