LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-13-2015, 07:03 AM   #1
anand755
Member
 
Registered: Nov 2014
Posts: 34

Rep: Reputation: Disabled
watchdog help


i tried to patch the aodv file with
$ patch -p0 < watchdog-bayesian2.0_ns235.patch
got the help from
http://www.linuxquestions.org/questi...s2-4175504181/

this is the error msg

-lm
aodv/aodv.o: In function `AODV::command(int, char const* const*)':
aodv.cc.text+0x38f): undefined reference to `WATCHDOG::updateMAC(int)'
aodv/aodv.o: In function `AODV::AODV(int)':
aodv.cc.text+0x551): undefined reference to `WATCHDOG::WATCHDOG(int, int)'
aodv/aodv.o: In function `AODV::AODV(int)':
aodv.cc.text+0x961): undefined reference to `WATCHDOG::WATCHDOG(int, int)'
aodv/aodv.o: In function `AODV::sendToWatchdog(Packet const*)':
aodv.cc.text+0x3a12): undefined reference to `WATCHDOG::newPacket(int, int, int, int, int, int, unsigned int, char*, double)'
aodv/aodv.o: In function `AODV::sendToWatchdog(Packet const*, int)':
aodv.cc.text+0x3c62): undefined reference to `WATCHDOG::newPacket(int, int, int, int, int, int, unsigned int, char*, double)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
 
Old 05-13-2015, 07:30 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
?

And the error appears when you do what ?

Please show all your commands that were run, until the error appears.



-
 
Old 05-13-2015, 08:05 AM   #3
anand755
Member
 
Registered: Nov 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
For ns-2.35 : Please use the patch, watchdog-bayesian2.0_ns235.patch
https://drive.google.com/file/d/0B7S...it?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < watchdog-bayesian2.0_ns235.patch
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

after dis step the error was show
 
Old 05-13-2015, 08:28 AM   #4
anand755
Member
 
Registered: Nov 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
i ran my tcl file then i got dis warning messages
and in the simulation after detecting the malicious node the path was not changed. why ??




jd@ubuntu:~/project/ns-allinone-2.35/ns-2.35/tcl/ex/aodv malicious$ ns-watch dsr1.tcl
num_nodes is set 12
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

INITIALIZE THE LIST xListHead
warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable Agent/AODV::sufix_

see tcl-object.tcl in tclcl for info about this warning.

channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
jd@ubuntu:~/project/ns-allinone-2.35/ns-2.35/tcl/ex/aodv malicious$
 
Old 05-13-2015, 08:55 AM   #5
anand755
Member
 
Registered: Nov 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
the nam file is running but no report of the malicious node is been reported,but the node is behaving maliciously
 
Old 05-13-2015, 08:57 AM   #6
anand755
Member
 
Registered: Nov 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
this is my tcl file
Attached Files
File Type: txt dsr1.txt (4.5 KB, 30 views)

Last edited by anand755; 05-13-2015 at 09:26 AM.
 
  


Reply

Tags
aodv, blackhole, ns2, watchdog



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
watchdog in ns2 Reddou Programming 1 05-08-2014 04:30 PM
watchdog ?? Ammad Linux - General 3 09-30-2009 04:28 PM
Intel's watchdog support iTCO_wdt - does this mean watchdog is not present? kushalkoolwal Linux - Hardware 3 02-06-2009 03:16 PM
Hardware watchdog in BIOS and Linux watchdog driver are different? travishein Linux - Hardware 1 12-22-2008 09:41 PM
watchdog timeouts geletine *BSD 1 05-07-2006 11:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration