Home
last modified time | relevance | path

Searched refs:IPV4_HEADER_LENGTH (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/net/java/android/net/util/
DIpUtilsTest.java33 private static final int IPV4_HEADER_LENGTH = 20; field in IpUtilsTest
141 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
152 final int udpSumOffset = IPV4_HEADER_LENGTH + UDP_CHECKSUM_OFFSET; in testIpv4UdpChecksum()
158 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
162 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
164 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
/frameworks/base/services/net/java/android/net/
DTcpKeepalivePacketData.java59 private static final int IPV4_HEADER_LENGTH = 20; field in TcpKeepalivePacketData
106 final int length = IPV4_HEADER_LENGTH + TCP_HEADER_LENGTH; in buildV4Packet()
132 buf, 0, IPV4_HEADER_LENGTH, TCP_HEADER_LENGTH)); in buildV4Packet()
/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java58 int length = IPV4_HEADER_LENGTH + UDP_HEADER_LENGTH + 1; in nattKeepalivePacket()
77 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()
DKeepalivePacketData.java54 protected static final int IPV4_HEADER_LENGTH = 20; field in KeepalivePacketData