Introduction:- In Promiscuous mode each node in the network listens the packets transmitted by its own neighbor nodes. In NS-2, some time we have to calculate the packet drops or analyze the process. For the same we need to set the network to operate in promiscuous mode. Here, I am going to explain how we can set our wireless network in promiscuous mode with AODV as Routing protocol using NS2 simulator. 1) We need to modify in total 3 files, so it's good to take a backup of it. Files are: ns-allinone-2.34/ns-2.34/aodv/aodv.cc ns-allinone-2.34/ns-2.34/aodv/aodv.h ns-allinone-2.34/ns-2.34/tcl/lib/ns-mobilenode.tcl 2) Open the file ns-allinone-2.34/ns-2.34/aodv/aodv.h in your favorite editor and make the changes as shown in blue color. #include <mac.h> class AODV: public Tap, public Agent { public: void tap(const Packet *p); ...... protected: Mac *mac_; ...... }
thanks bro
ReplyDeleteyou're welcome
Deletethanku for useful information
ReplyDeleteyou're welcome!
DeleteHow many types of colors are possible ?
ReplyDeleteAnd also can we mention the color in hexadecimal values like for blue can we write #0000FF ??
thanks for the information.... !!! is it possible to fill a node inside with color..?? please help me..
ReplyDeletethx dude, u r the best.
ReplyDeleteCan you help me change color of the node using C++ in AODV.CC files..??
ReplyDeletethats really very very helpful... (y)
ReplyDeletethnku its really helpful
ReplyDeleteThx, finally I found a solution that it really worked in wireless! thumbs up :)
ReplyDelete