diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/net/Ikev2VpnProfile.java | 2 | ||||
| -rw-r--r-- | core/java/android/net/PlatformVpnProfile.java | 3 |
2 files changed, 4 insertions, 1 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 */ |
