Home
last modified time | relevance | path

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

/frameworks/base/tests/net/java/android/net/util/
DIpUtilsTest.java104 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/
DKeepalivePacketData.java23 import android.net.util.IpUtils;
75 if (!IpUtils.isValidUdpOrTcpPort(srcPort) || !IpUtils.isValidUdpOrTcpPort(dstPort)) { in KeepalivePacketData()
DNattKeepalivePacketData.java23 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/
DTcpKeepalivePacketData.java23 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/
DOffloadController.java36 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/
DIpUtils.java32 public class IpUtils { class
/frameworks/base/services/core/java/com/android/server/connectivity/
DKeepaliveTracker.java49 import android.net.util.IpUtils;
223 + IpUtils.addressAndPortToString(mPacket.srcAddress, mPacket.srcPort) in toString()
225 + IpUtils.addressAndPortToString(mPacket.dstAddress, mPacket.dstPort) in toString()