NS-2.34 DYMO patch

2020-04-23 12:49发布

问题:

i'm trying to add DYMO routing protocol to NS-2.34 but it didn't work, i'm following this tuto : https://khaledben.wordpress.com/2011/04/16/patching-dymo-um-in-ns-2/

in other hand i can not find dymo-3.patch for ns-2.34 (http://masimum.inf.um.es/?Software:DYMOUM is no more available).

could any one help me to get the patch file or fix this issue please !

回答1:

"dymoum-0.3.tgz" is here https://drive.google.com/file/d/0B7S255p3kFXNeTFjUkc4T3NGWjA/view?usp=sharing

ns-allinone-2.34 is old. gcc / g++ version 3.4.6 or 4.1.2 can be used.

I did :

cd ns-allinone-2.34/
patch -p0 < Edited-dymoum_ns-2.34_v0.3.patch
export CC=gcc34 CXX=g++34 && ./install

Testingdymoum/ns/test/{test_2n_m.tcl, test_2n.tcl, test_3n_m.tcl, test_3n.tcl} : All OK. And four nice nam animations.


Second run with Dymoum and ns-2.34 : I made up a new patch from { ns234_gcc49.patch + Edited-dymoum_ns-2.34_v0.3.patch + the dymoum/ folder} to DYMO-03-all_ns234-gcc5.patch. So with a stock ns-allinone-2.34 it is :

cd ns-allinone-2.34/
patch -p0 < DYMO-03-all_ns234-gcc5.patch
./install

Link, DYMO-03-all_ns234-gcc5.patch https://drive.google.com/file/d/0B7S255p3kFXNbHNsUzQ3QXdMa0E/view?usp=sharing



Also available : DYMO-03-all__ns235.patch https://drive.google.com/file/d/0B7S255p3kFXNejVmQ0duZmRHUEU/view?usp=sharing

For ns-allinone-2.35_gcc482.tar.gz ( All gcc versions 4.6 - 5.2 ) https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing


Other links 1) The old dymoum_ns-2.34_v0.3.patch (Don't use it) https://drive.google.com/file/d/0B7S255p3kFXNLXJzdURCZmRzWjA/view?usp=sharing ... uploaded as "old" : dymoum_ns-2.34_v0.3.old.patch

2) "dymoum_ns-2.34_v0.3.patch", edited : Edited-dymoum_ns-2.34_v0.3.patch https://drive.google.com/file/d/0B7S255p3kFXNeS1oVlkzd0hsd2s/view?usp=sharing