Searched refs:IP6_HDRLEN (Results 1 – 10 of 10) sorted by relevance
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 48 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/ |
D | IkeTunUtils.java | 20 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()
|
D | TunUtils.java | 19 import static android.ipsec.ike.cts.PacketUtils.IP6_HDRLEN; 189 return pkt[IP6_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP6_HDRLEN, spi); in isEsp()
|
D | PacketUtils.java | 48 static final int IP6_HDRLEN = 40; field in PacketUtils
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | IkeTunUtils.java | 20 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()
|
D | IpSecAlgorithmImplTest.java | 43 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()
|
D | TunUtils.java | 20 import static android.net.cts.PacketUtils.IP6_HDRLEN; 183 return pkt[IP6_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP6_HDRLEN, spi); in isEsp()
|
D | IpSecManagerTunnelTest.java | 26 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()
|
D | PacketUtils.java | 47 static final int IP6_HDRLEN = 40; field in PacketUtils
|
D | IpSecManagerTest.java | 47 import static android.net.cts.PacketUtils.IP6_HDRLEN; 521 int ipHdrLen = local instanceof Inet6Address ? IP6_HDRLEN : IP4_HDRLEN; in checkTransform()
|