Searched refs:udpChecksum (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | IpUtilsTest.java | 157 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 174 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 178 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 180 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NattKeepalivePacketData.java | 111 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacketv4() 137 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV6_HEADER_LENGTH)); in nattKeepalivePacketv6()
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | PacketBuilder.java | 26 import static com.android.net.module.util.IpUtils.udpChecksum; 257 mBuffer.putShort(mUdpHeaderOffset + UDP_CHECKSUM_OFFSET, udpChecksum(mBuffer, in finalizePacket()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | IpUtils.java | 136 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { in udpChecksum() method in IpUtils
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | PacketReflectorUtil.kt | 91 val checksum = IpUtils.udpChecksum( in fixPacketChecksum()
|