Sunday, June 3, 2012

Adding A new Protocol in ns 2.35

Just Remember from my last post that is for ns .2.34
but i am also updating a patch that when you are adding protocol on ns2.35
in packet header you please add at
last




// WFRP packet
static const packet_t PT_WFRP = 73;

        // insert new packet types here
static packet_t  PT_NTYPE = 74; // This MUST be the LAST one




so this protocol will work.

as in my last post please put on line

272 in packet.h


type == PT_WFRP ||

and
name_[PT_WFRP] = "WFRP";

in line 424
note : this above line should be above on this line
name_[PT_NTYPE]= "undefined";

next changes in  cmu-trace.h and cmu-trace.cc. files
at trace/cmu-trace.h
at line 163 add
void    format_wfrp(Packet *p, int offset);
.......................................
and other things are added on that post (last)






11 comments:

Unknown said...

nice !!!

Unknown said...

can you help me to add multipath dsr protocol on ns 2.35

Unknown said...

yes of course ....

Unknown said...

Mr. Arun...can you post about multipath dsr protocol on ns 2.35....thanks

Unknown said...

I will try brother . would you please tell me that what you want a whole code or a particular segment of that Multi path

Anonymous said...

hi sir, i am using ns 2.35 version. i want to add new protocol wfrp. i followed what you said. but i got this following error when i give the make clean command... please help me to solve this problem

Makefile:270: *** commands commence before first target. Stop.

please give me the solution as soon as possible

Unknown said...

hi arun,

i am using ns 2.35..i have followed what u have said..but once i give make clean command following message is coming:

make *** No rule to make target 'clean'.stop
and if i give make command then the below message is coming
nake *** No targets specified and no make file found. stop.

Unknown said...

hi arun,

i am using ns 2.35..i have followed what u have said..but once i give make clean command following message is coming:

make *** No rule to make target 'clean'.stop
and if i give make command then the below message is coming
Make *** No targets specified and no make file found. stop.

pls pls help me as soon as possible..

Unknown said...

i have "SAODV-secure aodv" source code. so how to run it in ns-2.35. means how to add this protocol in ns-2.35 ???

my mail id:- vivektank201299@gmail.com

Unknown said...
This comment has been removed by the author.
Unknown said...

Hello, i'm working on Multipath DSR in ns2.35 can you provide me the tcl script to? thanks for you attention