LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2015, 06:39 AM   #1
rc49
Member
 
Registered: May 2015
Posts: 45

Rep: Reputation: Disabled
adding new protocol in ns2.35


my system specifications are
ubuntu 12.04 32bit
ns2.35

i m trying to modify DSR protocol in ns2.35 as follows
copied DSR protocol folder (already present in ns2.35 directory) and paste it as mdsr in same location

add following lines in makefile.in present in ns2.35 folder

Code:
mdsr/dsragent.o mdsr/hdr_sr.o mdsr/mobicache.o mdsr/path.o \
	mdsr/requesttable.o mdsr/routecache.o mdsr/add_sr.o \
	mdsr/mdsr_proto.o mdsr/flowstruct.o mdsr/linkcache.o \
	mdsr/simplecache.o mdsr/sr_forwarder.o \
then i save it and run following commands in ns2.35 location
Code:
configure
make clean
make
it give error
Code:
ramneet@PC:~/ns-allinone-2.35/ns-2.35$ make clean
rm -f *.a *.o libtcl* core errs *~ \#* TAGS *.E a.out \
		errors tclsh tcltest lib.exp Tcl 
cd dltest ; make clean
make[1]: Entering directory `/home/ramneet/ns-allinone-2.35/ns-2.35/dltest'
rm -f *.o lib.exp ../dltest.marker
rm -f *.so
make[1]: Leaving directory `/home/ramneet/ns-allinone-2.35/ns-2.35/dltest'
somebody please tell me what other changes are required in ns2 files so as to run mdsr in tcl scripts as
set $val(rp) mdsr

i also read other articles but examples shows something like new packet type m not adding new packet still...m just replicating existing protocol yet as MDSR,,please somebody tell me changes required """step by step"""
any response will be appreciated
thanks in advance
 
Old 09-26-2015, 07:21 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
It give error
No errors are shown.

But you are not supposed to run './configure && make clean && make' in ns-2.35.
It's all being taken care of with ./install in the top directory ns-allinone-**.

You will find out if an MDSR entry is missing in common/package.h
... when ./install fails with missing PT_MDSR.
Please check packet.h for DSR : $ grep -n DSR packet.h
.. to know which MDSR entries to add.

And you can check the DSR entries in tcl/lib/{ files.tcl } :
$ cd ns-2.35/tcl/lib/ && grep -n DSR *
... and then may be add similar entries for your MDSR.


-
 
  


Reply

Tags
ns2, simulation, ubuntu 12.04



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
adding new protocol to ns2 savankiran Programming 3 03-22-2017 01:39 PM
Error when adding LAR protocol in NS2 Helen jameel Linux - Software 28 04-03-2016 08:15 PM
adding new protocol to ns2 and aquasim Arktech Linux - Networking 0 07-13-2014 06:45 AM
make error in ns2.29 when adding new protocol assassin91 Linux - Newbie 25 04-23-2012 11:17 PM
error in adding new protocol in ns2.34 for fedora 14 jothi8 LinuxQuestions.org Member Success Stories 0 03-05-2012 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 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