Home
last modified time | relevance | path

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

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpUtilsTest.java156 assertEquals(0, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
166 assertChecksumEquals(ipSum, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
177 packet.putShort(ipSumOffset, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
179 assertEquals(0, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java24 import static com.android.net.module.util.IpUtils.ipChecksum;
233 ipChecksum(mBuffer, mIpv4HeaderOffset /* headerOffset */)); in finalizePacket()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DIpUtils.java106 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() method in IpUtils
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DPacketReflectorUtil.kt77 val checksum = IpUtils.ipChecksum(ByteBuffer.wrap(buf), 0) in fixPacketChecksum()
/packages/modules/Connectivity/framework/src/android/net/
DNattKeepalivePacketData.java110 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacketv4()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java205 buf.putShort(ipChecksumOffset, com.android.net.module.util.IpUtils.ipChecksum(buf, 0)); in buildV4Packet()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt307 packet.putShort(checksumOffset, IpUtils.ipChecksum(packet, ETHER_HEADER_LEN)) in setMfBit()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java36 import static com.android.net.module.util.IpUtils.ipChecksum;
833 ipChecksum(packet, ipv4HeaderOffset /* headerOffset */));
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt319 val calCheck = IpUtils.ipChecksum(buffer, Struct.getSize(EthernetHeader::class.java)) in <lambda>()