[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] How to use promiscuous mode?
Hello.
Right now, I want to modify AODV implementation in ns-2 to simulate my
idea. Basically my idea requires every node overhear packets all the time,
so AODV should receive packets promiscously like DSR does.
I'm wondering what I need to do to support this functionality.
I guess I need to change the tcl/tk script files.. but I don't know how
to.
I changed
"Simulator instproc create-wireless-node args " function in
tcl/lib/ns-lib.tcl
from
if {$routingAgent_ != "DSR"} {
$node attach $ragent [Node set rtagent_port_]
}
to
if {$routingAgent_ != "DSR"} {
$node attach $ragent [Node set rtagent_port_]
if {$routingAgent_ == "AODV"} {
$node instvar ragent_ mac_
$ragent_ install-tap $mac_(0)
}
}
But it's not working and I got error when I run test case.
Pls. let me know how to do.
Thank you so much.
-yj