Home
last modified time | relevance | path

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

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DIkeTunUtils.java19 import static android.net.cts.PacketUtils.IP4_HDRLEN;
92 ikeOffset = IP4_HDRLEN + UDP_HDRLEN + encapMarkerLen; in isIke()
101 final int nonEspMarkerOffset = IP4_HDRLEN + UDP_HDRLEN; in hasNonEspMarkerv4()
155 final int srcPortOffset = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in getPort()
DTunUtils.java19 import static android.net.cts.PacketUtils.IP4_HDRLEN;
188 && isSpiEqual(pkt, IP4_HDRLEN + UDP_HDRLEN, spi); in isEsp()
190 return pkt[IP4_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP4_HDRLEN, spi); in isEsp()
DIpSecManagerTunnelTest.java25 import static android.net.cts.PacketUtils.IP4_HDRLEN;
284 expectedPacketSize += innerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
295 expectedPacketSize += outerFamily == AF_INET ? IP4_HDRLEN : IP6_HDRLEN; in getPacketSize()
DPacketUtils.java46 static final int IP4_HDRLEN = 20; field in PacketUtils
161 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
DIpSecManagerTest.java46 import static android.net.cts.PacketUtils.IP4_HDRLEN;
521 int ipHdrLen = local instanceof Inet6Address ? IP6_HDRLEN : IP4_HDRLEN; in checkTransform()
635 expectedNumPkts * (dataWithEspHeader.length + UDP_HDRLEN + IP4_HDRLEN); in checkIkePacket()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTunUtils.java19 import static android.ipsec.ike.cts.PacketUtils.IP4_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.java18 import static android.ipsec.ike.cts.PacketUtils.IP4_HDRLEN;
194 && isSpiEqual(pkt, IP4_HDRLEN + UDP_HDRLEN, spi); in isEsp()
196 return pkt[IP4_PROTO_OFFSET] == IPPROTO_ESP && isSpiEqual(pkt, IP4_HDRLEN, spi); in isEsp()
DPacketUtils.java47 static final int IP4_HDRLEN = 20; field in PacketUtils
121 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp47 static constexpr ssize_t IP4_HDRLEN = sizeof(struct iphdr); variable
241 if (ipv4Packet.size() < IP4_HDRLEN) { in validateIpv4Packet()