Home
last modified time | relevance | path

Searched refs:IPV6_HEADER_LENGTH (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DIpUtilsTest.java37 private static final int IPV6_HEADER_LENGTH = 40; field in IpUtilsTest
119 int transportLen = packet.limit() - IPV6_HEADER_LENGTH; in testIpv6TcpChecksum()
120 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
123 int sumOffset = IPV6_HEADER_LENGTH + TCP_CHECKSUM_OFFSET; in testIpv6TcpChecksum()
129 assertChecksumEquals(sum, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
134 IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
135 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DPacketForwarderBase.java22 import static com.android.testutils.PacketReflector.IPV6_HEADER_LENGTH;
131 return version == 4 ? IPV4_HEADER_LENGTH : IPV6_HEADER_LENGTH; in getTransportOffset()
164 ipHdrLen = IPV6_HEADER_LENGTH; in processPacket()
DPacketReflectorUtil.kt26 import com.android.testutils.PacketReflector.IPV6_HEADER_LENGTH
84 val transportOffset = if (version == 4) IPV4_HEADER_LENGTH else IPV6_HEADER_LENGTH in fixPacketChecksum()
DPacketReflector.java48 static final int IPV6_HEADER_LENGTH = 40; field in PacketReflector
206 hdrLen = IPV6_HEADER_LENGTH; in processPacket()
/packages/modules/Connectivity/framework/src/android/net/
DNattKeepalivePacketData.java43 private static final int IPV6_HEADER_LENGTH = 40; field in NattKeepalivePacketData
119 final ByteBuffer buf = ByteBuffer.allocate(IPV6_HEADER_LENGTH + UDP_HEADER_LENGTH + 1); in nattKeepalivePacketv6()
137 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV6_HEADER_LENGTH)); in nattKeepalivePacketv6()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/
DNSResponder.kt30 import com.android.testutils.PacketReflector.IPV6_HEADER_LENGTH
53 if (packet.size < IPV6_HEADER_LENGTH) { in replyToPacket()
/packages/modules/Connectivity/staticlibs/testutils/hostdevice/com/android/testutils/
DPacketFilter.kt32 private const val IPV6_HEADER_LENGTH = 40 constant
34 private const val IPV6_PAYLOAD_OFFSET = ETHER_HEADER_LENGTH + IPV6_HEADER_LENGTH
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/util/
DKeepalivePacketDataUtil.java42 private static final int IPV6_HEADER_LENGTH = 40; field in KeepalivePacketDataUtil