diff --git a/examples/csma/csma-packet-socket.cc b/examples/csma/csma-packet-socket.cc index fa24b3d0b..b56ff2463 100644 --- a/examples/csma/csma-packet-socket.cc +++ b/examples/csma/csma-packet-socket.cc @@ -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 #include diff --git a/examples/csma/csma-ping.cc b/examples/csma/csma-ping.cc index d373fc106..5419b2458 100644 --- a/examples/csma/csma-ping.cc +++ b/examples/csma/csma-ping.cc @@ -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 #include @@ -83,8 +78,6 @@ main (int argc, char *argv[]) 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)); diff --git a/examples/error-model/simple-error-model.cc b/examples/error-model/simple-error-model.cc index 83c950983..3812ad9dd 100644 --- a/examples/error-model/simple-error-model.cc +++ b/examples/error-model/simple-error-model.cc @@ -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 diff --git a/examples/routing/simple-global-routing.cc b/examples/routing/simple-global-routing.cc index a75fa6111..4aed4c8a0 100644 --- a/examples/routing/simple-global-routing.cc +++ b/examples/routing/simple-global-routing.cc @@ -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 // diff --git a/examples/routing/simple-point-to-point-olsr.cc b/examples/routing/simple-point-to-point-olsr.cc index f38a913b7..fdad83357 100644 --- a/examples/routing/simple-point-to-point-olsr.cc +++ b/examples/routing/simple-point-to-point-olsr.cc @@ -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 // diff --git a/examples/tunneling/virtual-net-device.cc b/examples/tunneling/virtual-net-device.cc index 96a60bc20..84ec8cd68 100644 --- a/examples/tunneling/virtual-net-device.cc +++ b/examples/tunneling/virtual-net-device.cc @@ -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