Searched refs:ipChecksum (Results 1 – 9 of 9) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | IpUtilsTest.java | 156 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/ |
D | PacketBuilder.java | 24 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/ |
D | IpUtils.java | 106 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() method in IpUtils
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketReflectorUtil.kt | 77 val checksum = IpUtils.ipChecksum(ByteBuffer.wrap(buf), 0) in fixPacketChecksum()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NattKeepalivePacketData.java | 110 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacketv4()
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 205 buf.putShort(ipChecksumOffset, com.android.net.module.util.IpUtils.ipChecksum(buf, 0)); in buildV4Packet()
|
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/ |
D | NetworkStackUtilsIntegrationTest.kt | 307 packet.putShort(checksumOffset, IpUtils.ipChecksum(packet, ETHER_HEADER_LEN)) in setMfBit()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 36 import static com.android.net.module.util.IpUtils.ipChecksum; 833 ipChecksum(packet, ipv4HeaderOffset /* headerOffset */));
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DscpPolicyTest.kt | 319 val calCheck = IpUtils.ipChecksum(buffer, Struct.getSize(EthernetHeader::class.java)) in <lambda>()
|