Searched refs:IPV4_HEADER_LENGTH (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/tests/net/java/android/net/util/ |
D | IpUtilsTest.java | 33 private static final int IPV4_HEADER_LENGTH = 20; field in IpUtilsTest 141 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 152 final int udpSumOffset = IPV4_HEADER_LENGTH + UDP_CHECKSUM_OFFSET; in testIpv4UdpChecksum() 158 assertChecksumEquals(udpSum, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 162 packet.putShort(udpSumOffset, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum() 164 assertEquals((short) 0xffff, IpUtils.udpChecksum(packet, 0, IPV4_HEADER_LENGTH)); in testIpv4UdpChecksum()
|
/frameworks/base/services/net/java/android/net/ |
D | TcpKeepalivePacketData.java | 59 private static final int IPV4_HEADER_LENGTH = 20; field in TcpKeepalivePacketData 106 final int length = IPV4_HEADER_LENGTH + TCP_HEADER_LENGTH; in buildV4Packet() 132 buf, 0, IPV4_HEADER_LENGTH, TCP_HEADER_LENGTH)); in buildV4Packet()
|
/frameworks/base/core/java/android/net/ |
D | NattKeepalivePacketData.java | 58 int length = IPV4_HEADER_LENGTH + UDP_HEADER_LENGTH + 1; in nattKeepalivePacket() 77 buf.putShort(udpChecksumOffset, IpUtils.udpChecksum(buf, 0, IPV4_HEADER_LENGTH)); in nattKeepalivePacket()
|
D | KeepalivePacketData.java | 54 protected static final int IPV4_HEADER_LENGTH = 20; field in KeepalivePacketData
|