Home
last modified time | relevance | path

Searched refs:IpUtils (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpUtilsTest.java80 assertEquals(0, IpUtils.checksum(packet, 0, 0, 0)); in testEmptyAndZeroBufferChecksum()
81 assertEquals(0, IpUtils.checksum(packet, 0, 0, 1)); in testEmptyAndZeroBufferChecksum()
82 assertEquals(0, IpUtils.checksum(packet, 0, 0, 2)); in testEmptyAndZeroBufferChecksum()
83 assertEquals(0, IpUtils.checksum(packet, 0, 1, 2)); in testEmptyAndZeroBufferChecksum()
84 assertEquals(0, IpUtils.checksum(packet, 0xFFFF, 0, 0)); in testEmptyAndZeroBufferChecksum()
85 assertEquals(0, IpUtils.checksum(packet, 0xFFFF, 0, 1)); in testEmptyAndZeroBufferChecksum()
86 assertEquals(0, IpUtils.checksum(packet, 0xFFFF, 0, 2)); in testEmptyAndZeroBufferChecksum()
87 assertEquals(0, IpUtils.checksum(packet, 0xFFFF, 1, 2)); in testEmptyAndZeroBufferChecksum()
120 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
129 assertChecksumEquals(sum, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DKeepalivePacketData.java27 import com.android.net.module.util.IpUtils;
83 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
DNattKeepalivePacketData.java29 import com.android.net.module.util.IpUtils;
110 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacketv4()
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/testutils/devicetests/com/android/testutils/
DPacketReflectorUtil.kt24 import com.android.net.module.util.IpUtils
77 val checksum = IpUtils.ipChecksum(ByteBuffer.wrap(buf), 0) in fixPacketChecksum()
91 val checksum = IpUtils.udpChecksum( in fixPacketChecksum()
104 val checksum = IpUtils.tcpChecksum( in fixPacketChecksum()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java24 import static com.android.net.module.util.IpUtils.ipChecksum;
25 import static com.android.net.module.util.IpUtils.tcpChecksum;
26 import static com.android.net.module.util.IpUtils.udpChecksum;
DIpv6Utils.java21 import static com.android.net.module.util.IpUtils.icmpv6Checksum;
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DTcpKeepaliveController.java55 import com.android.net.module.util.IpUtils;
205 buf.putShort(ipChecksumOffset, com.android.net.module.util.IpUtils.ipChecksum(buf, 0)); in buildV4Packet()
206 buf.putShort(tcpChecksumOffset, IpUtils.tcpChecksum( in buildV4Packet()
DKeepaliveTracker.java66 import com.android.net.module.util.IpUtils;
261 + IpUtils.addressAndPortToString(mPacket.getSrcAddress(), mPacket.getSrcPort()) in toString()
263 + IpUtils.addressAndPortToString(mPacket.getDstAddress(), mPacket.getDstPort()) in toString()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt45 import com.android.net.module.util.IpUtils
307 packet.putShort(checksumOffset, IpUtils.ipChecksum(packet, ETHER_HEADER_LEN)) in setMfBit()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DIpUtils.java33 public class IpUtils { class
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java21 import static com.android.net.module.util.IpUtils.icmpv6Checksum;
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt63 import com.android.net.module.util.IpUtils in <lambda>()
319 val calCheck = IpUtils.ipChecksum(buffer, Struct.getSize(EthernetHeader::class.java)) in <lambda>()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java35 import static com.android.net.module.util.IpUtils.icmpChecksum;
36 import static com.android.net.module.util.IpUtils.ipChecksum;
/packages/modules/Connectivity/staticlibs/
DAndroid.bp208 "framework-annotations-lib", // Required by IpUtils.java