Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac1921ad authored by Benedict Wong's avatar Benedict Wong
Browse files

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
parent febaec9f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -80,8 +80,10 @@ public final class LinkProperties implements Parcelable {
    private final transient boolean mParcelSensitiveFields;

    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 INET6_ADDR_LENGTH = 16;