remove 512-byte MTU for P2P net device; make default in base class equal to max uint16
authorTom Henderson <tomh@tomh.org>
Sun, 25 Mar 2007 07:20:24 -0700
changeset 370 a6f39edb0754
parent 369 29ea5d1a83c8
child 371 d3cd20dfb425
remove 512-byte MTU for P2P net device; make default in base class equal to max uint16
src/devices/p2p/p2p-net-device.cc
src/node/net-device.cc
--- a/src/devices/p2p/p2p-net-device.cc	Sun Mar 25 07:13:03 2007 -0700
+++ b/src/devices/p2p/p2p-net-device.cc	Sun Mar 25 07:20:24 2007 -0700
@@ -44,7 +44,6 @@
   EnableBroadcast (MacAddress ("ff:ff:ff:ff:ff:ff"));
   EnableMulticast();
   EnablePointToPoint();
-  SetMtu(512); // bytes
 
   m_phy = new PointToPointPhy(node, this);
 }
--- a/src/node/net-device.cc	Sun Mar 25 07:13:03 2007 -0700
+++ b/src/node/net-device.cc	Sun Mar 25 07:20:24 2007 -0700
@@ -35,7 +35,7 @@
   m_name(""), 
   m_ifIndex (0), 
   m_address (addr),
-  m_mtu (0), 
+  m_mtu (0xffff), 
   m_isUp (false), 
   m_isBroadcast (false), 
   m_isMulticast (false),