Home
last modified time | relevance | path

Searched refs:pkt (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/net/src/android/net/cts/
DTunUtils.java105 byte[] pkt = mPackets.get(i); in getFirstMatchingPacket()
106 if (verifier.test(pkt)) { in getFirstMatchingPacket()
107 return pkt; in getFirstMatchingPacket()
120 final byte[] pkt = getFirstMatchingPacket(verifier, startIndex); in awaitPacket()
121 if (pkt != null) { in awaitPacket()
122 return pkt; // We've found the packet we're looking for. in awaitPacket()
142 (pkt) -> isEspFailIfSpecifiedPlaintextFound(pkt, spi, useEncap, plaintext)); in awaitEspPacketNoPlaintext()
150 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument
152 return pkt[espOffset] == (byte) ((spi >>> 24) & 0xff) in isSpiEqual()
153 && pkt[espOffset + 1] == (byte) ((spi >>> 16) & 0xff) in isSpiEqual()
[all …]
DIkeTunUtils.java73 return super.awaitPacket(pkt -> isIke(pkt, expectedInitIkeSpi, expectedMsgId, expectEncap)); in awaitIkePacket()
77 byte[] pkt, long expectedInitIkeSpi, int expectedMsgId, boolean encapExpected) { in isIke() argument
81 if (isIpv6(pkt)) { in isIke()
85 if (encapExpected && !hasNonEspMarkerv4(pkt)) { in isIke()
95 return pkt[ipProtocolOffset] == IPPROTO_UDP in isIke()
96 && areSpiAndMsgIdEqual(pkt, ikeOffset, expectedInitIkeSpi, expectedMsgId); in isIke()
112 byte[] pkt, int ikeOffset, long expectedIkeInitSpi, int expectedMsgId) { in areSpiAndMsgIdEqual() argument
113 if (pkt.length <= ikeOffset + IKE_HEADER_LEN) { in areSpiAndMsgIdEqual()
117 final ByteBuffer buffer = ByteBuffer.wrap(pkt); in areSpiAndMsgIdEqual()
124 private static InetAddress getSrcAddress(byte[] pkt) throws Exception { in getSrcAddress() argument
[all …]
DIpSecManagerTunnelTest.java371 byte[] pkt;
373 pkt =
384 pkt =
394 sTunUtils.injectPacket(pkt);
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DTunUtils.java113 byte[] pkt = mPackets.get(i); in getFirstMatchingPacket()
114 if (verifier.test(pkt)) { in getFirstMatchingPacket()
115 return pkt; in getFirstMatchingPacket()
132 (pkt) -> { in hasPlaintextPacket()
133 return Collections.indexOfSubList(Arrays.asList(pkt), Arrays.asList(plaintext)) in hasPlaintextPacket()
141 (pkt) -> { in getEspPacket()
142 return isEsp(pkt, spi, encap); in getEspPacket()
178 private static boolean isSpiEqual(byte[] pkt, int espOffset, int spi) { in isSpiEqual() argument
180 return pkt[espOffset] == (byte) ((spi >>> 24) & 0xff) in isSpiEqual()
181 && pkt[espOffset + 1] == (byte) ((spi >>> 16) & 0xff) in isSpiEqual()
[all …]
DIkeTunUtils.java104 (pkt) -> { in awaitReqAndInjectResp()
106 pkt, in awaitReqAndInjectResp()
120 (pkt) -> { in awaitReqAndInjectResp()
122 pkt, in awaitReqAndInjectResp()
160 (pkt) -> { in awaitResp()
162 pkt, in awaitResp()
197 byte[] pkt, in isExpectedIkePkt() argument
202 int ipProtocolOffset = isIpv6(pkt) ? IP6_PROTO_OFFSET : IP4_PROTO_OFFSET; in isExpectedIkePkt()
203 int ikeOffset = getIkeOffset(pkt, expectedUseEncap); in isExpectedIkePkt()
205 return pkt[ipProtocolOffset] == IPPROTO_UDP in isExpectedIkePkt()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-3145/
Dpoc.c63 static int send_receive_packet(int s[2], const void* pkt, int len) in send_receive_packet() argument
68 ret = send(s[1], pkt, len, 0); in send_receive_packet()
/cts/tests/tests/media/assets/hls_variant/1676816/
D07.ts7098 Mc�T��l��%�7����CC�ܦ\pkt�^�i�޷̈́f�̲ը��~7��g)_*风u��w�7�u�G�����…��Z Ɔ���]��w|5���d�,���q<��e7…
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv31 …oonmopopqtwxxwwsnmoopqontzyrpq{������j`iv~~����������������FKMMLMQOKJGICFq�pkt�������[9f��\t��(Y��…
187 …\ZVW[]_b`^XSQPQW]bimnppqomklvzvmfc\VZajqwueZZ]gnnjgdb`]ZYVUTPIL\ksuvyxwxy{{pkt{~�������������{li`i…
226 …��������������~{|��������}n\NJNUYcjmonmnmklmlmkknjc�������������ӈ������y��}pkt��|~}|~���������t@]`…
299 …qonkkifeebcccdhhhjiggggggffghghjjkhl����̓I5;?@A@B?<=?=;;:9;I\cehginebw�����pkt}ytqnmjghhhghjhfgffe…