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 see this comment in Readme file but how can I do to install this patch in ns 2.33 ?
I haven't get any information in the internet about it.
however, all command is OK . Just the last one when I type make return an error
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 17
Please try with the new ( experimental ) patch "EDCA_ns233-all-v1-0-2.tar.gz" :
EDIT : changed to EDCA_ns233-v1-0-2-18Dec2012.tar.gz
providing : common/ mac/ tcl/ Makefile.in,
all as close as possible to the 'README.txt' in EDCA_ns-2_28-v1-0-2.tgz.
I have donwload again ns2.33 unzip it and EDCA_ns233-all-v1-0-2.tar.gz and type the command below:
cd ns-allinone-2.33/ns-2.33/ && tar xvf EDCA_ns233-all-v1-0-2.tar.gz
then I type $ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install
it is OK and ns is installed
but when I type make install I get the following error:
Quote:
[root@localhost ns-2.33]# make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
[root@localhost ns-2.33]# ns
ns:
[code omitted because of length]
: invalid command name "..."
while executing
"..."
invoked from within
"if [TclObject is-class Mac/802_11e] {
...
copy settings of MAC/802.11
(which are contained in this file) into this section
and at an "e" at the end o..."
I have fix the problem, I add the setting of MAC/802.11e into file tcl/lan/ns-mac.tcl.
now, i will try to add also WLANpatch-ns2.28-v1_0
, HWMP patch and MultiInterface patch
I have juts update the file according to EDCA patch file:
Quote:
6. add to tcl/lan/ns-mac.tcl:
if [TclObject is-class Mac/802_11e] {
...
copy settings of MAC/802.11
(which are contained in this file) into this section
and at an "e" at the end of the "Mac/802_11" terms
...
Mac/802_11e set cfb_ 0 ;# disables CFB
}
Now i'm trying to install CMU-WLAN Patch but it also for 2.28 . Have you any idea how to do it for ns 2.33
Best regards.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 24
The patch CMU_WLAN_patch is meant to be installed together with "EDCA" :
In ns-2.28 . If I read the sparse information right.
* It would be nice, if you can provide a link to the site,
where you got the CMU_WLAN information and the files.
The patch CMU_WLAN_patch fits badly into
ns-2.33/mac/ mac-802_11.cc mac-802_11.h mac-timers.cc mac-timers.h .
When you apply the patch, the rejected code will be saved to :
mac-802_11.cc.rej mac-802_11.h.rej mac-timers.cc.rej mac-timers.h.rej .
Then you can see which code it is about.
The easy solution : Use ns-allinone-2.28 for EDCA and CMU_WLAN.
.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 26.
Quote:
I need to install all patches on ns2.33
Why ? ? If it is your own decision, it may be a wrong decision ?
Please see post #11 :
You can have as many versions of ns-allinone-2.xx as you want ..
# 27
Quote:
No reply untill now
You have yet to confirm that you have read all the patches,
and to confirm that you understand the "may be conflicting
changes" that are made to the ns-2.xx/* files.
Dear Sir,
the need of use all patches on the same ns is not my decision.
Indeed, I try now to use some tcl script written by one student during his master degree project and he has already use this all patches on the some ns with some amendement.
He don't spoke about amendment and how we can do it but he just tell that he has adjast some patches.
Best regards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.