Hi, I have extended ns2 for dtn simulations. I have also created my classes for routing. I have written my tcl file, see below, and I simply get a segmentation fault, without any explanation... Does anybody have suggestions or got similar problem??? Thank you in advance, Adriano
# Create a simulator object set ns [new Simulator] #Create nodes set node1 [$ns node] set node2 [$ns node] #Create the agent for the first node set dtn1 [new Agent/DTNAgent] #Create another Agent for the second node set dtn2 [new Agent/DTNAgent] #attach the agents to the nodes $ns attach-agent $node1 $dtn1 $ns attach-agent $node2 $dtn2 #Set local region $dtn1 region "REGION1" $dtn2 region "REGION2" #Setup routing table $dtn1 add "REGION2" $dtn2 1 1 1500 $dtn2 add "REGION1" $dtn1 1 1 1500 This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
