Searched refs:IpUtils (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 104 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum() 113 assertChecksumEquals(sum, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum() 118 IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum() 119 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum() 140 assertEquals(0, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum() 141 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 150 assertChecksumEquals(ipSum, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum() 158 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 161 packet.putShort(ipSumOffset, IpUtils.ipChecksum(packet, 0)); in testIpv4UdpChecksum() 162 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() [all …]
|
/frameworks/base/core/java/android/net/ |
D | KeepalivePacketData.java | 23 import android.net.util.IpUtils; 75 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
|
D | NattKeepalivePacketData.java | 23 import android.net.util.IpUtils; 76 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in nattKeepalivePacket() 77 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()
|
/frameworks/base/services/net/java/android/net/ |
D | TcpKeepalivePacketData.java | 23 import android.net.util.IpUtils; 130 buf.putShort(ipChecksumOffset, IpUtils.ipChecksum(buf, 0)); in buildV4Packet() 131 buf.putShort(tcpChecksumOffset, IpUtils.tcpChecksum( in buildV4Packet()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | OffloadController.java | 36 import android.net.util.IpUtils; 583 if (!IpUtils.isValidUdpOrTcpPort(srcPort)) { in updateNatTimeout() 594 if (!IpUtils.isValidUdpOrTcpPort(dstPort)) { in updateNatTimeout()
|
/frameworks/base/core/java/android/net/util/ |
D | IpUtils.java | 32 public class IpUtils { class
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | KeepaliveTracker.java | 49 import android.net.util.IpUtils; 223 + IpUtils.addressAndPortToString(mPacket.srcAddress, mPacket.srcPort) in toString() 225 + IpUtils.addressAndPortToString(mPacket.dstAddress, mPacket.dstPort) in toString()
|