<div dir="ltr"><div>Hi,</div><div>I have tried adding another "Name" type of field in Interest packet. I have done following steps:</div><div><br></div><div><b>1: </b>Add private field in interest.hpp and write its getters and setters (same as Name field already in Interest):<br></div><div><span style="font-family:monospace,monospace">private: Name m_Name2;</span></div><div><span style="font-family:monospace,monospace">public: const Name&<br>    getName2() const {<br>        return m_Name2;<br>    }<br>    Interest&<br>    setName2(const Name& name) {<br>        m_Name2 = name;<br>        m_wire.reset(); <br>        return *this;<br>    }</span><br></div><div><b>2:</b> Added value in tlv.hpp as Name2 = 40002</div><div><b>3:</b> Added it in wireEncode and wireDecode method in interest.cpp class as:</div><div><b>in wireEncode method:</b><br></div><div><span style="font-family:monospace,monospace">totalLength += getName2().wireEncode(encoder);<br>    totalLength += encoder.prependVarNumber(totalLength);<br>    totalLength += encoder.prependVarNumber(tlv::Name2);</span></div><div><br></div><div><b>in wireDecode method:</b></div><div><span style="font-family:monospace,monospace">m_Name2.wireDecode(m_wire.get(tlv::Name2));</span></div><div><br></div><div><b>Error:</b></div><div>When
 I'm running scenario, its builds successfully. But after linking files 
and before launching the simulator it gives following error:</div><div><br></div><div><span style="font-family:monospace,monospace">terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::Block::Error> >'<br>  what():  (Block::get) Requested a non-existed type [10] from Block</span></div><div><br></div><div><br></div><div><b>Please suggest a solution. Thank you very much.</b></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:georgia,serif">Regards,<br></span></div><div><span style="font-family:georgia,serif">Mudasir Qazi<br></span></div></div></div></div></div></div></div></div></div></div>