change defaults to be a bit more reasonable

This commit is contained in:
Mathieu Lacage
2007-02-12 23:46:53 +01:00
parent f4617ef46a
commit 604f7b13e7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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"));