Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have used your patch and ns-2.35 and I can run ns-default.tcl. But when I run antnet.tcl I get error "invalid command name "Agent/Antnet". So I try use copy ns and use command ./ns as below:
student@debian77:~/ns-allinone-2.35/ns-2.35/antnet/scripts$ ./ns antnet.tcl
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o24: no target for slot 4294967295
_o24 type: Classifier/Hash/Dest
content dump:
classifier _o24
0 offset
0 shift
1073741823 mask
1 slots
slot 4: _o402 (Classifier/Port)
-1 default
---------- Finished standard no-slot{} default handler ----------
I have no idea how to solve it. I ever user used your patch in ns-2.34 and other ns-2.34 and ns-2.35 from github but they don't succeed either. So I hope you would like to help me. (Fyi I use debian 7.7)
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,473
Rep:
← Ref. post #3, @Emansa : Welcome to LQ.
Please use the updated ns-2.35 : ns-allinone-2.35_gcc482.tar.gz
And use the updated patches (antnet_ns234.patch) antnet_ns235.patch.
Do not use plain ns command, but ns-antnet or ns235-antnet.
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < antnet_ns235.patch
$ cd ns-2.35/
$ cp ns ns235-antnet
$ sudo cp ns235-antnet /usr/local/bin/
The simulation : $ ns235-antnet antnet.tcl
Please use the updated ns-2.35 : ns-allinone-2.35_gcc482.tar.gz
And use the updated patches (antnet_ns234.patch) antnet_ns235.patch.
Do not use plain ns command, but ns-antnet or ns235-antnet.
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < antnet_ns235.patch
$ cd ns-2.35/
$ cp ns ns235-antnet
$ sudo cp ns235-antnet /usr/local/bin/
The simulation : $ ns235-antnet antnet.tcl
Is it possible to install AntHocNet beside AntNet in the same ns-allinone-2.35 folder? Or should eye delete AntNet before installing AntHocNet?
Thank you, sir.
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,473
Rep:
Re #6.
You can have as many ns-allinone-2.xx as you want, installed at the same time.
But : Do never add any *PATH text to .bashrc .
(( I have about 170 different patched ns2 on the same OS :
$ ls /usr/local/bin/ns* | wc ,,,, the count is 179.))
So the suggestion is to build another ns-allinone-2.35 in a new folder in /home/name/.
Thanks. I finally went for anthocnet only, so i reinstalled ns-2.35 patched it with anthocnet 2.35 patch. Now when i type "ns" in terminal, it says that it is not installed? How's that?
Please use the updated ns-2.35 : ns-allinone-2.35_gcc482.tar.gz
And use the updated patches (antnet_ns234.patch) antnet_ns235.patch.
Do not use plain ns command, but ns-antnet or ns235-antnet.
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < antnet_ns235.patch
$ cd ns-2.35/
$ cp ns ns235-antnet
$ sudo cp ns235-antnet /usr/local/bin/
The simulation : $ ns235-antnet antnet.tcl
hello sir,
even after following you instruction still i m getting this error..
invalid command name "Agent/Antnet"
while executing
"Agent/Antnet create _o386 0"
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/Antnet $i"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $sz} {incr i} {
set nn($i) [ new Agent/Antnet $i]
}"
(file "antnet.tcl" line 45)
Please use the updated ns-2.35 : ns-allinone-2.35_gcc482.tar.gz
And use the updated patches (antnet_ns234.patch) antnet_ns235.patch.
Do not use plain ns command, but ns-antnet or ns235-antnet.
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < antnet_ns235.patch
$ cd ns-2.35/
$ cp ns ns235-antnet
$ sudo cp ns235-antnet /usr/local/bin/
The simulation : $ ns235-antnet antnet.tcl
but after running antnet.tcl file, rtable.txt file is still blank.
and when i run nam file, it only shows few nodes and no data packet is transfered and it contain only static node..
can u provide some extra TCL files to run??
thanks
Last edited by bhavesh_patel; 03-29-2017 at 04:48 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.