Searched refs:IPV4_HEADER_LENGTH (Results 1 – 8 of 8) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | IpUtilsTest.java | 36 private static final int IPV4_HEADER_LENGTH = 20; field in IpUtilsTest 157 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 168 final int udpSumOffset = IPV4_HEADER_LENGTH + UDP_CHECKSUM_OFFSET; in testIpv4UdpChecksum() 174 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 178 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 180 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 207 int transportLen = packet.limit() - IPV4_HEADER_LENGTH; in testIpv4IcmpChecksum() 208 assertEquals(0, IpUtils.icmpChecksum(packet, IPV4_HEADER_LENGTH, transportLen)); in testIpv4IcmpChecksum() 211 int sumOffset = IPV4_HEADER_LENGTH + ICMP_CHECKSUM_OFFSET; in testIpv4IcmpChecksum() 217 assertChecksumEquals(sum, IpUtils.icmpChecksum(packet, IPV4_HEADER_LENGTH, transportLen)); in testIpv4IcmpChecksum() [all …]
|
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/ |
D | KeepalivePacketDataUtil.java | 41 private static final int IPV4_HEADER_LENGTH = 20; field in KeepalivePacketDataUtil 124 tcpSeq = buffer.getInt(IPV4_HEADER_LENGTH + 4); in parseTcpKeepalivePacketData() 125 tcpAck = buffer.getInt(IPV4_HEADER_LENGTH + 8); in parseTcpKeepalivePacketData() 126 wndSize = buffer.getShort(IPV4_HEADER_LENGTH + 14); in parseTcpKeepalivePacketData()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketForwarderBase.java | 21 import static com.android.testutils.PacketReflector.IPV4_HEADER_LENGTH; 131 return version == 4 ? IPV4_HEADER_LENGTH : IPV6_HEADER_LENGTH; in getTransportOffset() 160 ipHdrLen = IPV4_HEADER_LENGTH; in processPacket()
|
D | PacketReflectorUtil.kt | 25 import com.android.testutils.PacketReflector.IPV4_HEADER_LENGTH 84 val transportOffset = if (version == 4) IPV4_HEADER_LENGTH else IPV6_HEADER_LENGTH in fixPacketChecksum()
|
D | PacketReflector.java | 47 static final int IPV4_HEADER_LENGTH = 20; field in PacketReflector 203 hdrLen = IPV4_HEADER_LENGTH; in processPacket()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NattKeepalivePacketData.java | 42 private static final int IPV4_HEADER_LENGTH = 20; field in NattKeepalivePacketData 89 int length = IPV4_HEADER_LENGTH + UDP_HEADER_LENGTH + 1; in nattKeepalivePacketv4() 111 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacketv4()
|
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/ |
D | PacketFilter.kt | 31 private const val IPV4_HEADER_LENGTH = 20 constant 33 private const val IPV4_PAYLOAD_OFFSET = ETHER_HEADER_LENGTH + IPV4_HEADER_LENGTH
|
/packages/modules/Connectivity/Tethering/apex/hiddenapi/ |
D | hiddenapi-max-target-o-low-priority.txt | 424 Landroid/net/KeepalivePacketData;->IPV4_HEADER_LENGTH:I
|