Home
last modified time | relevance | path

Searched refs:UDP_HDRLEN (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkeTunUtils.java22 import static android.net.cts.PacketUtils.UDP_HDRLEN;
83 ikeOffset = IP6_HDRLEN + UDP_HDRLEN; in isIke()
92 ikeOffset = IP4_HDRLEN + UDP_HDRLEN + encapMarkerLen; in isIke()
101 final int nonEspMarkerOffset = IP4_HDRLEN + UDP_HDRLEN; in hasNonEspMarkerv4()
DTunUtils.java22 import static android.net.cts.PacketUtils.UDP_HDRLEN;
183 && isSpiEqual(pkt, IP6_HDRLEN + UDP_HDRLEN, spi); in isEsp()
192 && isSpiEqual(pkt, IP4_HDRLEN + UDP_HDRLEN, spi); in isEsp()
DIpSecManagerTest.java50 import static android.net.cts.PacketUtils.UDP_HDRLEN;
628 int udpEncapLen = doUdpEncap ? UDP_HDRLEN : 0;
636 transportHdrLen = UDP_HDRLEN;
740 expectedNumPkts * (dataWithEspHeader.length + UDP_HDRLEN + IP4_HDRLEN);
1651 final int expectedInnerPacketSize = TEST_DATA.length + UDP_HDRLEN;
DIpSecManagerTunnelTest.java32 import static android.net.cts.PacketUtils.UDP_HDRLEN;
290 int expectedPacketSize = TEST_DATA.length + UDP_HDRLEN; in getInnerPacketSize()
318 expectedPacketSize += useEncap ? UDP_HDRLEN : 0; in getPacketSize()
DPacketUtils.java48 static final int UDP_HDRLEN = 8; field in PacketUtils
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTunUtils.java25 import static android.ipsec.ike.cts.PacketUtils.UDP_HDRLEN;
225 int ikeOffset = UDP_HDRLEN + hdrLen; in getIkeOffset()
235 int ikeOffset = UDP_HDRLEN + hdrLen; in hasNonEspMarker()
DTunUtils.java21 import static android.ipsec.ike.cts.PacketUtils.UDP_HDRLEN;
209 && isSpiEqual(pkt, IP4_HDRLEN + UDP_HDRLEN, spi); in isEsp()
DPacketUtils.java49 static final int UDP_HDRLEN = 8; field in PacketUtils
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp50 static constexpr ssize_t UDP_HDRLEN = sizeof(struct udphdr); variable
292 if (udpPacket.size() < UDP_HDRLEN) { in validateUdpPacket()