From fdae8028d63e22adeb2d14eeed244b446bdf79a6 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Mon, 12 Feb 2007 23:23:30 +0100 Subject: [PATCH] make sure the MTU is correcrtly setup and the link is up. --- src/node/p2p-net-device.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/node/p2p-net-device.cc b/src/node/p2p-net-device.cc index e4e379205..845a4ded8 100644 --- a/src/node/p2p-net-device.cc +++ b/src/node/p2p-net-device.cc @@ -28,8 +28,12 @@ namespace ns3 { P2PNetDevice::P2PNetDevice (Node *node, MacAddress const &addr) - : NetDevice (node, addr) -{} + : NetDevice (node, addr), + m_rate (500) +{ + SetMtu (2300); + EnableBroadcast (MacAddress ("ff:ff:ff:ff:ff:ff")); +} P2PNetDevice::~P2PNetDevice() { // Inform channel that we are destroyed @@ -46,6 +50,7 @@ void P2PNetDevice::Connect (P2PChannel *channel) { m_channel = channel; + NotifyLinkUp (); } bool