Dear Mubashir Rehmani and all,
Thanks a lot, it seems that I should modify

~/ns-allinone-2.34/ns-2.34/tcl/lib/ns-agent.tcl line 202

by adding

Agent/WFRP instproc init args {
  $self next $args
}
 
Agent/WFRP set sport_   0
Agent/WFRP set dport_   0

Kindly check these links
http://elmurod.net/wps/?p=157
http://www-rp.lip6.fr/ns-doc/ns226-doc/html/annotated.htm

Thanks all and May Allah be with us
Mariam:-)


Mariam Elansary wrote:
> 
> 
> Al Salamo Alikom,
> Dears,
> 
> My Environment: Ubuntu 9.10 and NS-2.34
> 
> While I am building my new routing protocol for WSN, I decide to start
> with
> AOMDV protocol.
> 
> I copy the folder and rename it and all its files.
> and follow all steps in "Implementing a New Manet Unicast Routing Protocol
> in NS2, Francisco J. Ros & Pedro M. Ruiz"
> make clean and make run with any error.
> 
> when I start to run a tcl file using my protocol, I get this error:
> 
> *mar...@ubuntu:~/NS2_Work/Example$ ns mrr.tcl*
> *num_nodes is set 16*
> *warning: no class variable Agent/MRR::mrr_max_paths_*
> *
> *
> * **see tcl-object.tcl in tclcl for info about this warning.*
> *
> *
> *warning: no class variable Agent/MRR::mrr_prim_alt_path_len_diff_*
> *
> *
> *INITIALIZE THE LIST xListHead*
> *.*
> *.*
> *.*
> *warning: no class variable Agent/MRR::mrr_prim_alt_path_len_diff_*
> *
> *
> *10 simulation seconds*
> *20 simulation seconds*
> *30 simulation seconds*
> *40 simulation seconds*
> *50 simulation seconds*
> *60 simulation seconds*
> *70 simulation seconds*
> *80 simulation seconds*
> *90 simulation seconds*
> *.*
> *.*
> *.*
> *990 simulation seconds*
> *1000 simulation seconds*
> *channel.cc:sendUp - Calc highestAntennaZ_ and distCST_*
> *highestAntennaZ_ = 1.5,  distCST_ =
> 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0
> *
> *SORTING LISTS ...DONE!*
> *Segmentation fault*
> 
> 
> Thanks in advance
> Mariam
> 
> -- 
> Best regards,
> 
> Mariam Ahmed Moustafa
> 
> Software Engineer, R&D Department
> 
> Integrated Solutions For Ports
> 
> Tel: +(203) 4293846/4294632 Extn: 207
> 
> Email:  mka...@isfpegypt.com
> 
> Web Site: www.isfpegypt.com
> 
> 

-- 
View this message in context: 
http://old.nabble.com/-Segmentation-fault--Where-are-%22prim_alt_path_len_diff_-and-max_paths_%22-tp29004982p29005078.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to