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*)]+0x7): undefined
reference to `hdr_aodv::offset_'
what changes are to be made?
hello friend,
ReplyDeletei have found below errors during black hole attack implementation.
Please help me.
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::blackholeAODV(int)':
blackholeaodv.cc:(.text+0x3af): undefined reference to `blackholeaodv_rqueue::blackholeaodv_rqueue()'
blackholeaodv/blackholeaodv.o: In function `BlackHoleLocalRepairTimer::handle(Event*)':
blackholeaodv.cc:(.text+0x5f3): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::rt_ll_failed(Packet*)':
blackholeaodv.cc:(.text+0x932): undefined reference to `blackholeAODV::log_link_broke(Packet*)'
blackholeaodv.cc:(.text+0x954): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv.cc:(.text+0x99d): undefined reference to `blackholeAODV::log_link_del(int)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::handle_link_failure(int)':
blackholeaodv.cc:(.text+0xb26): undefined reference to `blackholeaodv_rt_entry::pc_delete(int)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::local_rt_repair(blackholeaodv_rt_entry*, Packet*)':
blackholeaodv.cc:(.text+0xb90): undefined reference to `blackholeaodv_rqueue::enque(Packet*)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::rt_resolve(Packet*)':
blackholeaodv.cc:(.text+0xcd3): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv.cc:(.text+0xcfe): undefined reference to `blackholeaodv_rtable::rt_add(int)'
blackholeaodv.cc:(.text+0xd66): undefined reference to `blackholeaodv_rqueue::enque(Packet*)'
blackholeaodv.cc:(.text+0xda3): undefined reference to `blackholeaodv_rqueue::enque(Packet*)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::rt_purge()':
blackholeaodv.cc:(.text+0xeeb): undefined reference to `blackholeaodv_rqueue::deque(int)'
blackholeaodv.cc:(.text+0xf81): undefined reference to `blackholeaodv_rqueue::deque(int)'
blackholeaodv.cc:(.text+0xfaf): undefined reference to `blackholeaodv_rqueue::find(int)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::recvRequest(Packet*)':
blackholeaodv.cc:(.text+0x132d): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv.cc:(.text+0x1351): undefined reference to `blackholeaodv_rtable::rt_add(int)'
blackholeaodv.cc:(.text+0x150e): undefined reference to `blackholeaodv_rqueue::deque(int)'
blackholeaodv.cc:(.text+0x1537): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv.cc:(.text+0x16b2): undefined reference to `blackholeaodv_rt_entry::pc_insert(int)'
blackholeaodv.cc:(.text+0x16c7): undefined reference to `blackholeaodv_rt_entry::pc_insert(int)'
blackholeaodv/blackholeaodv.o: In function `blackholeAODV::recvReply(Packet*)':
blackholeaodv.cc:(.text+0x1773): undefined reference to `blackholeaodv_rtable::rt_lookup(int)'
blackholeaodv.cc:(.text+0x179a): undefined reference to `blackholeaodv_rtable::rt_add(int)'
blackholeaodv.cc:(.text+0x183d): undefined reference to `blackholeaodv_rqueue::deque(int)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
hi..at the end when i type make clean ,it is giving error.by applying all changes as u mentioned, then by going in directory i type make clean at terminal.it is giving error :Makefile:272: *** commands commence before first target. Stop..
ReplyDeletepls help me.
geet - remove any extra space form make file .... u may have pressed enter smwhere
ReplyDeleteHello friend, please help me out from these questions and confusion...
ReplyDelete1. can I alter the data flowing in ns2, or can intermediate node compromise the integrity of the message, without the knowledge of sender and receiver.
2. can I generate exact 64 bit key or 80 bit key, using diffie hellman key generation algorithm.
3. which layer is better for encryption ??
4. if i will use, network layer for encrypting the packet.. will IP address also be encrypted... i mean header of IP address will also be encrypted..
I urgently need solution to above queries.. please reply ASAP