View | Details | Raw Unified | Return to bug 486
Collapse All | Expand All

(-)a/examples/csma-star.cc (+1 lines)
 Lines 19-24    Link Here 
19
#include "ns3/simulator-module.h"
19
#include "ns3/simulator-module.h"
20
#include "ns3/node-module.h"
20
#include "ns3/node-module.h"
21
#include "ns3/helper-module.h"
21
#include "ns3/helper-module.h"
22
#include "ns3/csma-module.h"
22
#include "ns3/global-route-manager.h"
23
#include "ns3/global-route-manager.h"
23
24
24
// Network topology (default)
25
// Network topology (default)
(-)a/examples/emu-udp-echo.cc (+1 lines)
 Lines 65-70    Link Here 
65
#include "ns3/core-module.h"
65
#include "ns3/core-module.h"
66
#include "ns3/simulator-module.h"
66
#include "ns3/simulator-module.h"
67
#include "ns3/helper-module.h"
67
#include "ns3/helper-module.h"
68
#include "ns3/emu-helper.h"
68
69
69
using namespace ns3;
70
using namespace ns3;
70
71
(-)a/src/common/packet-metadata-test.cc (-1 lines)
 Lines 178-184   class HistoryTrailer : public HistoryTra Link Here 
178
{
178
{
179
public:
179
public:
180
  HistoryTrailer ();
180
  HistoryTrailer ();
181
  bool IsOk (void) const;
182
181
183
  static TypeId GetTypeId (void);
182
  static TypeId GetTypeId (void);
184
  virtual TypeId GetInstanceTypeId (void) const;
183
  virtual TypeId GetInstanceTypeId (void) const;
(-)a/src/core/object.h (-9 / +9 lines)
 Lines 403-417   Ptr<T> CreateObject (const AttributeList Link Here 
403
403
404
template <typename T>
404
template <typename T>
405
Ptr<T> 
405
Ptr<T> 
406
CreateObject (std::string n1 = "", const AttributeValue & v1 = EmptyAttributeValue (),
406
CreateObject (std::string n1 , const AttributeValue & v1,
407
              std::string n2 = "", const AttributeValue & v2 = EmptyAttributeValue (),
407
              std::string n2 , const AttributeValue & v2,
408
              std::string n3 = "", const AttributeValue & v3 = EmptyAttributeValue (),
408
              std::string n3 , const AttributeValue & v3,
409
              std::string n4 = "", const AttributeValue & v4 = EmptyAttributeValue (),
409
              std::string n4 , const AttributeValue & v4,
410
              std::string n5 = "", const AttributeValue & v5 = EmptyAttributeValue (),
410
              std::string n5 , const AttributeValue & v5,
411
              std::string n6 = "", const AttributeValue & v6 = EmptyAttributeValue (),
411
              std::string n6 , const AttributeValue & v6,
412
              std::string n7 = "", const AttributeValue & v7 = EmptyAttributeValue (),
412
              std::string n7 , const AttributeValue & v7,
413
              std::string n8 = "", const AttributeValue & v8 = EmptyAttributeValue (),
413
              std::string n8 , const AttributeValue & v8,
414
              std::string n9 = "", const AttributeValue & v9 = EmptyAttributeValue ())
414
              std::string n9 , const AttributeValue & v9)
415
{
415
{
416
  AttributeList attributes;
416
  AttributeList attributes;
417
  if (n1 == "")
417
  if (n1 == "")
(-)a/src/devices/point-to-point/point-to-point-channel.cc (-1 / +1 lines)
 Lines 58-64   void Link Here 
58
PointToPointChannel::Attach(Ptr<PointToPointNetDevice> device)
58
PointToPointChannel::Attach(Ptr<PointToPointNetDevice> device)
59
{
59
{
60
  NS_LOG_FUNCTION (this << device);
60
  NS_LOG_FUNCTION (this << device);
61
  NS_ASSERT(m_nDevices < N_DEVICES && "Only two devices permitted");
61
  NS_ASSERT_MSG(m_nDevices < N_DEVICES, "Only two devices permitted");
62
  NS_ASSERT(device != 0);
62
  NS_ASSERT(device != 0);
63
63
64
  m_link[m_nDevices++].m_src = device;
64
  m_link[m_nDevices++].m_src = device;
(-)a/src/devices/wifi/rraa-wifi-manager.cc (-1 / +1 lines)
 Lines 400-406   RraaWifiManager::GetThresholds (WifiMode Link Here 
400
    return mode6;
400
    return mode6;
401
  } break;
401
  } break;
402
  }
402
  }
403
  NS_ASSERT("Thresholds for an unknown mode are asked");
403
  NS_ASSERT_MSG(false, "Thresholds for an unknown mode are asked");
404
  return ThresholdsItem ();
404
  return ThresholdsItem ();
405
}
405
}
406
406
(-)a/src/internet-stack/ipv4-l3-protocol.cc (-2 / +2 lines)
 Lines 1068-1075   Ipv4L3Protocol::SetUp (uint32_t i) Link Here 
1068
  // If interface address and network mask have been set, add a route
1068
  // If interface address and network mask have been set, add a route
1069
  // to the network of the interface (like e.g. ifconfig does on a
1069
  // to the network of the interface (like e.g. ifconfig does on a
1070
  // Linux box)
1070
  // Linux box)
1071
  if ((interface->GetAddress ()) != (Ipv4Address ())
1071
  if ( ! interface->GetAddress ().IsEqual (Ipv4Address ())
1072
      && (interface->GetNetworkMask ()) != (Ipv4Mask ()))
1072
       && (interface->GetNetworkMask ()) != (Ipv4Mask ()))
1073
    {
1073
    {
1074
      AddNetworkRouteTo (interface->GetAddress ().CombineMask (interface->GetNetworkMask ()),
1074
      AddNetworkRouteTo (interface->GetAddress ().CombineMask (interface->GetNetworkMask ()),
1075
                         interface->GetNetworkMask (), i);
1075
                         interface->GetNetworkMask (), i);
(-)a/src/node/queue.cc (-3 / +3 lines)
 Lines 84-95   Queue::Dequeue (void) Link Here 
84
84
85
  if (packet != 0)
85
  if (packet != 0)
86
    {
86
    {
87
      NS_ASSERT (m_nBytes >= packet->GetSize ());
88
      NS_ASSERT (m_nPackets > 0);
89
87
      m_nBytes -= packet->GetSize ();
90
      m_nBytes -= packet->GetSize ();
88
      m_nPackets--;
91
      m_nPackets--;
89
92
90
      NS_ASSERT (m_nBytes >= 0);
91
      NS_ASSERT (m_nPackets >= 0);
92
93
      NS_LOG_LOGIC("m_traceDequeue (packet)");
93
      NS_LOG_LOGIC("m_traceDequeue (packet)");
94
94
95
      m_traceDequeue (packet);
95
      m_traceDequeue (packet);
(-)a/src/routing/olsr/olsr-header.cc (-1 lines)
 Lines 303-309   MessageHeader::Mid::Deserialize (Buffer: Link Here 
303
  Buffer::Iterator i = start;
303
  Buffer::Iterator i = start;
304
304
305
  this->interfaceAddresses.clear ();
305
  this->interfaceAddresses.clear ();
306
  NS_ASSERT (messageSize >= 0);
307
  NS_ASSERT (messageSize % IPV4_ADDRESS_SIZE == 0);
306
  NS_ASSERT (messageSize % IPV4_ADDRESS_SIZE == 0);
308
  
307
  
309
  int numAddresses = messageSize / IPV4_ADDRESS_SIZE;
308
  int numAddresses = messageSize / IPV4_ADDRESS_SIZE;
(-)a/src/simulator/time.cc (-5 / +5 lines)
 Lines 32-42   namespace ns3 { Link Here 
32
32
33
namespace TimeStepPrecision {
33
namespace TimeStepPrecision {
34
34
35
static const uint64_t MS_FACTOR = (uint64_t)pow(10,3);
35
static const uint64_t MS_FACTOR = (uint64_t)1000;
36
static const uint64_t US_FACTOR = (uint64_t)pow(10,6);
36
static const uint64_t US_FACTOR = (uint64_t)1000000;
37
static const uint64_t NS_FACTOR = (uint64_t)pow(10,9);
37
static const uint64_t NS_FACTOR = (uint64_t)1000000 * (uint64_t)1000;
38
static const uint64_t PS_FACTOR = (uint64_t)pow(10,12);
38
static const uint64_t PS_FACTOR = (uint64_t)1000000 * (uint64_t)1000000;
39
static const uint64_t FS_FACTOR = (uint64_t)pow(10,15);
39
static const uint64_t FS_FACTOR = (uint64_t)1000000 * (uint64_t)1000000 * (uint64_t)1000;
40
static uint64_t g_tsPrecFactor = NS_FACTOR;
40
static uint64_t g_tsPrecFactor = NS_FACTOR;
41
41
42
static GlobalValue g_precisionDefaultValue ("TimeStepPrecision", 
42
static GlobalValue g_precisionDefaultValue ("TimeStepPrecision", 

Return to bug 486