to set priority for packet, you need just to modify the field prio_ of the ip 
packet header, like this:
iph = hdr_ip::access(pkt); //ip packet header
iph->prio_ = codePt;       // codePt: the code of priority 
hope that answer for your question
> Message: 6
> Date: Sat, 24 Oct 2009 22:40:44 +0700
> From: thangnd <than...@joomservices.com>
> Subject: [ns] How to set priority for packet
> To: ns-users@ISI.EDU
> Message-ID: <4ae31ffc.3010...@joomservices.com>
> Content-Type: text/plain; charset=ISO-8859-1;
> format=flowed
> Hi all,
> I have a question, how to set priority for packet in NS-2
> using in WSN.
> Thanks for help.


Reply via email to