Home
last modified time | relevance | path

Searched refs:IkeTrafficSelector (Results 1 – 21 of 21) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeTrafficSelectorTest.java70 private IkeTrafficSelector mTsOne;
71 private IkeTrafficSelector mTsTwo;
72 private IkeTrafficSelector mTsIpv6Three;
76 new IkeTrafficSelector( in IkeTrafficSelectorTest()
77 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTrafficSelectorTest()
83 new IkeTrafficSelector( in IkeTrafficSelectorTest()
84 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTrafficSelectorTest()
90 new IkeTrafficSelector( in IkeTrafficSelectorTest()
91 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV6_ADDR_RANGE, in IkeTrafficSelectorTest()
104 IkeTrafficSelector[] selectors = in testDecodeIkeTrafficSelectors()
[all …]
DChildSessionParamsTest.java39 private final IkeTrafficSelector mTsInbound;
40 private final IkeTrafficSelector mTsOutbound;
50 new IkeTrafficSelector( in ChildSessionParamsTest()
56 new IkeTrafficSelector( in ChildSessionParamsTest()
70 new IkeTrafficSelector[] {getExpectedDefaultIpv4Ts(), getExpectedDefaultIpv6Ts()}, in testBuild()
73 new IkeTrafficSelector[] {getExpectedDefaultIpv4Ts(), getExpectedDefaultIpv6Ts()}, in testBuild()
138 private IkeTrafficSelector getExpectedDefaultIpv4Ts() { in getExpectedDefaultIpv4Ts()
142 return new IkeTrafficSelector(0, 65535, tsStartAddress, tsEndAddress); in getExpectedDefaultIpv4Ts()
145 private IkeTrafficSelector getExpectedDefaultIpv6Ts() { in getExpectedDefaultIpv6Ts()
150 return new IkeTrafficSelector(0, 65535, tsStartAddress, tsEndAddress); in getExpectedDefaultIpv6Ts()
DChildSessionConfigurationTest.java81 mMockInTsList = new ArrayList<IkeTrafficSelector>(); in setUp()
82 mMockInTsList.add(mock(IkeTrafficSelector.class)); in setUp()
84 mMockOutTsList = new ArrayList<IkeTrafficSelector>(); in setUp()
85 mMockOutTsList.add(mock(IkeTrafficSelector.class)); in setUp()
86 mMockOutTsList.add(mock(IkeTrafficSelector.class)); in setUp()
109 List<IkeTrafficSelector> expectedList, List<IkeTrafficSelector> tsList) { in verifyTsList()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionParams.java72 @NonNull private static final IkeTrafficSelector DEFAULT_TRAFFIC_SELECTOR_IPV4;
73 @NonNull private static final IkeTrafficSelector DEFAULT_TRAFFIC_SELECTOR_IPV6;
78 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE);
81 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV6_ADDR_RANGE);
96 @NonNull private final IkeTrafficSelector[] mInboundTrafficSelectors;
97 @NonNull private final IkeTrafficSelector[] mOutboundTrafficSelectors;
107 IkeTrafficSelector[] inboundTs, in ChildSessionParams()
108 IkeTrafficSelector[] outboundTs, in ChildSessionParams()
156 IkeTrafficSelector::toPersistableBundle); in toPersistableBundle()
162 IkeTrafficSelector::toPersistableBundle); in toPersistableBundle()
[all …]
DIkeTrafficSelector.java49 public final class IkeTrafficSelector { class
125 private IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
155 public IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
180 public IkeTrafficSelector( in IkeTrafficSelector() method in IkeTrafficSelector
235 public static IkeTrafficSelector fromPersistableBundle(@NonNull PersistableBundle in) { in fromPersistableBundle()
248 return new IkeTrafficSelector(startPort, endPort, startingAddress, endingAddress); in fromPersistableBundle()
279 public static IkeTrafficSelector[] decodeIkeTrafficSelectors(int numTs, byte[] tsBytes) in decodeIkeTrafficSelectors()
281 IkeTrafficSelector[] tsArray = new IkeTrafficSelector[numTs]; in decodeIkeTrafficSelectors()
316 private static IkeTrafficSelector decodeTrafficSelector(ByteBuffer inputBuffer, int tsType) in decodeTrafficSelector()
364 return new IkeTrafficSelector( in decodeTrafficSelector()
[all …]
DTransportModeChildSessionParams.java33 IkeTrafficSelector[] inboundTs, in TransportModeChildSessionParams()
34 IkeTrafficSelector[] outboundTs, in TransportModeChildSessionParams()
67 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, INBOUND_TS_KEY)) { in fromPersistableBundle()
71 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, OUTBOUND_TS_KEY)) { in fromPersistableBundle()
153 public Builder addInboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addInboundTrafficSelectors()
177 public Builder addOutboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addOutboundTrafficSelectors()
227 mInboundTsList.toArray(new IkeTrafficSelector[0]), in build()
228 mOutboundTsList.toArray(new IkeTrafficSelector[0]), in build()
DChildSessionConfiguration.java58 private final List<IkeTrafficSelector> mInboundTs = new ArrayList<>();
59 private final List<IkeTrafficSelector> mOutboundTs = new ArrayList<>();
75 List<IkeTrafficSelector> inTs, in ChildSessionConfiguration()
76 List<IkeTrafficSelector> outTs, in ChildSessionConfiguration()
149 List<IkeTrafficSelector> inTs, List<IkeTrafficSelector> outTs) { in ChildSessionConfiguration()
160 List<IkeTrafficSelector> inTs, in ChildSessionConfiguration()
161 List<IkeTrafficSelector> outTs, in ChildSessionConfiguration()
185 public List<IkeTrafficSelector> getInboundTrafficSelectors() { in getInboundTrafficSelectors()
200 public List<IkeTrafficSelector> getOutboundTrafficSelectors() { in getOutboundTrafficSelectors()
264 private final List<IkeTrafficSelector> mInboundTs = new ArrayList<>();
[all …]
DTunnelModeChildSessionParams.java60 @NonNull IkeTrafficSelector[] inboundTs, in TunnelModeChildSessionParams()
61 @NonNull IkeTrafficSelector[] outboundTs, in TunnelModeChildSessionParams()
95 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, INBOUND_TS_KEY)) { in fromPersistableBundle()
99 for (IkeTrafficSelector ts : getTsFromPersistableBundle(in, OUTBOUND_TS_KEY)) { in fromPersistableBundle()
296 public Builder addInboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addInboundTrafficSelectors()
320 public Builder addOutboundTrafficSelectors(@NonNull IkeTrafficSelector trafficSelector) { in addOutboundTrafficSelectors()
563 mInboundTsList.toArray(new IkeTrafficSelector[0]), in build()
564 mOutboundTsList.toArray(new IkeTrafficSelector[0]), in build()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayloadTest.java25 import android.net.ipsec.test.ike.IkeTrafficSelector;
54 private IkeTrafficSelector mTsOne;
55 private IkeTrafficSelector mTsTwo;
59 new IkeTrafficSelector( in IkeTsPayloadTest()
60 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTsPayloadTest()
66 new IkeTrafficSelector( in IkeTsPayloadTest()
67 IkeTrafficSelector.TRAFFIC_SELECTOR_TYPE_IPV4_ADDR_RANGE, in IkeTsPayloadTest()
93 new IkeTsPayload(true /*isInitiator*/, new IkeTrafficSelector[] {mTsOne, mTsTwo}); in testBuildAndEncodeTsPayload()
104 IkeTrafficSelector tsOneNarrowPortRange = in testContains()
105 new IkeTrafficSelector( in testContains()
[all …]
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTestBase.java23 import android.net.ipsec.ike.IkeTrafficSelector;
76 static final IkeTrafficSelector DEFAULT_V4_TS =
77 new IkeTrafficSelector(
82 static final IkeTrafficSelector DEFAULT_V6_TS =
83 new IkeTrafficSelector(
88 static final IkeTrafficSelector INBOUND_V4_TS =
89 new IkeTrafficSelector(
94 static final IkeTrafficSelector OUTBOUND_V4_TS =
95 new IkeTrafficSelector(
101 static final IkeTrafficSelector INBOUND_V6_TS =
[all …]
DIkeSessionTestBase.java39 import android.net.ipsec.ike.IkeTrafficSelector;
103 static final IkeTrafficSelector TUNNEL_MODE_INBOUND_TS =
104 new IkeTrafficSelector(
106 static final IkeTrafficSelector TUNNEL_MODE_OUTBOUND_TS = DEFAULT_V4_TS;
107 static final IkeTrafficSelector TUNNEL_MODE_INBOUND_TS_V6 =
108 new IkeTrafficSelector(
110 static final IkeTrafficSelector TUNNEL_MODE_OUTBOUND_TS_V6 = DEFAULT_V6_TS;
113 static final IkeTrafficSelector TRANSPORT_MODE_OUTBOUND_TS =
114 new IkeTrafficSelector(
237 IkeTrafficSelector inboundTs, IkeTrafficSelector outboundTs) { in buildTransportModeChildParamsWithTs()
[all …]
DIkeSessionDigitalSignatureTest.java24 import android.net.ipsec.ike.IkeTrafficSelector;
120 private static final IkeTrafficSelector TRANSPORT_MODE_IN_TS =
121 new IkeTrafficSelector(
127 private static final IkeTrafficSelector TRANSPORT_MODE_OUT_TS =
128 new IkeTrafficSelector(
DIkeSessionMschapV2Test.java25 import android.net.ipsec.ike.IkeTrafficSelector;
133 private static final IkeTrafficSelector TRANSPORT_MODE_IN_TS =
134 new IkeTrafficSelector(
140 private static final IkeTrafficSelector TRANSPORT_MODE_OUT_TS =
141 new IkeTrafficSelector(
DIkeSessionLivenessCheckTest.java31 import android.net.ipsec.ike.IkeTrafficSelector;
58 private static final IkeTrafficSelector TRANSPORT_MODE_INBOUND_TS =
59 new IkeTrafficSelector(
DIkeSessionRekeyTest.java27 import android.net.ipsec.ike.IkeTrafficSelector;
46 private static final IkeTrafficSelector TRANSPORT_MODE_INBOUND_TS =
47 new IkeTrafficSelector(
DSessionConfigurationTest.java40 import android.net.ipsec.ike.IkeTrafficSelector;
59 private static final List<IkeTrafficSelector> IN_TS_LIST =
61 private static final List<IkeTrafficSelector> OUT_TS_LIST =
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeTsPayload.java19 import android.net.ipsec.ike.IkeTrafficSelector;
45 public final IkeTrafficSelector[] trafficSelectors;
63 trafficSelectors = IkeTrafficSelector.decodeIkeTrafficSelectors(numTs, tsBytes); in IkeTsPayload()
72 public IkeTsPayload(boolean isInitiator, IkeTrafficSelector[] ikeTrafficSelectors) { in IkeTsPayload()
99 for (IkeTrafficSelector subTs : tsPayload.trafficSelectors) { in contains()
100 for (IkeTrafficSelector superTs : this.trafficSelectors) { in contains()
121 for (IkeTrafficSelector ts : trafficSelectors) { in encodeToByteBuffer()
134 for (IkeTrafficSelector ts : trafficSelectors) { in getPayloadLength()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachine.java60 import android.net.ipsec.ike.IkeTrafficSelector;
208 @VisibleForTesting IkeTrafficSelector[] mLocalTs;
210 @VisibleForTesting IkeTrafficSelector[] mRemoteTs;
2279 IkeTrafficSelector[] currentLocalTs, in getRekeyChildCreateReqPayloads()
2280 IkeTrafficSelector[] currentRemoteTs, in getRekeyChildCreateReqPayloads()
2309 IkeTrafficSelector[] currentLocalTs, in getRekeyChildCreateRespPayloads()
2310 IkeTrafficSelector[] currentRemoteTs, in getRekeyChildCreateRespPayloads()
2336 IkeTrafficSelector[] initTs, in getChildCreatePayloads()
2337 IkeTrafficSelector[] respTs, in getChildCreatePayloads()
2574 Pair<IkeTrafficSelector[], IkeTrafficSelector[]> tsPair = in validateAndNegotiateChild()
[all …]
/packages/modules/IPsec/api/
Dcurrent.txt110 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getInboundTrafficS…
111 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getOutboundTraffic…
115 …a.util.List<android.net.ipsec.ike.IkeTrafficSelector>, @NonNull java.util.List<android.net.ipsec.i…
122 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getInboundTrafficS…
123 …method @NonNull public java.util.List<android.net.ipsec.ike.IkeTrafficSelector> getOutboundTraffic…
287 public final class IkeTrafficSelector {
288 …ctor public IkeTrafficSelector(int, int, @NonNull java.net.InetAddress, @NonNull java.net.InetAddr…
346 …essionParams.Builder addInboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
347 …ssionParams.Builder addOutboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
360 …essionParams.Builder addInboundTrafficSelectors(@NonNull android.net.ipsec.ike.IkeTrafficSelector);
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DChildSessionStateMachineTest.java87 import android.net.ipsec.test.ike.IkeTrafficSelector;
559 List<IkeTrafficSelector> expectedList, List<IkeTrafficSelector> tsList) { in verifyTsList()
1139 IkeTrafficSelector[] initTs = in makeInboundRekeyChildPayloads()
1143 IkeTrafficSelector[] respTs = in makeInboundRekeyChildPayloads()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgTunnelManager.java53 import android.net.ipsec.ike.IkeTrafficSelector;
1084 private static IkeTrafficSelector getDefaultTrafficSelectorIpv4() { in getDefaultTrafficSelectorIpv4()
1085 return new IkeTrafficSelector( in getDefaultTrafficSelectorIpv4()
1092 private static IkeTrafficSelector getDefaultTrafficSelectorIpv6() { in getDefaultTrafficSelectorIpv6()
1093 return new IkeTrafficSelector( in getDefaultTrafficSelectorIpv6()