Home
last modified time | relevance | path

Searched refs:udpChecksum (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/net/java/android/net/util/
DIpUtilsTest.java141 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); 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/util/
DIpUtils.java132 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { in udpChecksum() method in IpUtils
/frameworks/base/core/java/android/net/
DNattKeepalivePacketData.java85 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()