[ns] invalid command name "Agent/Noah"

Dario Borriello dario_bodj at hotmail.com
Wed Jan 11 00:55:45 PST 2006


Hi,

i have installed the protocol Noah in ns-2.29 through the following steps:

Makefile.in 	 add noah/noah.o \ to OBJ_CC and tcl/mobility/noah.tcl \ to 
NS_TCL_LIB
noah/noah.{h,cc} 	add noah.h and noah.cc to a new subdirectory noah/
tcl/mobility/noah.tcl	add noah.tcl to tcl/mobility/
tcl/lib/ns-lib.tcl.h	line 191: add source ../mobility/noah.tcl
line 603ff: add

	    NOAH {
		    set ragent [$self create-noah-agent $node]
	    }

line 768ff: add

Simulator instproc create-noah-agent { node } {
    # Create a noah routing agent for this node
    set ragent [new Agent/NOAH]

    ## setup address (supports hier-addr) for noah agent
    ## and mobilenode
    set addr [$node node-addr]

    $ragent addr $addr
    $ragent node $node

    if [Simulator set mobile_ip_] {
        $ragent port-dmux [$node demux]
    }
    $node addr $addr
    $node set ragent_ $ragent
    return $ragent
}

Then i recompile ns with "./configure" "make depend" and "make"

But when i issue a simulation which use Noah, ns don't recognize it and 
dispays the error
invalid command name "Agent/Noah"

Do i forget something??

Thanks

_________________________________________________________________
Scopri il nuovo MSN Htomail - 10MB di allegati 
http://www.msn.it/hotmail/minisite_10



More information about the Ns-users mailing list