fix supidity in mtu stuff
authorCraig Dowell <craigdo@ee.washington.edu>
Wed, 23 Jul 2008 18:29:13 -0700
changeset 3477 80aae4bb8c39
parent 3476 b834a9204124
child 3481 df6f07358b24
fix supidity in mtu stuff
src/devices/csma/csma-net-device.cc
--- a/src/devices/csma/csma-net-device.cc	Wed Jul 23 17:09:12 2008 -0700
+++ b/src/devices/csma/csma-net-device.cc	Wed Jul 23 18:29:13 2008 -0700
@@ -240,7 +240,7 @@
 // This corresponds to the length interpretation of the lengthType field,
 // but with an LLC/SNAP header added to the payload.
 //      
-        lengthType = llc.GetSerializedSize () + p->GetSize ();
+        lengthType = p->GetSize ();
         NS_ASSERT_MSG (lengthType <= m_maxPayloadLength,
           "CsmaNetDevice::AddHeader(): 802.3 Length/Type field with LLC/SNAP: "
           "length interpretation must not exceed device max payload length");