make mixed-wireless examples use InternetStackHelper::Reset
authorTom Henderson <tomh@tomh.org>
Sat, 03 Oct 2009 15:22:37 -0700
changeset 5357 d8915edc639c
parent 5356 8f693fdc3149
child 5358 7db10ef6e556
make mixed-wireless examples use InternetStackHelper::Reset
examples/mixed-wireless.cc
examples/mixed-wireless.py
--- a/examples/mixed-wireless.cc	Sat Oct 03 15:21:52 2009 -0700
+++ b/examples/mixed-wireless.cc	Sat Oct 03 15:22:37 2009 -0700
@@ -164,7 +164,7 @@
   internet.Install (backbone);
 
   // re-initialize for non-olsr routing.
-  internet = InternetStackHelper ();
+  internet.Reset ();
 
   //
   // Assign IPv4 addresses to the device drivers (actually to the associated
--- a/examples/mixed-wireless.py	Sat Oct 03 15:21:52 2009 -0700
+++ b/examples/mixed-wireless.py	Sat Oct 03 15:22:37 2009 -0700
@@ -130,6 +130,8 @@
     olsr = ns3.OlsrHelper()
     internet.SetRoutingHelper(olsr);
     internet.Install(backbone);
+    # re-initialize for non-olsr routing.
+    internet.Reset()
     # 
     #  Assign IPv4 addresses to the device drivers(actually to the associated
     #  IPv4 interfaces) we just created.