LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 07:39 AM   #1
rc49
LQ Newbie
 
Registered: May 2015
Posts: 25

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, 08:21 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 11:43 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration