Home
last modified time | relevance | path

Searched refs:hdrLen (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DPacketReflector.java94 private void processTcpPacket(byte[] buf, int version, int len, int hdrLen) { in processTcpPacket() argument
95 if (len < hdrLen + TCP_HEADER_LENGTH) { in processTcpPacket()
108 private void processUdpPacket(byte[] buf, int version, int len, int hdrLen) { in processUdpPacket() argument
109 if (len < hdrLen + UDP_HEADER_LENGTH) { in processUdpPacket()
117 int portOffset = hdrLen; in processUdpPacket()
124 private void processIcmpPacket(byte[] buf, int version, int len, int hdrLen) { in processIcmpPacket() argument
125 if (len < hdrLen + ICMP_HEADER_LENGTH) { in processIcmpPacket()
129 byte type = buf[hdrLen]; in processIcmpPacket()
151 byte replyType = buf[hdrLen]; in processIcmpPacket()
162 request[hdrLen] = buf[hdrLen]; // Type in processIcmpPacket()
[all …]
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTunUtils.java224 int hdrLen = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in getIkeOffset() local
225 int ikeOffset = UDP_HDRLEN + hdrLen; in getIkeOffset()
234 int hdrLen = isIpv6(pkt) ? IP6_HDRLEN : IP4_HDRLEN; in hasNonEspMarker() local
235 int ikeOffset = UDP_HDRLEN + hdrLen; in hasNonEspMarker()