Error about multiple interface support in NS-2.33
I have provided NS2 files which add multiple interface support in NS-2.33 in this page. Comments show that there are runtime error when executing the multi-interface sample. I came across this problem today, the reason is that modified files have not been unpacked correctly.
So, if you meet this runtime error, please check whether there is a change-numifs funtion in ns-2.33/tcl/lib/ns-lib.tcl at line 2277
Tags:
下一篇:
多拉口NS2代码报错的问题
相关日志推荐
lulu | 2010-04-08 08:22:47
Hii all, I used your files to correct Ramon's extension with ns2.34, everything went smoothly except that I faced a strange error!! I used your scinarios, and I'm wondering if you can help me in this error.. $ ns multi-interface.tcl num_nodes is set 9 INITIALIZE THE LIST xListHead INITIALIZE THE LIST xListHead channel.cc:sendUp - Calc highestAntennaZ_ and distCST_ highestAntennaZ_ = 1.5, distCST_ = 550.0 SORTING LISTS ...DONE! SORTING LISTS ...DONE! Segmentation fault (core dumped) one last thing, when I run single-interface.tcl I get only nodes that are not connected to each other(no links) what does it mean?? Sorry for my long questions, but I truly need your help ,i'm new to ns2.. Thank you for your hard work :)yhustc | 2010-04-09 09:20:51
Generally, "Segmentation fault" is caused by C++ runtime error. There may be a null pointer somewhere in the C++ code. You may insert some debug lines into your tcl file, locate the process which triggered this error, then debug the split C++ code. For the second problem, is there any send record which begins with a letter "s" in the ".tr" file?lulu | 2010-04-10 04:18:01
Yes, I found lots of "s" in my trace file :Ss what does it mean ?? Thanks in advance..yhustc | 2010-04-11 22:48:18
"s" means send, "r" means receive, "f" means forward if there are many "s", it seams the source node had try to send packets. if there are no "r" recoreds, may be nodes are placed too far to receive packets correctly.