Hi NSusers, I am new to ns2 and started learing from tutorial. I am using ns-2.34 in windowsXP thru cygwin. In this version ping example for adding new protocol comes with it with all settings already made in required files. So, I am trying to add new protocol named "link" to ns2 using ns tutorial's "ping" example steps.
I just renamed 'ping' with 'link' in the ping example files. 1. Copied link.cc, link.h files to folder "ns-2/apps/" 2. Defined LINK packet type in "ns-2/common/packet.h" as per the tutorial ping example. 3. Defined default value of LINK agent in "ns-2/tcl/lib/ns-default.tcl" as Agent/Link set packet_size 64 4. Defined new packet type in ns-packet.tcl 5. Added apps/link.o in Makefile 6. under ns2 directory i ran "make" And finally, typed "$ns link.tcl" to run the example script, then i see below error. I looked into archives and didnot find why this issue is coming for the ping example. Why do we see this error. "Segmentation fault (core dumped)" means what. where can i see this stack trace atleat to find where it failed. Please guide me in right direction to fix this. I greatly appriciate your help. Error from my cygwin window: ------------------------- $ ns link.tcl warning: no class variable Agent/Link::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/Link::off_link_ warning: no class variable Agent/Link::packetSize_ see tcl-object.tcl in tclcl for info about this warning. warning: no class variable Agent/Link::off_link_ Segmentation fault (core dumped) ----------------------------------------------------------------------- -- Regards, Manoop Talasila