From 604f7b13e75235d0108b6922ee034248c5c297d1 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 12 Feb 2007 23:46:53 +0100 Subject: [PATCH] change defaults to be a bit more reasonable --- samples/main-simple-p2p.cc | 2 +- src/node/p2p-net-device.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/main-simple-p2p.cc b/samples/main-simple-p2p.cc index 3f6f5f59b..5a58af542 100644 --- a/samples/main-simple-p2p.cc +++ b/samples/main-simple-p2p.cc @@ -59,7 +59,7 @@ PrintRoutingTable (InternetNode *a, std::string name) static void AddP2PLink (InternetNode *a, InternetNode *b) { - P2PChannel * channel = new P2PChannel (MilliSeconds (20), 1000); + P2PChannel * channel = new P2PChannel (MilliSeconds (20), 10000); P2PNetDevice *devA = channel->CreateNetDevice (a, MacAddress ("00:00:00:00:00:01")); P2PNetDevice *devB = channel->CreateNetDevice (b, MacAddress ("00:00:00:00:00:02")); Simulator::ScheduleDestroy (&DestroyP2PNetDevice, devA); diff --git a/src/node/p2p-net-device.cc b/src/node/p2p-net-device.cc index 845a4ded8..36bfb343d 100644 --- a/src/node/p2p-net-device.cc +++ b/src/node/p2p-net-device.cc @@ -29,7 +29,7 @@ namespace ns3 { P2PNetDevice::P2PNetDevice (Node *node, MacAddress const &addr) : NetDevice (node, addr), - m_rate (500) + m_rate (1000000) { SetMtu (2300); EnableBroadcast (MacAddress ("ff:ff:ff:ff:ff:ff"));