Dear all
I want to use GPSR protocol in ns2.27. I have done all this steps that I have found in internet 1- Create a directory "gpsr" with gpsr.cc and gpsr.h in it. 2- Declare gpsr packets in common/packet.h, adding PT_GPSR and in packet.h with name_[PT_GPSR] = "GPSR" 3- The tracing support doesn't need to be implemented right know. 4- In tcl/lib/ns-packet.tcl add "GPSR". Then you'll have to declare all defaults values of gpsr binded attributes in tcl/lib/ns-default.tcl. To do it easily, have a look at the end of the ns-default.tcl file originally used bu gpsr in ns2.1b6. You'll get everything you need. It should look like Agent/GPSR set ..... Copy paste it to your ns-default.tcl file. 5- You have to add procedures to create gpsr nodes in tcl/lib/ns-lib.tcl. You must add in Simulator instproc create-wireless-node args{ .... } the following: GPSR { set ragent [$self create-gpsr-agent $node] } Then, add the pocedure Simulator instproc create-protoname create-gpsr-agent {node} { set ragent [ne Agent/GPSR] $ragent node $node $self at 0.0 "$ragent start" return $ragent } 6- Finally, update the makefile to compile everything by adding the folowin line gpsr/gpsr.o\ However, when I try to compile gpsr.h, I get many errors. Does anybody have the same problems??How can I solucionate it? Thanks to everybody, MIKEL --------------------------------- Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.