[ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread muralikrishna g
Hi to all.. i am using ns-2.33, here in my work i have to drop packets from a particular sender, i am planing to drop packets depending on the sender node_id please help me regarding this.. by Muralikrishna Gaddam (muralikrishn...@gmail.com)

Re: [ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread Mats Folke
Hi! Wouldn't it be kind of dangerous to drop the packet using the first method described? The packet would jsut disappear and the logs would not be consistent. I would recommend using the latter method drop(p) instead. This makes the logging consistent and almost all objects I've come

Re: [ns] How to Drop Packets From a Particular Sender

2009-03-13 Thread Teerawat Issariyakul
Hi Mats, I agree with you. In fact, function drop(p) will check whether the packet is in used before dropping it. But the function drop(p) only exists for an NsObject. Objects not derived from class NsObject may not define this function. If you guys would like to use Packet::free(p), you are