Installing Patch

100 views
Skip to first unread message

Mohammed Sabri

unread,
Nov 10, 2018, 12:14:36 PM11/10/18
to Network Simulator 2 (NS2)
Hi knudfl,

I was wondering how to install (Mesh-802.16_ns235.patch)
is it install it in ns-2.35 folder? is that correct?

I am using $ patch -p1<Mesh-802.16_ns235.patch
is that correct?


That because I want to run some for wimax tcl but I got errors.

Many Thanks

knudfl

unread,
Nov 10, 2018, 3:36:50 PM11/10/18
to Network Simulator 2 (NS2)
Hi.

Please read the text file = hwmp_ns235.patch
... Patches created with "$ diff -Naur ns-2.xx-orig ns-2.xx/ ...." must be applied in ns-allinone-2.xx with option -p0.

tar xvf ns-allinone-2.35_gcc5.tar.gz
https
://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing
cd ns
-allinone-2.35/
patch
-p0 < hwmp_ns235.patch


Wimax patches, overview :
wimax-awg26_ns235.patch.gz
wimax-802-16j-OFDMA_ns235.patch
Mesh-802.16_ns235.patch
The NIST-mob wimax
Wimax-QoS_ns235.patch

My setup :    See attachment, usr.local.bin-08.18.txt
usr.local.bin-08.18.txt
ns2-INFO.txt

Mohammed Sabri

unread,
Nov 12, 2018, 6:14:35 AM11/12/18
to ns-u...@googlegroups.com
Dear Mr. Knudfl,

I have NS2 (v.2.35) already and it's working with some WiMAX tcl

so for that reasons, I would like to install a patch. 

actually, I don't understand clearly of the text file that you sent to me!!

so is it correct if I do like this ....

:~$ patch -p1<Mesh-802.16_ns235.patch

is that correct?

Many Thanks,


--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
Nov 12, 2018, 8:04:04 AM11/12/18
to Network Simulator 2 (NS2)
Hi.

REPEAT : Please apply with ...
cd ns-allinone-2.35/
patch
-p0 < hwmp_ns235.patch
  • But no guaranty that you can apply a patch to an already patched ns-2.35/
Usually you will have to setup multiple ns2 to cover the different Wimax´s
1. See  ns2-INFO.txt
2. I have about 200 installs of ns-allinone on one OS.
{~100 patches} x {several ns2 versions} / 32 and 64bit.

knudfl

unread,
Nov 12, 2018, 2:39:45 PM11/12/18
to Network Simulator 2 (NS2)
Sorry, your question was about Mesh :

$ cd ns-allinone-2.35/
$ patch
-p0 < Mesh-802.16_ns235.patch

... overview :
wimax-awg26_ns235.patch.gz
wimax-802-16j-OFDMA_ns235.patch
Mesh-802.16_ns235.patch
*   Wimax-Mesh : Mesh-802.16_ns235.patch
The NIST-mob wimax
Wimax-QoS_ns235.patch


Mohammed Sabri

unread,
Nov 16, 2018, 6:15:34 AM11/16/18
to ns-u...@googlegroups.com
Hi Mr. knudfl,

Thank you for replying.

I would like to be sure .. is that I need to this code first:

$ cd ns-allinone-2.35/


and then I do the patch??
$ patch 
-p0 < Mesh-802.16_ns235.patch  


so if I need to do more patch is that mean like:
$ patch -p0 < wimax-802-16j-OFDMA_ns235.patch

Many Thanks.

knudfl

unread,
Nov 16, 2018, 7:45:44 AM11/16/18
to Network Simulator 2 (NS2)
Example, setting up multiple ns-2.35 :

/home/name/ns2/Wimax-Mesh/ns-allinone-2.35/
/home/name/ns2/Wimax-802-16j-OFDMA/ns-allinone-2.35/
/home/name/ns2/Wimax-<other>/ns-allinone-2.35/

I.e. you can usually only use one Wimax patch each ns-2.35.
However it seems that Mesh-802.16 and wimax-802-16j-OFDMA can live together !

The only edit done was with the Makefile.in .
So you can actually apply "wimax-802-16j-OFDMA_ns235.patch" to the "Mesh" patched ns-2.35.
.....  Then edit the Makefile.in,  or replace it with the attached Makefile.in.
( I compiled the "wimax/common/ files" with g++34,  i.e. version gcc-3.4.6
.... and switched back to g++-5 when 'wimax/common/ files' had finished the builds.o ).

The combined patch =  `Wimax-Mesh+802-16j-OFDMA_ns235.patch.gz´

-
Makefile.in.txt
ns2-INFO.txt
Reply all
Reply to author
Forward
0 new messages