From a9fe0f2d23e137fa1c4b9d703dea47ffcbea0251 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 27 Jul 2007 13:07:36 -0700 Subject: [PATCH] rename example from p2p to point-to-point --- .../{simple-p2p.cc => simple-point-to-point.cc} | 14 ++++++++------ examples/wscript | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) rename examples/{simple-p2p.cc => simple-point-to-point.cc} (93%) diff --git a/examples/simple-p2p.cc b/examples/simple-point-to-point.cc similarity index 93% rename from examples/simple-p2p.cc rename to examples/simple-point-to-point.cc index 412edcaa1..cf3091a7b 100644 --- a/examples/simple-p2p.cc +++ b/examples/simple-point-to-point.cc @@ -29,13 +29,14 @@ // / 5 Mb/s, 2ms // n1 // -// - all links are p2p links with indicated one-way BW/delay +// - all links are point-to-point links with indicated one-way BW/delay // - CBR/UDP flows from n0 to n3, and from n3 to n1 // - FTP/TCP flow from n0 to n3, starting at time 1.2 to time 1.35 sec. // - 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 "simple-p2p.tr" +// - Tracing of queues and packet receptions to file +// "simple-point-to-point.tr" #include #include @@ -173,16 +174,17 @@ int main (int argc, char *argv[]) ipv4->SetDefaultRoute (Ipv4Address ("10.1.3.1"), 1); // Configure tracing of all enqueue, dequeue, and NetDevice receive events - // Trace output will be sent to the simple-p2p.tr file - AsciiTrace asciitrace ("simple-p2p.tr"); + // Trace output will be sent to the simple-point-to-point.tr file + AsciiTrace asciitrace ("simple-point-to-point.tr"); asciitrace.TraceAllQueues (); asciitrace.TraceAllNetDeviceRx (); // Also configure some tcpdump traces; each interface will be traced - // The output files will be named simple-p2p.pcap-- + // The output files will be named + // simple-point-to-point.pcap-- // and can be read by the "tcpdump -r" command (use "-tt" option to // display timestamps correctly) - PcapTrace pcaptrace ("simple-p2p.pcap"); + PcapTrace pcaptrace ("simple-point-to-point.pcap"); pcaptrace.TraceAllIp (); Simulator::Run (); diff --git a/examples/wscript b/examples/wscript index 55ece2369..e1b960ddc 100644 --- a/examples/wscript +++ b/examples/wscript @@ -9,6 +9,6 @@ def build(bld): obj.source = source return obj - obj = create_ns_prog('simple-p2p', 'simple-p2p.cc', deps=['point-to-point', 'internet-node']) + obj = create_ns_prog('simple-point-to-point', 'simple-point-to-point.cc', deps=['point-to-point', 'internet-node']) obj = create_ns_prog('csma-cd-one-subnet', 'csma-cd-one-subnet.cc', deps=['csma-cd', 'internet-node'])