Home
last modified time | relevance | path

Searched refs:ipChecksum (Results 1 – 3 of 3) 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/
DKeepalivePacketData.java124 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket()