Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/util/
DIpUtilsTest.java140 assertEquals(0, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
150 assertChecksumEquals(ipSum, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
161 packet.putShort(ipSumOffset, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
163 assertEquals(0, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
/frameworks/base/core/java/android/net/util/
DIpUtils.java105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() method in IpUtils
/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java84 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket()
/frameworks/base/services/net/java/android/net/
DTcpKeepalivePacketData.java142 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in buildV4Packet()