<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Narjes,<div><br></div><div>It depends on the level of the extension you want to achieve.  If the existing nack field is sufficient for you (and you're not using it for anything else), then you can just redefine its meaning.</div><div><br></div><div>Otherwise, you can do similar thing what Andriana did (check out the other thread): update ndn::Interest abstraction and update wire format generation/parsing.  Extending Interest class wouldn't work, since it would involve considerable changes in the code.</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Dec 17, 2013, at 5:42 AM, narjes aloulou <<a href="mailto:aloulounarjes@yahoo.fr">aloulounarjes@yahoo.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Menlo-Regular; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="background-color: rgb(255, 255, 255); font-family: 'bookman old style', 'new york', times, serif; font-size: 12pt;"><div style="margin-bottom: 0cm;">Hi Alex and ndn-sim users,</div><div style="margin-bottom: 0cm;"><br></div><div style="margin-bottom: 0cm;">I want to add a field in the Interest, however this field may be sometimes empty.</div><div style="margin-bottom: 0cm;">So, I must use another class that extends « Interest » class or I just add a new NackType ?</div><div style="margin-bottom: 0cm;"><br></div><div style="margin-bottom: 0cm;">Thanks</div><div><br class=""></div></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></div></blockquote></div><br></div></body></html>