Searched refs:IP4_HDRLEN (Results 1 – 9 of 9) sorted by relevance
19 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()
19 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()
25 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()
46 static final int IP4_HDRLEN = 20; field in PacketUtils161 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
46 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()
19 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()
18 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()
47 static final int IP4_HDRLEN = 20; field in PacketUtils121 bb.putShort((short) (IP4_HDRLEN + payload.length())); in buildHeader()
47 static constexpr ssize_t IP4_HDRLEN = sizeof(struct iphdr); variable241 if (ipv4Packet.size() < IP4_HDRLEN) { in validateIpv4Packet()