1.1 --- a/scratch/first.cc Fri Jul 24 22:44:44 2009 +0600
1.2 +++ b/scratch/first.cc Thu Aug 06 01:55:49 2009 +0600
1.3 @@ -32,8 +32,6 @@
1.4 NodeContainer nodes;
1.5 nodes.Create (2);
1.6
1.7 - Packet::EnablePrinting();
1.8 -
1.9 PointToPointHelper pointToPoint;
1.10 pointToPoint.SetDeviceAttribute ("DataRate", StringValue ("5Mbps"));
1.11 pointToPoint.SetChannelAttribute ("Delay", StringValue ("2ms"));
1.12 @@ -56,15 +54,15 @@
1.13 serverApps.Stop (Seconds (10.0));
1.14
1.15 UdpEchoClientHelper echoClient (interfaces.GetAddress (1), 9);
1.16 - echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
1.17 + echoClient.SetAttribute ("MaxPackets", UintegerValue (2));
1.18 echoClient.SetAttribute ("Interval", TimeValue (Seconds (1.)));
1.19 echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
1.20
1.21 ApplicationContainer clientApps = echoClient.Install (nodes.Get (0));
1.22 clientApps.Start (Seconds (2.0));
1.23 clientApps.Stop (Seconds (10.0));
1.24 -
1.25 - PointToPointHelper::EnablePcapAll ("first");
1.26 +
1.27 + PointToPointHelper::EnablePcapAll ("netfilter");
1.28
1.29 Simulator::Run ();
1.30 Simulator::Destroy ();