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;
188 && isSpiEqual(pkt, IP4_HDRLEN + UDP_HDRLEN, spi); in isEsp()
DIpSecManagerTunnelTest.java28 import static android.net.cts.PacketUtils.UDP_HDRLEN;
271 int expectedPacketSize = TEST_DATA.length + UDP_HDRLEN; in getPacketSize()
292 expectedPacketSize += useEncap ? UDP_HDRLEN : 0; in getPacketSize()
DIpSecManagerTest.java49 import static android.net.cts.PacketUtils.UDP_HDRLEN;
523 int udpEncapLen = doUdpEncap ? UDP_HDRLEN : 0; in checkTransform()
531 transportHdrLen = UDP_HDRLEN; in checkTransform()
635 expectedNumPkts * (dataWithEspHeader.length + UDP_HDRLEN + IP4_HDRLEN); in checkIkePacket()
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;
194 && 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()