[ndnSIM] Alex Afanasyev <aa at cs.ucla.edu>
황인찬
neogeoss at ajou.ac.kr
Mon Oct 10 02:01:15 PDT 2016
Dear NDN Sim users,
I have been trying to add an additional property to an Interest packet.
In NDN-cxx, there is Interest.cpp file that defines Interest encoding in
Interest::wireEncode(EncodingImpl<TAG>& encoder)
// Interest ::= INTEREST-TYPE TLV-LENGTH
// Name
// Selectors?
// Nonce
// InterestLifetime?
// Link?
// SelectedDelegation?
// ProducerUid? à I added it.
// (reverse encoding)
There is also a decoding scheme for it, Interest::wireDecode(const Block&
wire) in the file.
Although I added additional variables and its getter and setters to the
Interest packet,
There is an error "Requested decoding of ControlResponse, but Block is of
different type"
when I run it with after I add //totalLength +=
getProducerUid().wireEncode(encoder); for wireEncode
//m_ProducerUid.wireDecode(m_wire.get(tlv::Name)); for wireDecode.
I am now trying to match block types equal, But I am stuck. Does anyone of
you know about adding a new property to the Interest and data packet?
Any comment will help
Best wishes,
Inchan Hwang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161010/51362ce5/attachment.html>
More information about the ndnSIM
mailing list