Hi,

If you would like to add a new module into NS2, please read

http://www.ns2ultimate.com/post/454001969/including-new-modules-into-ns-2


If you would like to add a new  C++ class,  please read the series of blog 
posts indicated below:

http://www.ns2ultimate.com/post/648508440/c-and-otcl-linkage-why-two-languages

Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On Apr 7, 2011, at 3:17 PM, Zakia Khalfallah wrote:

> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi Friends. I'm runing GPSR protocol on NS2 (linux). 
> I add in "ns-agent.tcl" these commands to declare GPSR agent :
> 
> Agent/GPSR instproc init args {
>        $self next $args }       
> ...Agent/GPSR set sport_      0
> Agent/GPSR set dport_ 0
> 
> when i just run the command ns, it shows me this error : 
> [code
> omitted beacuse of length]: invalid command name "Agent/GPSR" while 
> executing"Agent/GPSR instproc init args {$self next $args}".
> Brievly, ns can't understand the "Agent/GPSR". How and in wich file can i 
> declare this agent/
> Any one can help me ? I'm blocked :(
> Thank you .Cordially
> 
>                                         
> 


Reply via email to