Searched refs:IpUtils (Results 1 – 14 of 14) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | IpUtilsTest.java | 80 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/ |
D | KeepalivePacketData.java | 27 import com.android.net.module.util.IpUtils; 83 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
|
D | NattKeepalivePacketData.java | 29 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/ |
D | PacketReflectorUtil.kt | 24 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/ |
D | PacketBuilder.java | 24 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;
|
D | Ipv6Utils.java | 21 import static com.android.net.module.util.IpUtils.icmpv6Checksum;
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | TcpKeepaliveController.java | 55 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()
|
D | KeepaliveTracker.java | 66 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/ |
D | NetworkStackUtilsIntegrationTest.kt | 45 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/ |
D | IpUtils.java | 33 public class IpUtils { class
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | DadProxyTest.java | 21 import static com.android.net.module.util.IpUtils.icmpv6Checksum;
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | DscpPolicyTest.kt | 63 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/ |
D | TetheringTester.java | 35 import static com.android.net.module.util.IpUtils.icmpChecksum; 36 import static com.android.net.module.util.IpUtils.ipChecksum;
|
/packages/modules/Connectivity/staticlibs/ |
D | Android.bp | 208 "framework-annotations-lib", // Required by IpUtils.java
|