Searched refs:ipChecksum (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 140 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/ |
D | IpUtils.java | 105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() method in IpUtils
|
/frameworks/base/core/java/android/net/ |
D | KeepalivePacketData.java | 124 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket()
|