[ns] Problem with Ad Hoc Routing Protocols

Martin Jacobsson m.jacobsson at ewi.tudelft.nl
Tue May 4 01:48:43 PDT 2004


On Tue, 2004-05-04 at 07:18, wilson woon wrote:
> I am using ns-allinone-2.27. I encountered a few
> problems  with DSR and TORA Routing Protocol. The
> others such as DSDV and AODV work ok.
> 
> The problem with TORA is 
> [...]

There is a bug in TORA in ns-2.27.

One of the tcl scripts that configures a mobile node tries to call a
non-existing function called port-dmux on the Agent/TORA object. This is
why the simulation stops.

Here is a patch that will implement such a function (the function does
nothing) in the Agent/TORA class. For me, this work-around works fine.

Best Regards,
Martin Jacobsson




*** tora.cc     14 Oct 2003 13:03:59 -0000      1.1.1.1
--- tora.cc     16 Mar 2004 15:25:47 -0000
***************
*** 139,144 ****
--- 139,148 ----
                        imepagent->imepRegister((rtAgent*) this);
                        return TCL_OK;
                }
+               else if(strcmp(argv[1], "port-dmux") == 0) {
+                       // XXX: A hack!
+                       return TCL_OK;
+               }
        }
        return Agent::command(argc, argv);
  }



-- 
Martin Jacobsson <m.jacobsson at ewi.tudelft.nl>



More information about the Ns-users mailing list