Home
last modified time | relevance | path

Searched refs:IP6_HDRLEN (Results 1 – 10 of 10) sorted by relevance

/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp48 static constexpr ssize_t IP6_HDRLEN = sizeof(struct ip6_hdr); variable
271 if (ipv6Packet.size() < IP6_HDRLEN) { in validateIpv6Packet()
282 return validateUdpPacket(drop(ipv6Packet, IP6_HDRLEN)); in validateIpv6Packet()
284 return validateTcpPacket(drop(ipv6Packet, IP6_HDRLEN)); in validateIpv6Packet()
362 const size_t ipHeaderLen = IP6_HDRLEN; in translateIpv6Packet()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTunUtils.java20 import static android.ipsec.ike.cts.PacketUtils.IP6_HDRLEN;
224 int hdrLen = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in getIkeOffset()
234 int hdrLen = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in hasNonEspMarker()
337 int srcPortOffset = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in getPort()
DTunUtils.java19 import static android.ipsec.ike.cts.PacketUtils.IP6_HDRLEN;
189 return pkt[IP6_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP6_HDRLEN, spi); in isEsp()
DPacketUtils.java48 static final int IP6_HDRLEN = 40; field in PacketUtils
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkeTunUtils.java20 import static android.net.cts.PacketUtils.IP6_HDRLEN;
83 ikeOffset = IP6_HDRLEN + UDP_HDRLEN; in isIke()
155 final int srcPortOffset = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in getPort()
DIpSecAlgorithmImplTest.java43 import static android.net.cts.PacketUtils.IP6_HDRLEN;
180 final byte[] outEspPayload = new byte[outEspPacket.length - IP6_HDRLEN]; in runTest()
181 System.arraycopy(outEspPacket, IP6_HDRLEN, outEspPayload, 0, outEspPayload.length); in runTest()
DTunUtils.java20 import static android.net.cts.PacketUtils.IP6_HDRLEN;
183 return pkt[IP6_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP6_HDRLEN, spi); in isEsp()
DIpSecManagerTunnelTest.java26 import static android.net.cts.PacketUtils.IP6_HDRLEN;
284 expectedPacketSize += innerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
295 expectedPacketSize += outerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
DPacketUtils.java47 static final int IP6_HDRLEN = 40; field in PacketUtils
DIpSecManagerTest.java47 import static android.net.cts.PacketUtils.IP6_HDRLEN;
521 int ipHdrLen = local instanceof Inet6Address ? IP6_HDRLEN : IP4_HDRLEN; in checkTransform()