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
Merged-In: Iec3d5fc4a9bcad7c104414afefae775232d46558
(cherry picked from commit dcbc670688d815ce89954765fac46aa2ad6d8adb)
This commit is contained in:
Benedict Wong
2018-07-16 14:56:20 -07:00
parent 197077dc8f
commit c45974b0d6

View File

@@ -947,7 +947,8 @@ public final class IpSecManager {
throw new IllegalArgumentException(sse); throw new IllegalArgumentException(sse);
} else if (sse.errorCode == OsConstants.EAGAIN) { } else if (sse.errorCode == OsConstants.EAGAIN) {
throw new IllegalStateException(sse); throw new IllegalStateException(sse);
} else if (sse.errorCode == OsConstants.EOPNOTSUPP) { } else if (sse.errorCode == OsConstants.EOPNOTSUPP
|| sse.errorCode == OsConstants.EPROTONOSUPPORT) {
throw new UnsupportedOperationException(sse); throw new UnsupportedOperationException(sse);
} }
} }