lte: (fixes #2768) LteUeNetDevice has a null MAC address
This commit is contained in:
@@ -59,7 +59,8 @@ us a note on ns-developers mailing list.</p>
|
||||
</ul>
|
||||
<h2>Changes to existing API:</h2>
|
||||
<ul>
|
||||
<li> Class <b>LrWpanMac</b> now supports extended addressing mode. Both <b>McpsDataRequest</b> and <b>PdDataIndication</b> methods will now use extended addressing if <b>McpsDataRequestParams::m_srcAddrMode</b> or <b>McpsDataRequestParams::m_dstAddrMode</b> are set to <b>EXT_ADDR</b>.
|
||||
<li> Class <b>LrWpanMac</b> now supports extended addressing mode. Both <b>McpsDataRequest</b> and <b>PdDataIndication</b> methods will now use extended addressing if <b>McpsDataRequestParams::m_srcAddrMode</b> or <b>McpsDataRequestParams::m_dstAddrMode</b> are set to <b>EXT_ADDR</b>.</li>
|
||||
<li> Class <b>LteUeNetDevice</b> MAC address is now a 64-bit address and it's set during construction.</li>
|
||||
</ul>
|
||||
<h2>Changes to build system:</h2>
|
||||
<ul>
|
||||
|
||||
@@ -37,6 +37,7 @@ Bugs fixed
|
||||
- Bug 2653 - tcp: Avoid saving smaller TS in case of packet reordering
|
||||
- Bug 2764 - wifi: WifiSpectrumModelId doesn't distinguish 11ax from legacy
|
||||
- Bug 2766 - core: Modify logging for int64x64 to avoid stack overflow
|
||||
- Bug 2768 - lte: LteUeNetDevice has a null MAC address
|
||||
- Bug 2820 - wifi: segmentation fault when Rrpaa wifi manager is used
|
||||
- Bug 2824 - ICMP opcode fr fragment timeout drop is wrong
|
||||
- Bug 2828 - OLSR simple P2P example produces wrong results
|
||||
|
||||
@@ -909,6 +909,9 @@ LteHelper::InstallSingleUeDevice (Ptr<Node> n)
|
||||
dev->SetAttribute ("LteUeRrc", PointerValue (rrc));
|
||||
dev->SetAttribute ("EpcUeNas", PointerValue (nas));
|
||||
dev->SetAttribute ("LteUeComponentCarrierManager", PointerValue (ccmUe));
|
||||
// \todo The UE identifier should be dynamically set by the EPC
|
||||
// when the default PDP context is created. This is a simplification.
|
||||
dev->SetAddress (Mac64Address::Allocate ());
|
||||
|
||||
for (std::map<uint8_t, Ptr<ComponentCarrierUe> >::iterator it = ueCcMap.begin (); it != ueCcMap.end (); ++it)
|
||||
{
|
||||
|
||||
@@ -98,7 +98,7 @@ void
|
||||
LteNetDevice::SetAddress (Address address)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << address);
|
||||
m_address = Mac48Address::ConvertFrom (address);
|
||||
m_address = Mac64Address::ConvertFrom (address);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <ns3/net-device.h>
|
||||
#include <ns3/event-id.h>
|
||||
#include <ns3/mac48-address.h>
|
||||
#include <ns3/mac64-address.h>
|
||||
#include <ns3/traced-callback.h>
|
||||
#include <ns3/nstime.h>
|
||||
#include <ns3/lte-phy.h>
|
||||
@@ -112,7 +112,7 @@ private:
|
||||
bool m_linkUp; ///< link uo
|
||||
mutable uint16_t m_mtu; ///< MTU
|
||||
|
||||
Mac48Address m_address; ///< MAC address
|
||||
Mac64Address m_address; ///< MAC address - only relevant for UEs.
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
|
||||
#include "ns3/lte-net-device.h"
|
||||
#include "ns3/event-id.h"
|
||||
#include "ns3/mac48-address.h"
|
||||
#include "ns3/traced-callback.h"
|
||||
#include "ns3/nstime.h"
|
||||
#include "ns3/lte-phy.h"
|
||||
|
||||
Reference in New Issue
Block a user