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 re
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
across
Hi,
Suppose you have a pointer "p". You can drop the packet by executing
Packet::free(p)
Also the packet "*p" can be dropped from within the Connector object by
invoking function drop as follows:
drop(p);
Note that "drop(p)" is a function of class Connector, and therefore
must be i
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)