[ns] memory leak because of payload allocation

2010-11-25 Thread avinash chaurasia
hello all, I have written following lines of code in UDP to transfer mien data over network, but when i run script it eats up all my 3gb memory and 5gb swap too with actual data of size around 16 mb. code in udp layer: *p->allocdata(len);* * **((PacketData*)(p->userdata()))->setData(readbuf);* C

Re: [ns] Altering Packet Data

2010-11-25 Thread avinash chaurasia
strcpy(((PacketData*)(data->userdata())->data(), readbuf); here readbuf is char array contains ur data to be set. Hopefully this will help you. On Mon, Nov 22, 2010 at 12:44 PM, Dhara Buch wrote: > > Hello, >I want to change the data field of Packet p. I get it through > userdata(), as >

Re: [ns] Problem by Installation of MAC 802.11e EDCF-Code

2010-11-25 Thread chithra17
Hello Amela, I am using ns2.34 version on ubuntu. Can you please tell me where can I find EDCF code in ns2.34 package?? Is the code already there or should I need to download any patch files?? Please guide me with this.. Am doing my thesis so I needed for that... Your help is highly appreciable

[ns] Wireless LAN Security using NS2

2010-11-25 Thread Pushpika Welivitage
I am doing a MSc Dissertation in Wireless LAN Security using NS2. But I am having problems to create Access Point in NS2 and Add security into it. Could sombody help please   I am using ns-2.28   Thanks. Push

[ns] Quorum based power saving protocol in IEEE802.11

2010-11-25 Thread YANLI
Hello! I am studying power saving in 802.11. Does anyone know about quorum system? I want add it in the 802.11 and simulate, but I have not any idea how do it Everybody gives a dot the opinion, please

[ns] Problem by Installation of MAC 802.11e EDCF-Code

2010-11-25 Thread amel
Hi, you have to add a separator after "-I./wpan" you should have : INCLUDES = \ -I. @V_INCLUDE_X11@ \ @V_INCLUDES@ \ -I./tcp -I./sctp -I./common -I./link -I./queue \ -I./adc -I./apps -I./mac -I./mobile -I./trace \ -I./routing -I./tools -I./classifier -I