bug 486: patches for icc compilation.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "ns3/simulator-module.h"
|
||||
#include "ns3/node-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/csma-module.h"
|
||||
#include "ns3/global-route-manager.h"
|
||||
|
||||
// Network topology (default)
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
#include "ns3/core-module.h"
|
||||
#include "ns3/simulator-module.h"
|
||||
#include "ns3/helper-module.h"
|
||||
#include "ns3/emu-helper.h"
|
||||
|
||||
using namespace ns3;
|
||||
|
||||
|
||||
@@ -178,7 +178,6 @@ class HistoryTrailer : public HistoryTrailerBase
|
||||
{
|
||||
public:
|
||||
HistoryTrailer ();
|
||||
bool IsOk (void) const;
|
||||
|
||||
static TypeId GetTypeId (void);
|
||||
virtual TypeId GetInstanceTypeId (void) const;
|
||||
|
||||
@@ -403,15 +403,15 @@ Ptr<T> CreateObject (const AttributeList &attributes)
|
||||
|
||||
template <typename T>
|
||||
Ptr<T>
|
||||
CreateObject (std::string n1 = "", const AttributeValue & v1 = EmptyAttributeValue (),
|
||||
std::string n2 = "", const AttributeValue & v2 = EmptyAttributeValue (),
|
||||
std::string n3 = "", const AttributeValue & v3 = EmptyAttributeValue (),
|
||||
std::string n4 = "", const AttributeValue & v4 = EmptyAttributeValue (),
|
||||
std::string n5 = "", const AttributeValue & v5 = EmptyAttributeValue (),
|
||||
std::string n6 = "", const AttributeValue & v6 = EmptyAttributeValue (),
|
||||
std::string n7 = "", const AttributeValue & v7 = EmptyAttributeValue (),
|
||||
std::string n8 = "", const AttributeValue & v8 = EmptyAttributeValue (),
|
||||
std::string n9 = "", const AttributeValue & v9 = EmptyAttributeValue ())
|
||||
CreateObject (std::string n1 , const AttributeValue & v1,
|
||||
std::string n2 , const AttributeValue & v2,
|
||||
std::string n3 , const AttributeValue & v3,
|
||||
std::string n4 , const AttributeValue & v4,
|
||||
std::string n5 , const AttributeValue & v5,
|
||||
std::string n6 , const AttributeValue & v6,
|
||||
std::string n7 , const AttributeValue & v7,
|
||||
std::string n8 , const AttributeValue & v8,
|
||||
std::string n9 , const AttributeValue & v9)
|
||||
{
|
||||
AttributeList attributes;
|
||||
if (n1 == "")
|
||||
|
||||
@@ -58,7 +58,7 @@ void
|
||||
PointToPointChannel::Attach(Ptr<PointToPointNetDevice> device)
|
||||
{
|
||||
NS_LOG_FUNCTION (this << device);
|
||||
NS_ASSERT(m_nDevices < N_DEVICES && "Only two devices permitted");
|
||||
NS_ASSERT_MSG(m_nDevices < N_DEVICES, "Only two devices permitted");
|
||||
NS_ASSERT(device != 0);
|
||||
|
||||
m_link[m_nDevices++].m_src = device;
|
||||
|
||||
@@ -400,7 +400,7 @@ RraaWifiManager::GetThresholds (WifiMode mode) const
|
||||
return mode6;
|
||||
} break;
|
||||
}
|
||||
NS_ASSERT("Thresholds for an unknown mode are asked");
|
||||
NS_ASSERT_MSG(false, "Thresholds for an unknown mode are asked");
|
||||
return ThresholdsItem ();
|
||||
}
|
||||
|
||||
|
||||
@@ -1068,7 +1068,7 @@ Ipv4L3Protocol::SetUp (uint32_t i)
|
||||
// If interface address and network mask have been set, add a route
|
||||
// to the network of the interface (like e.g. ifconfig does on a
|
||||
// Linux box)
|
||||
if ((interface->GetAddress ()) != (Ipv4Address ())
|
||||
if (((interface->GetAddress ()) != (Ipv4Address ()))
|
||||
&& (interface->GetNetworkMask ()) != (Ipv4Mask ()))
|
||||
{
|
||||
AddNetworkRouteTo (interface->GetAddress ().CombineMask (interface->GetNetworkMask ()),
|
||||
|
||||
@@ -84,12 +84,12 @@ Queue::Dequeue (void)
|
||||
|
||||
if (packet != 0)
|
||||
{
|
||||
NS_ASSERT (m_nBytes >= packet->GetSize ());
|
||||
NS_ASSERT (m_nPackets > 0);
|
||||
|
||||
m_nBytes -= packet->GetSize ();
|
||||
m_nPackets--;
|
||||
|
||||
NS_ASSERT (m_nBytes >= 0);
|
||||
NS_ASSERT (m_nPackets >= 0);
|
||||
|
||||
NS_LOG_LOGIC("m_traceDequeue (packet)");
|
||||
|
||||
m_traceDequeue (packet);
|
||||
|
||||
@@ -303,7 +303,6 @@ MessageHeader::Mid::Deserialize (Buffer::Iterator start, uint32_t messageSize)
|
||||
Buffer::Iterator i = start;
|
||||
|
||||
this->interfaceAddresses.clear ();
|
||||
NS_ASSERT (messageSize >= 0);
|
||||
NS_ASSERT (messageSize % IPV4_ADDRESS_SIZE == 0);
|
||||
|
||||
int numAddresses = messageSize / IPV4_ADDRESS_SIZE;
|
||||
|
||||
@@ -32,11 +32,11 @@ namespace ns3 {
|
||||
|
||||
namespace TimeStepPrecision {
|
||||
|
||||
static const uint64_t MS_FACTOR = (uint64_t)pow(10,3);
|
||||
static const uint64_t US_FACTOR = (uint64_t)pow(10,6);
|
||||
static const uint64_t NS_FACTOR = (uint64_t)pow(10,9);
|
||||
static const uint64_t PS_FACTOR = (uint64_t)pow(10,12);
|
||||
static const uint64_t FS_FACTOR = (uint64_t)pow(10,15);
|
||||
static const uint64_t MS_FACTOR = (uint64_t)1000;
|
||||
static const uint64_t US_FACTOR = (uint64_t)1000000;
|
||||
static const uint64_t NS_FACTOR = (uint64_t)1000000 * (uint64_t)1000;
|
||||
static const uint64_t PS_FACTOR = (uint64_t)1000000 * (uint64_t)1000000;
|
||||
static const uint64_t FS_FACTOR = (uint64_t)1000000 * (uint64_t)1000000 * (uint64_t)1000;
|
||||
static uint64_t g_tsPrecFactor = NS_FACTOR;
|
||||
|
||||
static GlobalValue g_precisionDefaultValue ("TimeStepPrecision",
|
||||
|
||||
Reference in New Issue
Block a user