[ns] Measure energy at a certain point

2012-04-24 Thread Nguyen Trung Hieu
Hi, I am doing the simulation with the wireless network using mobile node. I knew the way to set up the energy model and successfully printed out the energy at a specific time during simulation. But now I want the program to print out the energy at each node when there exists a node in the net

[ns] Problem implementing black hole attack

2012-04-24 Thread Shubhada Antapurkar
I m implementing black hole attack in ns2 by modifying aodv folder under ns 2.34. I m getting the following error while executing make under ns-allinone-2.34/ns-2.34 In function `hdr_aodv::access(Packet const*)': cmu-trace.cc:(.text._ZN8hdr_ aodv6accessEPK6Packet[hdr_aodv::access(Packet const*)