make mixed-wireless examples use InternetStackHelper::Reset

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

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

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.