Dear all,

I have tried to let my tcl script down from 1000 simulation time to 100
simulation time.

Thanksful , it can assign packet execution time now , but the packet type
still cant.

But there is a question that, when I want to see my packet execute time like

execute_time_exp=Random::Exponentila(0.25);
task->execute_time_ =execute_time_exp;
printf("the packet execute time is %f \n",task->execute_time_);

it will result in that all packet execute time is same strange number like
-0.121111

and when I added another code for check the variable execute_time_exp , it
suddenly success.

the code is

execute_time_exp=Random::Exponentila(0.25);
task->execute_time_ =execute_time_exp;
printf("the execute_time is %f \n",execute_time_exp);
printf("the packet execute time is %f \n",task->execute_time_);


All of the packet execute time follow exponential distribution in 0.25 

it really makes me confuesd..

In further , I want to check the packet type by adding this

printf("the packet type is %s\n",ch->ptype());

and it comes Segment fault again.

Is still the problem that packet hold too many memory when simulation?

Should I remove all of header but the cmn header and my header task ?

Really need some suggestion , thanks a lot !!



--
View this message in context: 
http://network-simulator-ns-2.7690.n7.nabble.com/how-to-set-packet-type-tp28622p28687.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to