diff options
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/net/Ikev2VpnProfile.java | 2 | ||||
| -rw-r--r-- | core/java/android/net/PlatformVpnProfile.java | 3 | ||||
| -rw-r--r-- | core/java/com/android/internal/net/VpnProfile.java | 9 |
3 files changed, 9 insertions, 5 deletions
diff --git a/core/java/android/net/Ikev2VpnProfile.java b/core/java/android/net/Ikev2VpnProfile.java index f19a3410d673..81d03f07d0be 100644 --- a/core/java/android/net/Ikev2VpnProfile.java +++ b/core/java/android/net/Ikev2VpnProfile.java @@ -562,7 +562,7 @@ public final class Ikev2VpnProfile extends PlatformVpnProfile { @NonNull private List<String> mAllowedAlgorithms = new ArrayList<>(); private boolean mIsBypassable = false; private boolean mIsMetered = true; - private int mMaxMtu = 1360; + private int mMaxMtu = PlatformVpnProfile.MAX_MTU_DEFAULT; /** * Creates a new builder with the basic parameters of an IKEv2/IPsec VPN. diff --git a/core/java/android/net/PlatformVpnProfile.java b/core/java/android/net/PlatformVpnProfile.java index fbae63707be2..445ec91e4f46 100644 --- a/core/java/android/net/PlatformVpnProfile.java +++ b/core/java/android/net/PlatformVpnProfile.java @@ -60,6 +60,9 @@ public abstract class PlatformVpnProfile { public static final int TYPE_IKEV2_IPSEC_RSA = VpnProfile.TYPE_IKEV2_IPSEC_RSA; /** @hide */ + public static final int MAX_MTU_DEFAULT = 1360; + + /** @hide */ @PlatformVpnType protected final int mType; /** @hide */ diff --git a/core/java/com/android/internal/net/VpnProfile.java b/core/java/com/android/internal/net/VpnProfile.java index 23b1ab52cb21..829bd8a5a2a7 100644 --- a/core/java/com/android/internal/net/VpnProfile.java +++ b/core/java/com/android/internal/net/VpnProfile.java @@ -19,6 +19,7 @@ package com.android.internal.net; import android.annotation.NonNull; import android.compat.annotation.UnsupportedAppUsage; import android.net.Ikev2VpnProfile; +import android.net.PlatformVpnProfile; import android.net.ProxyInfo; import android.os.Build; import android.os.Parcel; @@ -131,10 +132,10 @@ public final class VpnProfile implements Cloneable, Parcelable { * delimiters) are not present in the algorithm names. See {@link #validateAllowedAlgorithms()} */ private List<String> mAllowedAlgorithms = new ArrayList<>(); // 19 - public boolean isBypassable = false; // 20 - public boolean isMetered = false; // 21 - public int maxMtu = 1400; // 22 - public boolean areAuthParamsInline = false; // 23 + public boolean isBypassable = false; // 20 + public boolean isMetered = false; // 21 + public int maxMtu = PlatformVpnProfile.MAX_MTU_DEFAULT; // 22 + public boolean areAuthParamsInline = false; // 23 // Helper fields. @UnsupportedAppUsage |
