<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 huyao,<div><br></div><div>To get NACK type from Interest, you can use Interest::GetNack() method (<a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_interest.html#a8071c5f879364e1541fd74ecc549cebf">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_interest.html#a8071c5f879364e1541fd74ecc549cebf</a>).</div><div><br></div><div><br></div><div>If you really want the packet format (not just API), it is defined here: <a href="http://ndnsim.net/ndnsim-packet-formats.html#interest">http://ndnsim.net/ndnsim-packet-formats.html#interest</a> (I just added clarification about NackType field)</div><div><br></div><div>---</div><div>Alex</div><div><br><div><div>On Jun 5, 2013, at 7:57 AM, yao hu <<a href="mailto:huyao0107@gmail.com">huyao0107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Alex,<div><br></div><div style="">Does any document explain the Interest Nack packet format in the current ndnsim? How do I get the error code (duplicate, congestion..) in an Interest Nack?</div><div style=""><br>
</div><div style="">Thanks a lot~</div><div style=""><br></div><div style=""><br></div><div style="">Regards,</div><div style="">huyao</div></div></blockquote><br></div></div></body></html>