Clean up some stale comments in examples
authorTom Henderson <tomh@tomh.org>
Fri, 12 Feb 2010 11:25:17 -0800
changeset 5993 80584c404aba
parent 5992 026548ddc1d0
child 5994 d3338a5578a5
Clean up some stale comments in examples
examples/csma/csma-packet-socket.cc
examples/csma/csma-ping.cc
examples/error-model/simple-error-model.cc
examples/routing/simple-global-routing.cc
examples/routing/simple-point-to-point-olsr.cc
examples/tunneling/virtual-net-device.cc
--- a/examples/csma/csma-packet-socket.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/csma/csma-packet-socket.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -14,7 +14,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-// Port of ns-2/tcl/ex/simple.tcl to ns-3
 //
 // Network topology
 //
@@ -22,11 +21,9 @@
 //       |     |    |    |
 //     =====================
 //
-// - CBR/UDP flows from n0 to n1, and from n3 to n0
-// - UDP packet size of 210 bytes, with per-packet interval 0.00375 sec.
-//   (i.e., DataRate of 448,000 bps)
-// - DropTail queues 
-// - Tracing of queues and packet receptions to file "csma-one-subnet.tr"
+// - Packet socket flow from n0 to n3
+// - Default 512 byte packets generated by traffic generator
+//   Trace output will be sent to the csma-packet-socket.tr file
 
 #include <iostream>
 #include <fstream>
--- a/examples/csma/csma-ping.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/csma/csma-ping.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -14,19 +14,14 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-// Port of ns-2/tcl/ex/simple.tcl to ns-3
-//
 // Network topology
 //
 //       n0    n1   n2   n3
 //       |     |    |    |
 //     =====================
 //
-// - CBR/UDP flows from n0 to n1, and from n3 to n0
-// - UDP packet size of 210 bytes, with per-packet interval 0.00375 sec.
-//   (i.e., DataRate of 448,000 bps)
-// - DropTail queues 
-// - Tracing of queues and packet receptions to file "csma-one-subnet.tr"
+//  node n0,n1,n3 pings to node n2
+//  node n0 generates protocol 2 (IGMP) to node n3
 
 #include <iostream>
 #include <fstream>
@@ -83,8 +78,6 @@
   ip.SetBase ("192.168.1.0", "255.255.255.0");
   Ipv4InterfaceContainer addresses = ip.Assign (devs);
 
-  // setup global router
-  Ipv4GlobalRoutingHelper::PopulateRoutingTables ();
   NS_LOG_INFO ("Create Source");
   Config::SetDefault ("ns3::Ipv4RawSocketImpl::Protocol", StringValue ("2"));
   InetSocketAddress dst = InetSocketAddress (addresses.GetAddress (3));
--- a/examples/error-model/simple-error-model.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/error-model/simple-error-model.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -13,12 +13,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * ns-2 simple.tcl script (ported from ns-2)
- * Originally authored by Steve McCanne, 12/19/1996
  */
 
-// Port of ns-2/tcl/ex/simple.tcl to ns-3
-//
 // Network topology
 //
 //  n0
--- a/examples/routing/simple-global-routing.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/routing/simple-global-routing.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -13,11 +13,8 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * ns-2 simple.tcl script (ported from ns-2)
- * Originally authored by Steve McCanne, 12/19/1996
  */
 
-// Port of ns-2/tcl/ex/simple.tcl to ns-3
 //
 // Network topology
 //
--- a/examples/routing/simple-point-to-point-olsr.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/routing/simple-point-to-point-olsr.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -13,11 +13,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * ns-2 simple.tcl script (ported from ns-2)
- * Originally authored by Steve McCanne, 12/19/1996
  */
 
-// Port of ns-2/tcl/ex/simple.tcl to ns-3
+//
+// Simple example of OLSR routing over some point-to-point links
 //
 // Network topology
 //
--- a/examples/tunneling/virtual-net-device.cc	Fri Feb 12 11:01:21 2010 -0800
+++ b/examples/tunneling/virtual-net-device.cc	Fri Feb 12 11:25:17 2010 -0800
@@ -14,8 +14,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
  * Based on simple-global-routing.cc
- * ns-2 simple.tcl script (ported from ns-2)
- * Originally authored by Steve McCanne, 12/19/1996
  */
 
 // Network topology