src/node/p2p-net-device.cc
changeset 257 60d6d9bb4f9a
parent 247 fb7375bb43d7
child 262 7e9dc6fab2e0
--- a/src/node/p2p-net-device.cc	Mon Feb 12 23:22:48 2007 +0100
+++ b/src/node/p2p-net-device.cc	Mon Feb 12 23:23:30 2007 +0100
@@ -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 @@
 P2PNetDevice::Connect (P2PChannel *channel)
 {
   m_channel = channel;
+  NotifyLinkUp ();
 }
 
 bool