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

Commit 1408ee6d authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Automerger Merge Worker
Browse files

Merge "Relax IPsec resource count restrictions." into rvc-dev am: 0741d3b8 am: 52ad9bed

Change-Id: I73726e9ef785fc0b5cf523cc14c64b7ab857e8c6
parents c70f5e62 52ad9bed
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -359,10 +359,14 @@ public class IpSecService extends IIpSecService.Stub {
    @VisibleForTesting
    static final class UserRecord {
        /* Maximum number of each type of resource that a single UID may possess */
        public static final int MAX_NUM_TUNNEL_INTERFACES = 2;
        public static final int MAX_NUM_ENCAP_SOCKETS = 2;
        public static final int MAX_NUM_TRANSFORMS = 4;
        public static final int MAX_NUM_SPIS = 8;

        // Up to 4 active VPNs/IWLAN with potential soft handover.
        public static final int MAX_NUM_TUNNEL_INTERFACES = 8;
        public static final int MAX_NUM_ENCAP_SOCKETS = 16;

        // SPIs and Transforms are both cheap, and are 1:1 correlated.
        public static final int MAX_NUM_TRANSFORMS = 64;
        public static final int MAX_NUM_SPIS = 64;

        /**
         * Store each of the OwnedResource types in an (thinly wrapped) sparse array for indexing