make mixed-wireless examples use InternetStackHelper::Reset

This commit is contained in:
Tom Henderson committed 2009-10-03 15:22:37 -07:00
1 parent f66a9b42b2
commit 804ddc729e
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ main (int argc, char *argv[])
internet.Install (backbone);
// re-initialize for non-olsr routing.
internet = InternetStackHelper ();
internet.Reset ();
//
// Assign IPv4 addresses to the device drivers (actually to the associated
+2
View File
@@ -130,6 +130,8 @@ def main(argv):
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.