Searched refs:ipChecksum (Results 1 – 4 of 4) 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 | NattKeepalivePacketData.java | 84 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket()
|
/frameworks/base/services/net/java/android/net/ |
D | TcpKeepalivePacketData.java | 142 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in buildV4Packet()
|