Searched refs:IPV6_HEADER_LENGTH (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 34 private static final int IPV6_HEADER_LENGTH = 40; field in IpUtilsTest 103 int transportLen = packet.limit() - IPV6_HEADER_LENGTH; in testIpv6TcpChecksum() 104 assertEquals(0, IpUtils.tcpChecksum(packet, 0, IPV6_HEADER_LENGTH, transportLen)); in testIpv6TcpChecksum() 107 int sumOffset = IPV6_HEADER_LENGTH + TCP_CHECKSUM_OFFSET; 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()
|
/frameworks/base/services/net/java/android/net/ |
D | TcpKeepalivePacketData.java | 59 private static final int IPV6_HEADER_LENGTH = 40; field in TcpKeepalivePacketData
|