[ns] AODV+ for wired-cum-wireless in NS2.35 ?

2014-06-09 Thread Alireza Shamsoshoara
Hi . I’m working on my MS thesis and it includes wired-cum-wireless module. I want to using AODV for wired-cum-wireless , so found something on this link : http://www.eit.lth.se/index.php?uhpuid=sdkd.ahahpuid=161L=1 my NS version is 2.35 , and I implemented this code in ns2.35 but it

[ns] Header modification of RREQ of AODV

2014-06-09 Thread Arathy Gopinath
Hai all, I have included a new field in the header of RREQ of AODV. which indicate the number of neighbours. How can I update that field with corresponding number of neigbours?? Help me ...awaiting for your response Thanking you

Re: [ns] Problem with const char*

2014-06-09 Thread Turner, Randy
It's possible that the rq_anon pointer is either pointing to an invalid memory location, OR the string pointed to by rq_anon is not null-terminated Randy -Original Message- From: ns-users-boun...@isi.edu [mailto:ns-users-boun...@isi.edu] On Behalf Of Reza Karimi Sent: Sunday, June 08,

Re: [ns] Problem with const char*

2014-06-09 Thread Reza Karimi
Dear Randy Thanks for your answer. As you said, my pointer was a NULL pointer. So I correct the code as follows: const char *x=Reza; if (rq-rq_anon != NULL) { if (strcmp(rq-rq_anon,x) == 0) { //Do something } } Best Regards, __

[ns] question regarding overhearing in ns2.35

2014-06-09 Thread prince
In ns-2.35 i need to overhear packets in mac-802.11.cc i am able to do that at recv_timer() function in if(dst != (u_int32_t)index_ dst != MAC_BROADCAST) { /* * We don't want to log this event, so we just free * the packet instead of calling the drop routine. */