Searched refs:IPV4_HEADER_LENGTH (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 33 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/core/java/android/net/ |
D | KeepalivePacketData.java | 56 private static final int IPV4_HEADER_LENGTH = 20; field in KeepalivePacketData 106 int length = IPV4_HEADER_LENGTH + UDP_HEADER_LENGTH + 1; in nattKeepalivePacket() 125 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()
|