<div dir="ltr"><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">rim chabbi</b> <span dir="ltr"><<a href="mailto:rim.chabbi@gmail.com">rim.chabbi@gmail.com</a>></span><br>Date: 2015-05-26 10:27 GMT+01:00<br>Subject: Re: [ndnSIM] (no subject)<br>To: "Spyridon (Spyros) Mastorakis" <<a href="mailto:spiros.mastorakis@gmail.com">spiros.mastorakis@gmail.com</a>><br><br><br><div dir="ltr"><div>hello,<br></div><div>thank you Spyridon for the answer<br></div>I try to use the NS3 TAG but it is working for the 
Data packet and not for the Interest Packet because the payload of 
interest is zero, so that I think to use the header class and add the 
information to it using the AddHeader and PeekHeader.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-05-25 20:28 GMT+01:00 Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:spiros.mastorakis@gmail.com" target="_blank">spiros.mastorakis@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
You will need to implement a logic similar to the one of the hop count tag:<br>
<br>
<a href="https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp" target="_blank">https://github.com/NDN-Routing/ndnSIM/blob/master/utils/ndn-fw-hop-count-tag.cpp</a><br>
<br>
I would also suggest that you consider extending the Interest class of ndn-cxx directly. Probably you will find this solution easier than messing with NS3 tags.<br>
<br>
--<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br>
Internet Research Laboratory<br>
PhD Computer Science<br>
UCLA<br>
<div><div><br>
<br>
<br>
<br>
> On May 23, 2015, at 4:11 PM, rim chabbi <<a href="mailto:rim.chabbi@gmail.com" target="_blank">rim.chabbi@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I want to  add some information into the interest packet. So that i will use the ns3::tag. usBut I dont know how to use  the fuction serialize and deserialize()<br>
><br>
> --<br>
><br>
>     Best Regards<br>
>      Rim CHEBBI<br>
><br>
>  Telecommunication & Networks Engineering<br>
><br>
</div></div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b></b><br><b><font size="4" color="#000000">    </font></b><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Best Regards</b><font size="4"><br style="color:rgb(102,0,0)"><b><font style="font-style:italic" color="#c27ba0">   </font></b></font><b><i><font color="#cc0000">  Rim CHEBBI </font></i></b></div><div dir="ltr"><font color="#cc0000"><b><i><br></i></b></font><div><div><span style="font-size:x-small"><b> Telecommunication & Networks Engineering </b></span><div><div style="margin-bottom:0px;margin-left:0px;padding-bottom:5px"><div style="overflow:hidden"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></div></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><b></b><br><b><font size="4" color="#000000">    </font></b><b style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Best Regards</b><font size="4"><br style="color:rgb(102,0,0)"><b><font style="font-style:italic" color="#c27ba0">   </font></b></font><b><i><font color="#cc0000">  Rim CHEBBI </font></i></b></div><div dir="ltr"><font color="#cc0000"><b><i><br></i></b></font><div><div><span style="font-size:x-small"><b> Telecommunication & Networks Engineering </b></span><div><div style="margin-bottom:0px;margin-left:0px;padding-bottom:5px"><div style="overflow:hidden"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>