Searched refs:optLen (Results 1 – 3 of 3) sorted by relevance
198 final int optLen = MSG_PREF64.length() / 2; // 1 byte = 2 hex chars in testTruncation() local199 for (int len = 0; len < optLen; len++) { in testTruncation()202 if (len < optLen) { in testTruncation()
640 int optLen = getUint8(mPacket, offset + 1) * 8; in rdnssOptionToString() local641 if (optLen < 24) return; // Malformed or empty. in rdnssOptionToString()643 int numServers = (optLen - 8) / 16; in rdnssOptionToString()652 int optLen = getUint8(mPacket, offset + 1) * 8; in rioOptionToString() local653 if (optLen < 8 || optLen > 24) return; // Malformed or empty. in rioOptionToString()661 System.arraycopy(mPacket.array(), offset + 8, prefix, 0, optLen - 8); in rioOptionToString()
1279 final int optLen = 4;1281 ByteBuffer option = ByteBuffer.allocate(optLen * ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR);1283 option.put((byte) optLen); // Length in 8-byte units1295 final int optLen = 1 + 2 * servers.length;1296 ByteBuffer option = ByteBuffer.allocate(optLen * ICMPV6_ND_OPTION_LENGTH_SCALING_FACTOR);1298 option.put((byte) optLen); // Length in 8-byte units