Expose MIN_MTU_V6 as a public, @hide constant

MIN_MTU_V6 is increasingly used, and the LinkProperties version is used
as a source of truth for the constant.

Bug: 163602123
Test: atest FrameworksNetTests
Change-Id: I67134cd4fb7e2cf59c36947b62f681ac9b94ea4a
This commit is contained in:
Benedict Wong
2020-11-19 00:17:29 -08:00
parent c6cd3d4f7b
commit f3215117bc

View File

@@ -80,8 +80,10 @@ public final class LinkProperties implements Parcelable {
private final transient boolean mParcelSensitiveFields; private final transient boolean mParcelSensitiveFields;
private static final int MIN_MTU = 68; private static final int MIN_MTU = 68;
/* package-visibility - Used in other files (such as Ikev2VpnProfile) as minimum iface MTU. */
static final int MIN_MTU_V6 = 1280; /** @hide */
public static final int MIN_MTU_V6 = 1280;
private static final int MAX_MTU = 10000; private static final int MAX_MTU = 10000;
private static final int INET6_ADDR_LENGTH = 16; private static final int INET6_ADDR_LENGTH = 16;