OptionPtr opt = option->option_;
if (option->formatted_value_.empty() && (opt->len() > opt->getHeaderLen())) {
OutputBuffer buf(opt->len());
- // The RFC3396 adds support for long options split over multiple options
- // using the same code.
- opt->pack(buf, false);
+ opt->pack(buf);
const char* buf_ptr = static_cast<const char*>(buf.getData());
std::vector<uint8_t> blob(buf_ptr + opt->getHeaderLen(),
buf_ptr + buf.getLength());
OptionPtr opt = option->option_;
if (option->formatted_value_.empty() && (opt->len() > opt->getHeaderLen())) {
OutputBuffer buf(opt->len());
- // The RFC3396 adds support for long options split over multiple options
- // using the same code.
- opt->pack(buf, false);
+ opt->pack(buf);
const char* buf_ptr = static_cast<const char*>(buf.getData());
std::vector<uint8_t> blob(buf_ptr + opt->getHeaderLen(),
buf_ptr + buf.getLength());
///
/// @param buf pointer to a buffer
/// @param check flag which indicates if checking the option length is
- /// required (used in V4 only)
+ /// required (used only in V4)
///
/// @throw BadValue Universe of the option is neither V4 nor V6.
virtual void pack(isc::util::OutputBuffer& buf, bool check = true) const;