<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Tun,</div><div><br></div><div>You didn't mention what exactly is the problem / error message?</div><div><br></div><div>From the code you gave, I see that you assigned result of PeekPacketTag check to `isTag` variable, but used `isQueueTag` variable in the condition.</div><div><br></div><div>---</div><div>Alex</div><br><div><div>On Apr 30, 2014, at 1:14 AM, Tun Tun Oo <<a href="mailto:htunhtunu@gmail.com">htunhtunu@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div>Dear Alex,<br> <br></div>In my customize forwarding, I want to send local information of every hop by tagging data packet.<br></div>When router received data, it read tag and then remove it and add it again router information.<br>

</div>But I found a problem when I remove the tag. Actually I think I cannot remove the tag.<br><table cellpadding="0"><tbody><tr><td colspan="2"><span></span><br></td><td colspan="2">
<span><span></span></span><br> MyTag tag; <br>    bool isTag = data->GetPayload()->PeekPacketTag(tag);<br>    if (isQueueTag)<br>        {<br>            read = tag.GetTag();<br>            NS_LOG_INFO ("Infomation "<< read << " : received from data > "<< data->GetName());<br>

<br>            //to remove tag<br>            ConstCast<Packet>(data->GetPayload())->RemovePacketTag (tag);<br><br>           if (tag.GetTag != 0)<br>                std::cout << "Cannot Remove the tag in data > "<< data->GetName()<<std::endl;<br>

         }<br></td></tr></tbody></table><br></div>Could you give me an advice how should I do it?<br><div><div><br></div><div>regards<br></div><div>TUN</div></div></div></blockquote></div></body></html>