changed default MTU of LteNetDevice

This commit is contained in:
Nicola Baldo
2011-12-19 17:00:04 +01:00
parent 4ed8385514
commit 57be872ea3
2 changed files with 2 additions and 9 deletions

View File

@@ -55,10 +55,10 @@ TypeId LteNetDevice::GetTypeId (void)
.SetParent<NetDevice> ()
.AddAttribute ("Mtu", "The MAC-level Maximum Transmission Unit",
UintegerValue (1500),
UintegerValue (30000),
MakeUintegerAccessor (&LteNetDevice::SetMtu,
&LteNetDevice::GetMtu),
MakeUintegerChecker<uint16_t> (0,MAX_MSDU_SIZE))
MakeUintegerChecker<uint16_t> ())
;
return tid;
}
@@ -155,10 +155,6 @@ bool
LteNetDevice::SetMtu (const uint16_t mtu)
{
NS_LOG_FUNCTION (this << mtu);
if (mtu > MAX_MSDU_SIZE)
{
return false;
}
m_mtu = mtu;
return true;
}

View File

@@ -95,9 +95,6 @@ private:
LteNetDevice (const LteNetDevice &);
LteNetDevice & operator= (const LteNetDevice &);
static const uint16_t MAX_MSDU_SIZE = 1500;
Ptr<Node> m_node;
TracedCallback<> m_linkChangeCallbacks;