You can use my otcl debugger facilities to check the state of the internal otcl variables after this code
http://tagus.inesc-id.pt/~pestrela/ns2 Pedro Vale Estrela > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of daft > Sent: segunda-feira, 29 de Janeiro de 2007 20:16 > To: ns-users@ISI.EDU > Subject: [ns] node entry? > > > > Hi > > I'm trying to swap out the default classifier in a node for my own agent. > The following code inserts my agent into the entry point of the node... > > # Create CSG > set agt [new Agent/MyAgent] > puts "Node entry: [$n1 entry] agt entry: [$agt target]" > $ns attach-agent $n1 $agt > $n1 insert-entry [new RtModule] $agt "target" > puts "Node entry: [$n1 entry] agt entry: [$agt target]" > > The final puts statement shows that the entry point of $n1 is correctly > assigned to $agt, and the agents target is set to the original classifier > (which is the behaviour I'm after). > > However when I send a packet to $n1 the original classifier is invoked > first, and if I send a packet through $n1 the original classifer is used > and > my agent is never invoked. > > Any ideas what's going wrong/on? > > Thanks > > Tim > > > -- > View this message in context: http://www.nabble.com/node-entry-- > tf3138100.html#a8696964 > Sent from the ns-users mailing list archive at Nabble.com.