summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorBenedict Wong <benedictwong@google.com>2018-07-16 14:56:20 -0700
committerBenedict Wong <benedictwong@google.com>2019-04-24 21:31:01 +0000
commitdcbc670688d815ce89954765fac46aa2ad6d8adb (patch)
tree2840ca4921e9eb130cb9a9bf2d75e92e1102eba1 /core/java
parent8442966df91c37e06fd48a2e8f01391d6a20c07e (diff)
Add EPROTONOSUPPORT to IpSecManager SSE map
This change maps EPROTONOSUPPORT to the list of error codes that map to UnsupportedOperationException in IpSecManager. Bug: 80103456 Test: Compiles, CTS tests ran Change-Id: Iec3d5fc4a9bcad7c104414afefae775232d46558
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/net/IpSecManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/net/IpSecManager.java b/core/java/android/net/IpSecManager.java
index d4c3edca4367..889e9bc7875e 100644
--- a/core/java/android/net/IpSecManager.java
+++ b/core/java/android/net/IpSecManager.java
@@ -941,7 +941,8 @@ public final class IpSecManager {
throw new IllegalArgumentException(sse);
} else if (sse.errorCode == OsConstants.EAGAIN) {
throw new IllegalStateException(sse);
- } else if (sse.errorCode == OsConstants.EOPNOTSUPP) {
+ } else if (sse.errorCode == OsConstants.EOPNOTSUPP
+ || sse.errorCode == OsConstants.EPROTONOSUPPORT) {
throw new UnsupportedOperationException(sse);
}
}