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

(-)a/samples/main-channel.cc (-4 / +4 lines)
 Lines 73-79   FakeInternetNode::UpperDoSendUp (Packet Link Here 
73
FakeInternetNode::UpperDoSendUp (Packet &p)
73
FakeInternetNode::UpperDoSendUp (Packet &p)
74
{
74
{
75
  NS_LOG_FUNCTION;
75
  NS_LOG_FUNCTION;
76
  NS_LOG_PARAM ("(" << &p << ")");
76
  NS_LOG_PARAMS (this << &p);
77
  NS_LOG_INFO ("**** Receive inbound packet");
77
  NS_LOG_INFO ("**** Receive inbound packet");
78
  m_dtqInbound.Enqueue(p);
78
  m_dtqInbound.Enqueue(p);
79
  return m_dtqInbound.Dequeue(p);
79
  return m_dtqInbound.Dequeue(p);
 Lines 83-89   FakeInternetNode::UpperDoPull (Packet &p Link Here 
83
FakeInternetNode::UpperDoPull (Packet &p)
83
FakeInternetNode::UpperDoPull (Packet &p)
84
{
84
{
85
  NS_LOG_FUNCTION;
85
  NS_LOG_FUNCTION;
86
  NS_LOG_PARAM ("(" << &p << ")");
86
  NS_LOG_PARAMS (this << &p);
87
87
88
  return m_dtqOutbound.Dequeue(p);
88
  return m_dtqOutbound.Dequeue(p);
89
}
89
}
 Lines 142-148   FakePhysicalLayer::UpperDoSendUp (Packet Link Here 
142
FakePhysicalLayer::UpperDoSendUp (Packet &p)
142
FakePhysicalLayer::UpperDoSendUp (Packet &p)
143
{
143
{
144
  NS_LOG_FUNCTION;
144
  NS_LOG_FUNCTION;
145
  NS_LOG_PARAM ("(" << &p << ")");
145
  NS_LOG_PARAMS (this << &p);
146
146
147
  NS_ASSERT(m_upperPartner);
147
  NS_ASSERT(m_upperPartner);
148
  return m_upperPartner->UpperSendUp(p);
148
  return m_upperPartner->UpperSendUp(p);
 Lines 152-158   FakePhysicalLayer::UpperDoPull (Packet & Link Here 
152
FakePhysicalLayer::UpperDoPull (Packet &p)
152
FakePhysicalLayer::UpperDoPull (Packet &p)
153
{
153
{
154
  NS_LOG_FUNCTION;
154
  NS_LOG_FUNCTION;
155
  NS_LOG_PARAM ("(" << &p << ")");
155
  NS_LOG_PARAMS (this << &p);
156
156
157
  return m_dtqOutbound.Dequeue(p);
157
  return m_dtqOutbound.Dequeue(p);
158
}
158
}
(-)a/src/applications/onoff/onoff-application.cc (-3 / +3 lines)
 Lines 109-115   OnOffApplication::SetMaxBytes(uint32_t m Link Here 
109
OnOffApplication::SetMaxBytes(uint32_t maxBytes)
109
OnOffApplication::SetMaxBytes(uint32_t maxBytes)
110
{
110
{
111
  NS_LOG_FUNCTION;
111
  NS_LOG_FUNCTION;
112
  NS_LOG_PARAM ("(" << maxBytes << ")");
112
  NS_LOG_PARAMS (this << maxBytes);
113
  m_maxBytes = maxBytes;
113
  m_maxBytes = maxBytes;
114
}
114
}
115
115
 Lines 117-123   OnOffApplication::SetDefaultRate (const Link Here 
117
OnOffApplication::SetDefaultRate (const DataRate &rate)
117
OnOffApplication::SetDefaultRate (const DataRate &rate)
118
{
118
{
119
  NS_LOG_FUNCTION;
119
  NS_LOG_FUNCTION;
120
  NS_LOG_PARAM ("(" << &rate << ")");
120
  NS_LOG_PARAMS (&rate);
121
  g_defaultRate.SetValue (rate);
121
  g_defaultRate.SetValue (rate);
122
}
122
}
123
123
 Lines 125-131   OnOffApplication::SetDefaultSize (uint32 Link Here 
125
OnOffApplication::SetDefaultSize (uint32_t size)
125
OnOffApplication::SetDefaultSize (uint32_t size)
126
{
126
{
127
  NS_LOG_FUNCTION;
127
  NS_LOG_FUNCTION;
128
  NS_LOG_PARAM ("(" << size << ")");
128
  NS_LOG_PARAMS (size);
129
  g_defaultSize.SetValue (size);
129
  g_defaultSize.SetValue (size);
130
}
130
}
131
131
(-)a/src/applications/udp-echo/udp-echo-client.cc (-7 / +5 lines)
 Lines 40-48   UdpEchoClient::UdpEchoClient ( Link Here 
40
  Application(n)
40
  Application(n)
41
{
41
{
42
  NS_LOG_FUNCTION;
42
  NS_LOG_FUNCTION;
43
  NS_LOG_PARAM ("(" << n << ", " << serverAddress <<
43
  NS_LOG_PARAMS (this << n << serverAddress << serverPort << count
44
    ", " << serverPort << ", " << count << ", " << interval <<
44
                 << interval << size);
45
    ", " << size << ")");
46
45
47
  Construct (n, serverAddress, serverPort, count, interval, size);
46
  Construct (n, serverAddress, serverPort, count, interval, size);
48
}
47
}
 Lines 62-70   UdpEchoClient::Construct ( Link Here 
62
  uint32_t size)
61
  uint32_t size)
63
{
62
{
64
  NS_LOG_FUNCTION;
63
  NS_LOG_FUNCTION;
65
  NS_LOG_PARAM ("(" << n << ", " << serverAddress <<
64
  NS_LOG_PARAMS (this << n << serverAddress << serverPort
66
    ", " << serverPort << ", " << count << ", " << interval <<
65
                 << count << interval << size);
67
    ", " << size << ")");
68
66
69
  m_node = n;
67
  m_node = n;
70
  m_serverAddress = serverAddress;
68
  m_serverAddress = serverAddress;
 Lines 154-160   UdpEchoClient::Receive( Link Here 
154
  const Address &from) 
152
  const Address &from) 
155
{
153
{
156
  NS_LOG_FUNCTION;
154
  NS_LOG_FUNCTION;
157
  NS_LOG_PARAM ("(" << socket << ", " << packet << ", " << from << ")");
155
  NS_LOG_PARAMS (this << socket << packet << from);
158
156
159
  if (InetSocketAddress::IsMatchingType (from))
157
  if (InetSocketAddress::IsMatchingType (from))
160
    {
158
    {
(-)a/src/applications/udp-echo/udp-echo-server.cc (-3 / +3 lines)
 Lines 38-44   UdpEchoServer::UdpEchoServer ( Link Here 
38
  Application(n)
38
  Application(n)
39
{
39
{
40
  NS_LOG_FUNCTION;
40
  NS_LOG_FUNCTION;
41
  NS_LOG_PARAM ("(" << n << ", " << port << ")");
41
  NS_LOG_PARAMS (this << n << port);
42
42
43
  Construct (n, port);
43
  Construct (n, port);
44
}
44
}
 Lines 54-60   UdpEchoServer::Construct ( Link Here 
54
  uint16_t port)
54
  uint16_t port)
55
{
55
{
56
  NS_LOG_FUNCTION;
56
  NS_LOG_FUNCTION;
57
  NS_LOG_PARAM ("(" << n << ", " << port << ")");
57
  NS_LOG_PARAMS (this << n << port);
58
58
59
  m_node = n;
59
  m_node = n;
60
  m_port = port;
60
  m_port = port;
 Lines 107-113   UdpEchoServer::Receive( Link Here 
107
  const Address &from) 
107
  const Address &from) 
108
{
108
{
109
  NS_LOG_FUNCTION;
109
  NS_LOG_FUNCTION;
110
  NS_LOG_PARAM ("(" << socket << ", " << packet << ", " << from << ")");
110
  NS_LOG_PARAMS (this << socket << packet << from);
111
111
112
  if (InetSocketAddress::IsMatchingType (from))
112
  if (InetSocketAddress::IsMatchingType (from))
113
    {
113
    {
(-)a/src/core/log.cc (+5 lines)
 Lines 326-331   LogComponentPrintList (void) Link Here 
326
    }
326
    }
327
}
327
}
328
328
329
330
ParameterLogger g_parameterLogger;
331
EndParameterListStruct EndParameterList;
332
333
329
} // namespace ns3
334
} // namespace ns3
330
335
331
#endif // NS3_LOG_ENABLE
336
#endif // NS3_LOG_ENABLE
(-)a/src/core/log.h (-2 / +60 lines)
 Lines 87-92    Link Here 
87
87
88
#ifdef NS3_LOG_ENABLE
88
#ifdef NS3_LOG_ENABLE
89
89
90
91
namespace ns3 {
92
93
struct EndParameterListStruct {};
94
extern EndParameterListStruct EndParameterList;
95
96
class ParameterLogger : public std::ostream
97
{
98
  int m_itemNumber;
99
public:
100
  ParameterLogger ()
101
    : m_itemNumber (0)
102
  {}
103
104
  template<typename T>
105
  ParameterLogger& operator<< (T param)
106
  {
107
    switch (m_itemNumber)
108
      {
109
      case 0: // first item is actually the function name
110
        std::clog << param << " (";
111
        break;
112
      case 1:
113
        std::clog << param;
114
        break;
115
      default: // parameter following a previous parameter
116
        std::clog << ", " << param;
117
        break;
118
      }
119
    m_itemNumber++;
120
    return *this;
121
  }
122
123
  ParameterLogger&
124
  operator << (EndParameterListStruct dummy)
125
  {
126
    std::clog << ")" << std::endl;
127
    m_itemNumber = 0;
128
    return *this;
129
  }
130
};
131
132
133
extern ParameterLogger g_parameterLogger;
134
135
}
136
137
90
#define NS_LOG(level, msg)                                      \
138
#define NS_LOG(level, msg)                                      \
91
  do                                                            \
139
  do                                                            \
92
    {                                                           \
140
    {                                                           \
 Lines 123-130    Link Here 
123
#define NS_LOG_FUNCTION \
171
#define NS_LOG_FUNCTION \
124
  NS_LOG_F(ns3::LOG_FUNCTION)
172
  NS_LOG_F(ns3::LOG_FUNCTION)
125
173
126
#define NS_LOG_PARAM(msg) \
174
#define NS_LOG_PARAMS(parameters)                       \
127
  NS_LOG(ns3::LOG_PARAM, msg)
175
  do                                                    \
176
    {                                                   \
177
      if (g_log.IsEnabled (ns3::LOG_PARAM))             \
178
        {                                               \
179
          g_parameterLogger << __PRETTY_FUNCTION__      \
180
                            << parameters               \
181
                            << EndParameterList;        \
182
        }                                               \
183
    }                                                   \
184
  while (false)
185
128
186
129
#define NS_LOG_LOGIC(msg) \
187
#define NS_LOG_LOGIC(msg) \
130
  NS_LOG(ns3::LOG_LOGIC, msg)
188
  NS_LOG(ns3::LOG_LOGIC, msg)
(-)a/src/devices/csma/csma-channel.cc (-12 / +10 lines)
 Lines 68-75   CsmaChannel::CsmaChannel( Link Here 
68
  m_delay (delay)
68
  m_delay (delay)
69
{
69
{
70
  NS_LOG_FUNCTION;
70
  NS_LOG_FUNCTION;
71
  NS_LOG_PARAM ("(" << Channel::GetName() << ", " << bps.GetBitRate() << 
71
  NS_LOG_PARAMS (this << Channel::GetName() << bps.GetBitRate() << delay);
72
    ", " << delay << ")");
73
  Init();
72
  Init();
74
}
73
}
75
74
 Lines 83-90   CsmaChannel::CsmaChannel( Link Here 
83
  m_delay (delay)
82
  m_delay (delay)
84
{
83
{
85
  NS_LOG_FUNCTION;
84
  NS_LOG_FUNCTION;
86
  NS_LOG_PARAM ("(" << name << ", " << bps.GetBitRate() << ", " << delay << 
85
  NS_LOG_PARAMS (this << name << bps.GetBitRate() << delay);
87
    ")");
88
  Init();
86
  Init();
89
}
87
}
90
88
 Lines 97-103   CsmaChannel::Attach(Ptr<CsmaNetDevice> d Link Here 
97
CsmaChannel::Attach(Ptr<CsmaNetDevice> device)
95
CsmaChannel::Attach(Ptr<CsmaNetDevice> device)
98
{
96
{
99
  NS_LOG_FUNCTION;
97
  NS_LOG_FUNCTION;
100
  NS_LOG_PARAM ("(" << device << ")");
98
  NS_LOG_PARAMS (this << device);
101
  NS_ASSERT(device != 0);
99
  NS_ASSERT(device != 0);
102
100
103
  CsmaDeviceRec rec(device);
101
  CsmaDeviceRec rec(device);
 Lines 110-116   CsmaChannel::Reattach(Ptr<CsmaNetDevice> Link Here 
110
CsmaChannel::Reattach(Ptr<CsmaNetDevice> device)
108
CsmaChannel::Reattach(Ptr<CsmaNetDevice> device)
111
{
109
{
112
  NS_LOG_FUNCTION;
110
  NS_LOG_FUNCTION;
113
  NS_LOG_PARAM ("(" << device << ")");
111
  NS_LOG_PARAMS (this << device);
114
  NS_ASSERT(device != 0);
112
  NS_ASSERT(device != 0);
115
113
116
  std::vector<CsmaDeviceRec>::iterator it;
114
  std::vector<CsmaDeviceRec>::iterator it;
 Lines 136-142   CsmaChannel::Reattach(uint32_t deviceId) Link Here 
136
CsmaChannel::Reattach(uint32_t deviceId)
134
CsmaChannel::Reattach(uint32_t deviceId)
137
{
135
{
138
  NS_LOG_FUNCTION;
136
  NS_LOG_FUNCTION;
139
  NS_LOG_PARAM ("(" << deviceId << ")");
137
  NS_LOG_PARAMS (this << deviceId);
140
138
141
  if (deviceId < m_deviceList.size())
139
  if (deviceId < m_deviceList.size())
142
    {
140
    {
 Lines 158-164   CsmaChannel::Detach(uint32_t deviceId) Link Here 
158
CsmaChannel::Detach(uint32_t deviceId)
156
CsmaChannel::Detach(uint32_t deviceId)
159
{
157
{
160
  NS_LOG_FUNCTION;
158
  NS_LOG_FUNCTION;
161
  NS_LOG_PARAM ("(" << deviceId << ")");
159
  NS_LOG_PARAMS (this << deviceId);
162
160
163
  if (deviceId < m_deviceList.size())
161
  if (deviceId < m_deviceList.size())
164
    {
162
    {
 Lines 189-195   CsmaChannel::Detach(Ptr<CsmaNetDevice> d Link Here 
189
CsmaChannel::Detach(Ptr<CsmaNetDevice> device)
187
CsmaChannel::Detach(Ptr<CsmaNetDevice> device)
190
{
188
{
191
  NS_LOG_FUNCTION;
189
  NS_LOG_FUNCTION;
192
  NS_LOG_PARAM ("(" << device << ")");
190
  NS_LOG_PARAMS (this << device);
193
  NS_ASSERT(device != 0);
191
  NS_ASSERT(device != 0);
194
192
195
  std::vector<CsmaDeviceRec>::iterator it;
193
  std::vector<CsmaDeviceRec>::iterator it;
 Lines 208-214   CsmaChannel::TransmitStart(Packet& p, ui Link Here 
208
CsmaChannel::TransmitStart(Packet& p, uint32_t srcId)
206
CsmaChannel::TransmitStart(Packet& p, uint32_t srcId)
209
{
207
{
210
  NS_LOG_FUNCTION;
208
  NS_LOG_FUNCTION;
211
  NS_LOG_PARAM ("(" << &p << ", " << srcId << ")");
209
  NS_LOG_PARAMS (this << &p << srcId);
212
  NS_LOG_INFO ("UID is " << p.GetUid () << ")");
210
  NS_LOG_INFO ("UID is " << p.GetUid () << ")");
213
211
214
  if (m_state != IDLE)
212
  if (m_state != IDLE)
 Lines 240-246   CsmaChannel::TransmitEnd() Link Here 
240
CsmaChannel::TransmitEnd()
238
CsmaChannel::TransmitEnd()
241
{
239
{
242
  NS_LOG_FUNCTION;
240
  NS_LOG_FUNCTION;
243
  NS_LOG_PARAM ("(" << &m_currentPkt << ", " << m_currentSrc << ")");
241
  NS_LOG_PARAMS (this << &m_currentPkt << m_currentSrc);
244
  NS_LOG_INFO ("UID is " << m_currentPkt.GetUid () << ")");
242
  NS_LOG_INFO ("UID is " << m_currentPkt.GetUid () << ")");
245
243
246
  NS_ASSERT(m_state == TRANSMITTING);
244
  NS_ASSERT(m_state == TRANSMITTING);
 Lines 266-272   CsmaChannel::PropagationCompleteEvent() Link Here 
266
CsmaChannel::PropagationCompleteEvent()
264
CsmaChannel::PropagationCompleteEvent()
267
{
265
{
268
  NS_LOG_FUNCTION;
266
  NS_LOG_FUNCTION;
269
  NS_LOG_PARAM ("(" << &m_currentPkt << ")");
267
  NS_LOG_PARAMS (this << &m_currentPkt);
270
  NS_LOG_INFO ("UID is " << m_currentPkt.GetUid () << ")");
268
  NS_LOG_INFO ("UID is " << m_currentPkt.GetUid () << ")");
271
269
272
  NS_ASSERT(m_state == PROPAGATING);
270
  NS_ASSERT(m_state == PROPAGATING);
(-)a/src/devices/csma/csma-net-device.cc (-7 / +7 lines)
 Lines 85-91   CsmaNetDevice::CsmaNetDevice (Ptr<Node> Link Here 
85
    m_bps (DataRate (0xffffffff))
85
    m_bps (DataRate (0xffffffff))
86
{
86
{
87
  NS_LOG_FUNCTION;
87
  NS_LOG_FUNCTION;
88
  NS_LOG_PARAM ("(" << node << ")");
88
  NS_LOG_PARAMS (this << node);
89
  m_encapMode = IP_ARP;
89
  m_encapMode = IP_ARP;
90
  Init(true, true);
90
  Init(true, true);
91
}
91
}
 Lines 96-102   CsmaNetDevice::CsmaNetDevice (Ptr<Node> Link Here 
96
    m_bps (DataRate (0xffffffff))
96
    m_bps (DataRate (0xffffffff))
97
{
97
{
98
  NS_LOG_FUNCTION;
98
  NS_LOG_FUNCTION;
99
  NS_LOG_PARAM ("(" << node << ")");
99
  NS_LOG_PARAMS (this << node);
100
  m_encapMode = encapMode;
100
  m_encapMode = encapMode;
101
101
102
  Init(true, true);
102
  Init(true, true);
 Lines 109-115   CsmaNetDevice::CsmaNetDevice (Ptr<Node> Link Here 
109
    m_bps (DataRate (0xffffffff))
109
    m_bps (DataRate (0xffffffff))
110
{
110
{
111
  NS_LOG_FUNCTION;
111
  NS_LOG_FUNCTION;
112
  NS_LOG_PARAM ("(" << node << ")");
112
  NS_LOG_PARAMS (this << node);
113
  m_encapMode = encapMode;
113
  m_encapMode = encapMode;
114
114
115
  Init(sendEnable, receiveEnable);
115
  Init(sendEnable, receiveEnable);
 Lines 142-148   CsmaNetDevice::operator= (const CsmaNetD Link Here 
142
CsmaNetDevice::operator= (const CsmaNetDevice nd)
142
CsmaNetDevice::operator= (const CsmaNetDevice nd)
143
{
143
{
144
  NS_LOG_FUNCTION;
144
  NS_LOG_FUNCTION;
145
  NS_LOG_PARAM ("(" << &nd << ")");
145
  NS_LOG_PARAMS (this << &nd);
146
  return *this;
146
  return *this;
147
}
147
}
148
*/
148
*/
 Lines 507-513   CsmaNetDevice::Attach (Ptr<CsmaChannel> Link Here 
507
CsmaNetDevice::Attach (Ptr<CsmaChannel> ch)
507
CsmaNetDevice::Attach (Ptr<CsmaChannel> ch)
508
{
508
{
509
  NS_LOG_FUNCTION;
509
  NS_LOG_FUNCTION;
510
  NS_LOG_PARAM ("(" << &ch << ")");
510
  NS_LOG_PARAMS (this << &ch);
511
511
512
  m_channel = ch;
512
  m_channel = ch;
513
513
 Lines 526-532   CsmaNetDevice::AddQueue (Ptr<Queue> q) Link Here 
526
CsmaNetDevice::AddQueue (Ptr<Queue> q)
526
CsmaNetDevice::AddQueue (Ptr<Queue> q)
527
{
527
{
528
  NS_LOG_FUNCTION;
528
  NS_LOG_FUNCTION;
529
  NS_LOG_PARAM ("(" << q << ")");
529
  NS_LOG_PARAMS (this << q);
530
530
531
  m_queue = q;
531
  m_queue = q;
532
}
532
}
 Lines 624-630   CsmaNetDevice::MakeMulticastAddress(Ipv4 Link Here 
624
CsmaNetDevice::MakeMulticastAddress(Ipv4Address multicastGroup) const
624
CsmaNetDevice::MakeMulticastAddress(Ipv4Address multicastGroup) const
625
{
625
{
626
  NS_LOG_FUNCTION;
626
  NS_LOG_FUNCTION;
627
  NS_LOG_PARAM ("(" << multicastGroup << ")");
627
  NS_LOG_PARAMS (this << multicastGroup);
628
//
628
//
629
// First, get the generic multicast address.
629
// First, get the generic multicast address.
630
//
630
//
(-)a/src/devices/point-to-point/point-to-point-channel.cc (-6 / +4 lines)
 Lines 52-59   PointToPointChannel::PointToPointChannel Link Here 
52
  m_nDevices(0)
52
  m_nDevices(0)
53
{
53
{
54
  NS_LOG_FUNCTION;
54
  NS_LOG_FUNCTION;
55
  NS_LOG_PARAM ("(" << Channel::GetName() << ", " << bps.GetBitRate() << 
55
  NS_LOG_PARAMS (this << Channel::GetName() << bps.GetBitRate() << delay);
56
    ", " << delay << ")");
57
}
56
}
58
57
59
PointToPointChannel::PointToPointChannel(
58
PointToPointChannel::PointToPointChannel(
 Lines 67-81   PointToPointChannel::PointToPointChannel Link Here 
67
  m_nDevices(0)
66
  m_nDevices(0)
68
{
67
{
69
  NS_LOG_FUNCTION;
68
  NS_LOG_FUNCTION;
70
  NS_LOG_PARAM ("(" << name << ", " << bps.GetBitRate() << ", " << 
69
  NS_LOG_PARAMS (this << name << bps.GetBitRate() << delay);
71
    delay << ")");
72
}
70
}
73
71
74
void
72
void
75
PointToPointChannel::Attach(Ptr<PointToPointNetDevice> device)
73
PointToPointChannel::Attach(Ptr<PointToPointNetDevice> device)
76
{
74
{
77
  NS_LOG_FUNCTION;
75
  NS_LOG_FUNCTION;
78
  NS_LOG_PARAM ("(" << device << ")");
76
  NS_LOG_PARAMS (this << device);
79
  NS_ASSERT(m_nDevices < N_DEVICES && "Only two devices permitted");
77
  NS_ASSERT(m_nDevices < N_DEVICES && "Only two devices permitted");
80
  NS_ASSERT(device != 0);
78
  NS_ASSERT(device != 0);
81
79
 Lines 99-105   PointToPointChannel::TransmitStart(Packe Link Here 
99
                                        const Time& txTime)
97
                                        const Time& txTime)
100
{
98
{
101
  NS_LOG_FUNCTION;
99
  NS_LOG_FUNCTION;
102
  NS_LOG_PARAM ("(" << &p << ", " << src << ")");
100
  NS_LOG_PARAMS (this << &p << src);
103
  NS_LOG_LOGIC ("UID is " << p.GetUid () << ")");
101
  NS_LOG_LOGIC ("UID is " << p.GetUid () << ")");
104
102
105
  NS_ASSERT(m_link[0].m_state != INITIALIZING);
103
  NS_ASSERT(m_link[0].m_state != INITIALIZING);
(-)a/src/devices/point-to-point/point-to-point-net-device.cc (-5 / +5 lines)
 Lines 76-82   PointToPointNetDevice::PointToPointNetDe Link Here 
76
  m_rxTrace ()
76
  m_rxTrace ()
77
{
77
{
78
  NS_LOG_FUNCTION;
78
  NS_LOG_FUNCTION;
79
  NS_LOG_PARAM ("(" << node << ")");
79
  NS_LOG_PARAMS (this << node);
80
//
80
//
81
// XXX BUGBUG
81
// XXX BUGBUG
82
//
82
//
 Lines 174-180   PointToPointNetDevice::TransmitStart (Pa Link Here 
174
PointToPointNetDevice::TransmitStart (Packet &p)
174
PointToPointNetDevice::TransmitStart (Packet &p)
175
{
175
{
176
  NS_LOG_FUNCTION;
176
  NS_LOG_FUNCTION;
177
  NS_LOG_PARAM ("(" << &p << ")");
177
  NS_LOG_PARAMS (this << &p);
178
  NS_LOG_LOGIC ("UID is " << p.GetUid () << ")");
178
  NS_LOG_LOGIC ("UID is " << p.GetUid () << ")");
179
//
179
//
180
// This function is called to start the process of transmitting a packet.
180
// This function is called to start the process of transmitting a packet.
 Lines 230-236   PointToPointNetDevice::Attach (Ptr<Point Link Here 
230
PointToPointNetDevice::Attach (Ptr<PointToPointChannel> ch)
230
PointToPointNetDevice::Attach (Ptr<PointToPointChannel> ch)
231
{
231
{
232
  NS_LOG_FUNCTION;
232
  NS_LOG_FUNCTION;
233
  NS_LOG_PARAM ("(" << &ch << ")");
233
  NS_LOG_PARAMS (this << &ch);
234
234
235
  m_channel = ch;
235
  m_channel = ch;
236
236
 Lines 257-263   void PointToPointNetDevice::AddQueue (Pt Link Here 
257
void PointToPointNetDevice::AddQueue (Ptr<Queue> q)
257
void PointToPointNetDevice::AddQueue (Ptr<Queue> q)
258
{
258
{
259
  NS_LOG_FUNCTION;
259
  NS_LOG_FUNCTION;
260
  NS_LOG_PARAM ("(" << q << ")");
260
  NS_LOG_PARAMS (this << q);
261
261
262
  m_queue = q;
262
  m_queue = q;
263
}
263
}
 Lines 265-271   void PointToPointNetDevice::Receive (Pac Link Here 
265
void PointToPointNetDevice::Receive (Packet& p)
265
void PointToPointNetDevice::Receive (Packet& p)
266
{
266
{
267
  NS_LOG_FUNCTION;
267
  NS_LOG_FUNCTION;
268
  NS_LOG_PARAM ("(" << &p << ")");
268
  NS_LOG_PARAMS (this << &p);
269
  uint16_t protocol = 0;
269
  uint16_t protocol = 0;
270
  Packet packet = p;
270
  Packet packet = p;
271
271
(-)a/src/internet-node/arp-ipv4-interface.cc (-1 / +1 lines)
 Lines 64-70   ArpIpv4Interface::SendTo (Packet p, Ipv4 Link Here 
64
ArpIpv4Interface::SendTo (Packet p, Ipv4Address dest)
64
ArpIpv4Interface::SendTo (Packet p, Ipv4Address dest)
65
{
65
{
66
  NS_LOG_FUNCTION;
66
  NS_LOG_FUNCTION;
67
  NS_LOG_PARAM ("(" << &p << ", " << dest << ")");
67
  NS_LOG_PARAMS (this << &p << dest);
68
68
69
  NS_ASSERT (GetDevice () != 0);
69
  NS_ASSERT (GetDevice () != 0);
70
  if (GetDevice ()->NeedsArp ())
70
  if (GetDevice ()->NeedsArp ())
(-)a/src/internet-node/ipv4-end-point-demux.cc (-8 / +4 lines)
 Lines 93-99   Ipv4EndPointDemux::Allocate (Ipv4Address Link Here 
93
Ipv4EndPointDemux::Allocate (Ipv4Address address)
93
Ipv4EndPointDemux::Allocate (Ipv4Address address)
94
{
94
{
95
  NS_LOG_FUNCTION;
95
  NS_LOG_FUNCTION;
96
  NS_LOG_PARAM ("(" << this << ", " << address << ")");
96
  NS_LOG_PARAMS (this << address);
97
  uint16_t port = AllocateEphemeralPort ();
97
  uint16_t port = AllocateEphemeralPort ();
98
  if (port == 0) 
98
  if (port == 0) 
99
    {
99
    {
 Lines 117-123   Ipv4EndPointDemux::Allocate (Ipv4Address Link Here 
117
Ipv4EndPointDemux::Allocate (Ipv4Address address, uint16_t port)
117
Ipv4EndPointDemux::Allocate (Ipv4Address address, uint16_t port)
118
{
118
{
119
  NS_LOG_FUNCTION;
119
  NS_LOG_FUNCTION;
120
  NS_LOG_PARAM ("(" << this << ", " << address << ", " << port << ")");
120
  NS_LOG_PARAMS (this << address << port);
121
  if (LookupLocal (address, port)) 
121
  if (LookupLocal (address, port)) 
122
    {
122
    {
123
      NS_LOG_WARN ("Duplicate address/port; failing.");
123
      NS_LOG_WARN ("Duplicate address/port; failing.");
 Lines 134-143   Ipv4EndPointDemux::Allocate (Ipv4Address Link Here 
134
			     Ipv4Address peerAddress, uint16_t peerPort)
134
			     Ipv4Address peerAddress, uint16_t peerPort)
135
{
135
{
136
  NS_LOG_FUNCTION;
136
  NS_LOG_FUNCTION;
137
  NS_LOG_PARAM ("(localAddress=" << localAddress
137
  NS_LOG_PARAMS (this << localAddress << localPort << peerAddress << peerPort);
138
    << ", localPort=" << localPort
139
    << ", peerAddress=" << peerAddress
140
    << ", peerPort=" << peerPort << ")");
141
  for (EndPointsI i = m_endPoints.begin (); i != m_endPoints.end (); i++) 
138
  for (EndPointsI i = m_endPoints.begin (); i != m_endPoints.end (); i++) 
142
    {
139
    {
143
      if ((*i)->GetLocalPort () == localPort &&
140
      if ((*i)->GetLocalPort () == localPort &&
 Lines 189-196   Ipv4EndPointDemux::Lookup (Ipv4Address d Link Here 
189
  Ipv4EndPoint *generic = 0;
186
  Ipv4EndPoint *generic = 0;
190
  EndPoints retval;
187
  EndPoints retval;
191
188
192
  NS_LOG_PARAM ("(daddr=" << daddr << ", dport=" << dport
189
  NS_LOG_PARAMS (this << daddr << dport << saddr << sport);
193
    << ", saddr=" << saddr << ", sport=" << sport << ")");
194
190
195
  for (EndPointsI i = m_endPoints.begin (); i != m_endPoints.end (); i++) 
191
  for (EndPointsI i = m_endPoints.begin (); i != m_endPoints.end (); i++) 
196
    {
192
    {
(-)a/src/internet-node/ipv4-interface.cc (-3 / +3 lines)
 Lines 40-46   Ipv4Interface::Ipv4Interface (Ptr<NetDev Link Here 
40
    m_ifup(false)
40
    m_ifup(false)
41
{
41
{
42
  NS_LOG_FUNCTION;
42
  NS_LOG_FUNCTION;
43
  NS_LOG_PARAM ("(" << &nd << ")");
43
  NS_LOG_PARAMS (this << &nd);
44
}
44
}
45
45
46
Ipv4Interface::~Ipv4Interface ()
46
Ipv4Interface::~Ipv4Interface ()
 Lines 67-73   Ipv4Interface::SetAddress (Ipv4Address a Link Here 
67
Ipv4Interface::SetAddress (Ipv4Address a)
67
Ipv4Interface::SetAddress (Ipv4Address a)
68
{
68
{
69
  NS_LOG_FUNCTION;
69
  NS_LOG_FUNCTION;
70
  NS_LOG_PARAM ("(" << a << ")");
70
  NS_LOG_PARAMS (this << a);
71
  m_address = a;
71
  m_address = a;
72
}
72
}
73
73
 Lines 75-81   Ipv4Interface::SetNetworkMask (Ipv4Mask Link Here 
75
Ipv4Interface::SetNetworkMask (Ipv4Mask mask)
75
Ipv4Interface::SetNetworkMask (Ipv4Mask mask)
76
{
76
{
77
  NS_LOG_FUNCTION;
77
  NS_LOG_FUNCTION;
78
  NS_LOG_PARAM ("(" << mask << ")");
78
  NS_LOG_PARAMS (this << mask);
79
  m_netmask = mask;
79
  m_netmask = mask;
80
}
80
}
81
81
(-)a/src/internet-node/ipv4-l3-protocol.cc (-45 / +36 lines)
 Lines 233-239   Ipv4L3Protocol::AddHostRouteTo (Ipv4Addr Link Here 
233
                      uint32_t interface)
233
                      uint32_t interface)
234
{
234
{
235
  NS_LOG_FUNCTION;
235
  NS_LOG_FUNCTION;
236
  NS_LOG_PARAM ("(" << dest << ", " << nextHop << ", " << interface << ")");
236
  NS_LOG_PARAMS (this << dest << nextHop << interface);
237
  m_staticRouting->AddHostRouteTo (dest, nextHop, interface);
237
  m_staticRouting->AddHostRouteTo (dest, nextHop, interface);
238
}
238
}
239
239
 Lines 242-248   Ipv4L3Protocol::AddHostRouteTo (Ipv4Addr Link Here 
242
				uint32_t interface)
242
				uint32_t interface)
243
{
243
{
244
  NS_LOG_FUNCTION;
244
  NS_LOG_FUNCTION;
245
  NS_LOG_PARAM ("(" << dest << ", " << interface << ")");
245
  NS_LOG_PARAMS (this << dest << interface);
246
  m_staticRouting->AddHostRouteTo (dest, interface);
246
  m_staticRouting->AddHostRouteTo (dest, interface);
247
}
247
}
248
248
 Lines 253-260   Ipv4L3Protocol::AddNetworkRouteTo (Ipv4A Link Here 
253
				   uint32_t interface)
253
				   uint32_t interface)
254
{
254
{
255
  NS_LOG_FUNCTION;
255
  NS_LOG_FUNCTION;
256
  NS_LOG_PARAM ("(" << network << ", " << networkMask << ", " << nextHop << 
256
  NS_LOG_PARAMS (this << network << networkMask << nextHop << interface);
257
    ", " << interface << ")");
258
  m_staticRouting->AddNetworkRouteTo (network, networkMask, nextHop, interface);
257
  m_staticRouting->AddNetworkRouteTo (network, networkMask, nextHop, interface);
259
}
258
}
260
259
 Lines 264-271   Ipv4L3Protocol::AddNetworkRouteTo (Ipv4A Link Here 
264
				   uint32_t interface)
263
				   uint32_t interface)
265
{
264
{
266
  NS_LOG_FUNCTION; 
265
  NS_LOG_FUNCTION; 
267
  NS_LOG_PARAM ("(" << network << ", " << networkMask << ", " << interface << 
266
  NS_LOG_PARAMS (this << network << networkMask << interface);
268
    ")");
269
  m_staticRouting->AddNetworkRouteTo (network, networkMask, interface);
267
  m_staticRouting->AddNetworkRouteTo (network, networkMask, interface);
270
}
268
}
271
269
 Lines 274-280   Ipv4L3Protocol::SetDefaultRoute (Ipv4Add Link Here 
274
				 uint32_t interface)
272
				 uint32_t interface)
275
{
273
{
276
  NS_LOG_FUNCTION;
274
  NS_LOG_FUNCTION;
277
  NS_LOG_PARAM ("(" << nextHop << ", " << interface << ")");
275
  NS_LOG_PARAMS (this << nextHop << interface);
278
  m_staticRouting->SetDefaultRoute (nextHop, interface);
276
  m_staticRouting->SetDefaultRoute (nextHop, interface);
279
}
277
}
280
278
 Lines 285-291   Ipv4L3Protocol::Lookup ( Link Here 
285
  Ipv4RoutingProtocol::RouteReplyCallback routeReply)
283
  Ipv4RoutingProtocol::RouteReplyCallback routeReply)
286
{
284
{
287
  NS_LOG_FUNCTION;
285
  NS_LOG_FUNCTION;
288
  NS_LOG_PARAM ("(" << &ipHeader << ", " << &packet << &routeReply << ")");
286
  NS_LOG_PARAMS (this << &ipHeader << &packet << &routeReply);
289
287
290
  Lookup (Ipv4RoutingProtocol::IF_INDEX_ANY, ipHeader, packet, routeReply);
288
  Lookup (Ipv4RoutingProtocol::IF_INDEX_ANY, ipHeader, packet, routeReply);
291
}
289
}
 Lines 298-305   Ipv4L3Protocol::Lookup ( Link Here 
298
  Ipv4RoutingProtocol::RouteReplyCallback routeReply)
296
  Ipv4RoutingProtocol::RouteReplyCallback routeReply)
299
{
297
{
300
  NS_LOG_FUNCTION;
298
  NS_LOG_FUNCTION;
301
  NS_LOG_PARAM ("(" << ifIndex << ", " << &ipHeader << ", " << &packet << 
299
  NS_LOG_PARAMS (this << ifIndex << &ipHeader << &packet << &routeReply);
302
    &routeReply << ")");
303
300
304
  for (Ipv4RoutingProtocolList::const_iterator rprotoIter = 
301
  for (Ipv4RoutingProtocolList::const_iterator rprotoIter = 
305
         m_routingProtocols.begin ();
302
         m_routingProtocols.begin ();
 Lines 348-354   Ipv4L3Protocol::AddRoutingProtocol (Ptr< Link Here 
348
                                    int priority)
345
                                    int priority)
349
{
346
{
350
  NS_LOG_FUNCTION;
347
  NS_LOG_FUNCTION;
351
  NS_LOG_PARAM ("(" << &routingProtocol << ", " << priority << ")");
348
  NS_LOG_PARAMS (this << &routingProtocol << priority);
352
  m_routingProtocols.push_back
349
  m_routingProtocols.push_back
353
    (std::pair<int, Ptr<Ipv4RoutingProtocol> > (-priority, routingProtocol));
350
    (std::pair<int, Ptr<Ipv4RoutingProtocol> > (-priority, routingProtocol));
354
  m_routingProtocols.sort ();
351
  m_routingProtocols.sort ();
 Lines 372-378   Ipv4L3Protocol::RemoveRoute (uint32_t in Link Here 
372
Ipv4L3Protocol::RemoveRoute (uint32_t index)
369
Ipv4L3Protocol::RemoveRoute (uint32_t index)
373
{
370
{
374
  NS_LOG_FUNCTION;
371
  NS_LOG_FUNCTION;
375
  NS_LOG_PARAM("(" << index << ")");
372
  NS_LOG_PARAMS (this << index);
376
  m_staticRouting->RemoveRoute (index);
373
  m_staticRouting->RemoveRoute (index);
377
}
374
}
378
375
 Lines 383-390   Ipv4L3Protocol::AddMulticastRoute (Ipv4A Link Here 
383
                                   std::vector<uint32_t> outputInterfaces)
380
                                   std::vector<uint32_t> outputInterfaces)
384
{
381
{
385
  NS_LOG_FUNCTION; 
382
  NS_LOG_FUNCTION; 
386
  NS_LOG_PARAM ("(" << origin << ", " << group << ", " << inputInterface << 
383
  NS_LOG_PARAMS (this << origin << group << inputInterface << &outputInterfaces);
387
    ", " << &outputInterfaces << ")");
388
384
389
  m_staticRouting->AddMulticastRoute (origin, group, inputInterface,
385
  m_staticRouting->AddMulticastRoute (origin, group, inputInterface,
390
    outputInterfaces);
386
    outputInterfaces);
 Lines 394-400   Ipv4L3Protocol::SetDefaultMulticastRoute Link Here 
394
Ipv4L3Protocol::SetDefaultMulticastRoute (uint32_t outputInterface)
390
Ipv4L3Protocol::SetDefaultMulticastRoute (uint32_t outputInterface)
395
{
391
{
396
  NS_LOG_FUNCTION;
392
  NS_LOG_FUNCTION;
397
  NS_LOG_PARAM ("(" << outputInterface << ")");
393
  NS_LOG_PARAMS (this << outputInterface);
398
394
399
  m_staticRouting->SetDefaultMulticastRoute (outputInterface);
395
  m_staticRouting->SetDefaultMulticastRoute (outputInterface);
400
}
396
}
 Lines 410-416   Ipv4L3Protocol::GetMulticastRoute (uint3 Link Here 
410
Ipv4L3Protocol::GetMulticastRoute (uint32_t index) const
406
Ipv4L3Protocol::GetMulticastRoute (uint32_t index) const
411
{
407
{
412
  NS_LOG_FUNCTION;
408
  NS_LOG_FUNCTION;
413
  NS_LOG_PARAM ("(" << index << ")");
409
  NS_LOG_PARAMS (this << index);
414
  return m_staticRouting->GetMulticastRoute (index);
410
  return m_staticRouting->GetMulticastRoute (index);
415
}
411
}
416
412
 Lines 420-427   Ipv4L3Protocol::RemoveMulticastRoute (Ip Link Here 
420
                                       uint32_t inputInterface)
416
                                       uint32_t inputInterface)
421
{
417
{
422
  NS_LOG_FUNCTION;
418
  NS_LOG_FUNCTION;
423
  NS_LOG_PARAM ("(" << origin << ", " << group << ", " << inputInterface << 
419
  NS_LOG_PARAMS (this << origin << group << inputInterface);
424
    ")");
425
  m_staticRouting->RemoveMulticastRoute (origin, group, inputInterface);
420
  m_staticRouting->RemoveMulticastRoute (origin, group, inputInterface);
426
}
421
}
427
422
 Lines 429-435   Ipv4L3Protocol::RemoveMulticastRoute (ui Link Here 
429
Ipv4L3Protocol::RemoveMulticastRoute (uint32_t index)
424
Ipv4L3Protocol::RemoveMulticastRoute (uint32_t index)
430
{
425
{
431
  NS_LOG_FUNCTION;
426
  NS_LOG_FUNCTION;
432
  NS_LOG_PARAM ("(" << index << ")");
427
  NS_LOG_PARAMS (this << index);
433
  m_staticRouting->RemoveMulticastRoute (index);
428
  m_staticRouting->RemoveMulticastRoute (index);
434
}
429
}
435
430
 Lines 437-443   Ipv4L3Protocol::AddInterface (Ptr<NetDev Link Here 
437
Ipv4L3Protocol::AddInterface (Ptr<NetDevice> device)
432
Ipv4L3Protocol::AddInterface (Ptr<NetDevice> device)
438
{
433
{
439
  NS_LOG_FUNCTION;
434
  NS_LOG_FUNCTION;
440
  NS_LOG_PARAM ("(" << &device << ")");
435
  NS_LOG_PARAMS (this << &device);
441
  Ptr<Ipv4Interface> interface = Create<ArpIpv4Interface> (m_node, device);
436
  Ptr<Ipv4Interface> interface = Create<ArpIpv4Interface> (m_node, device);
442
  return AddIpv4Interface (interface);
437
  return AddIpv4Interface (interface);
443
}
438
}
 Lines 446-452   Ipv4L3Protocol::AddIpv4Interface (Ptr<Ip Link Here 
446
Ipv4L3Protocol::AddIpv4Interface (Ptr<Ipv4Interface>interface)
441
Ipv4L3Protocol::AddIpv4Interface (Ptr<Ipv4Interface>interface)
447
{
442
{
448
  NS_LOG_FUNCTION;
443
  NS_LOG_FUNCTION;
449
  NS_LOG_PARAM ("(" << interface << ")");
444
  NS_LOG_PARAMS (this << interface);
450
  uint32_t index = m_nInterfaces;
445
  uint32_t index = m_nInterfaces;
451
  m_interfaces.push_back (interface);
446
  m_interfaces.push_back (interface);
452
  m_nInterfaces++;
447
  m_nInterfaces++;
 Lines 457-463   Ipv4L3Protocol::GetInterface (uint32_t i Link Here 
457
Ipv4L3Protocol::GetInterface (uint32_t index) const
452
Ipv4L3Protocol::GetInterface (uint32_t index) const
458
{
453
{
459
  NS_LOG_FUNCTION;
454
  NS_LOG_FUNCTION;
460
  NS_LOG_PARAM ("(" << index << ")");
455
  NS_LOG_PARAMS (this << index);
461
  uint32_t tmp = 0;
456
  uint32_t tmp = 0;
462
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); i != m_interfaces.end (); i++)
457
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); i != m_interfaces.end (); i++)
463
    {
458
    {
 Lines 481-487   Ipv4L3Protocol::FindInterfaceForAddr (Ip Link Here 
481
Ipv4L3Protocol::FindInterfaceForAddr (Ipv4Address addr) const
476
Ipv4L3Protocol::FindInterfaceForAddr (Ipv4Address addr) const
482
{
477
{
483
  NS_LOG_FUNCTION;
478
  NS_LOG_FUNCTION;
484
  NS_LOG_PARAM ("(" << addr << ")");
479
  NS_LOG_PARAMS (this << addr);
485
480
486
  uint32_t ifIndex = 0;
481
  uint32_t ifIndex = 0;
487
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); 
482
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); 
 Lines 503-509   Ipv4L3Protocol::FindInterfaceForAddr (Ip Link Here 
503
Ipv4L3Protocol::FindInterfaceForAddr (Ipv4Address addr, Ipv4Mask mask) const
498
Ipv4L3Protocol::FindInterfaceForAddr (Ipv4Address addr, Ipv4Mask mask) const
504
{
499
{
505
  NS_LOG_FUNCTION;
500
  NS_LOG_FUNCTION;
506
  NS_LOG_PARAM ("(" << addr << ", " << mask << ")");
501
  NS_LOG_PARAMS (this << addr << mask);
507
502
508
  uint32_t ifIndex = 0;
503
  uint32_t ifIndex = 0;
509
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); 
504
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); 
 Lines 525-531   Ipv4L3Protocol::FindInterfaceForDevice ( Link Here 
525
Ipv4L3Protocol::FindInterfaceForDevice (Ptr<const NetDevice> device)
520
Ipv4L3Protocol::FindInterfaceForDevice (Ptr<const NetDevice> device)
526
{
521
{
527
  NS_LOG_FUNCTION;
522
  NS_LOG_FUNCTION;
528
  NS_LOG_PARAM ("(" << &device << ")");
523
  NS_LOG_PARAMS (this << &device);
529
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); i != m_interfaces.end (); i++)
524
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); i != m_interfaces.end (); i++)
530
    {
525
    {
531
      if ((*i)->GetDevice () == device)
526
      if ((*i)->GetDevice () == device)
 Lines 540-547   Ipv4L3Protocol::Receive( Ptr<NetDevice> Link Here 
540
Ipv4L3Protocol::Receive( Ptr<NetDevice> device, const Packet& p, uint16_t protocol, const Address &from)
535
Ipv4L3Protocol::Receive( Ptr<NetDevice> device, const Packet& p, uint16_t protocol, const Address &from)
541
{
536
{
542
  NS_LOG_FUNCTION;
537
  NS_LOG_FUNCTION;
543
  NS_LOG_PARAM ("(" << &device << ", " << &p << ", " << protocol << ", " << 
538
  NS_LOG_PARAMS (this << &device << &p << protocol <<  from);
544
    from << ")");
545
539
546
  NS_LOG_LOGIC ("Packet from " << from);
540
  NS_LOG_LOGIC ("Packet from " << from);
547
541
 Lines 585-592   Ipv4L3Protocol::Send (Packet const &pack Link Here 
585
            uint8_t protocol)
579
            uint8_t protocol)
586
{
580
{
587
  NS_LOG_FUNCTION;
581
  NS_LOG_FUNCTION;
588
  NS_LOG_PARAM ("(" << &packet << ", " << source << ", " << ", " << 
582
  NS_LOG_PARAMS (this << &packet << source << destination << protocol);
589
    destination << ", " << protocol << ")");
590
583
591
  Ipv4Header ipHeader;
584
  Ipv4Header ipHeader;
592
585
 Lines 637-644   Ipv4L3Protocol::SendRealOut (bool found, Link Here 
637
                             Ipv4Header const &ipHeader)
630
                             Ipv4Header const &ipHeader)
638
{
631
{
639
  NS_LOG_FUNCTION;
632
  NS_LOG_FUNCTION;
640
  NS_LOG_PARAM ("(" << found << ", " << &route << ", " << &packet << 
633
  NS_LOG_PARAMS (this << found << &route << &packet << &ipHeader);
641
    &ipHeader << ")");
642
634
643
  if (!found)
635
  if (!found)
644
    {
636
    {
 Lines 673-680   Ipv4L3Protocol::Forwarding ( Link Here 
673
  Ptr<NetDevice> device)
665
  Ptr<NetDevice> device)
674
{
666
{
675
  NS_LOG_FUNCTION;
667
  NS_LOG_FUNCTION;
676
  NS_LOG_PARAM ("(" << ifIndex << ", " << &packet << ", " << &ipHeader << 
668
  NS_LOG_PARAMS (ifIndex << &packet << &ipHeader<< device);
677
    ", " << device << ")");
678
669
679
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin ();
670
  for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin ();
680
       i != m_interfaces.end (); i++) 
671
       i != m_interfaces.end (); i++) 
 Lines 751-757   Ipv4L3Protocol::ForwardUp (Packet p, Ipv Link Here 
751
                           Ptr<Ipv4Interface> incomingInterface)
742
                           Ptr<Ipv4Interface> incomingInterface)
752
{
743
{
753
  NS_LOG_FUNCTION;
744
  NS_LOG_FUNCTION;
754
  NS_LOG_PARAM ("(" << &p << ", " << &ip << ")");
745
  NS_LOG_PARAMS (this << &p << &ip);
755
746
756
  Ptr<Ipv4L4Demux> demux = m_node->QueryInterface<Ipv4L4Demux> (Ipv4L4Demux::iid);
747
  Ptr<Ipv4L4Demux> demux = m_node->QueryInterface<Ipv4L4Demux> (Ipv4L4Demux::iid);
757
  Ptr<Ipv4L4Protocol> protocol = demux->GetProtocol (ip.GetProtocol ());
748
  Ptr<Ipv4L4Protocol> protocol = demux->GetProtocol (ip.GetProtocol ());
 Lines 762-768   Ipv4L3Protocol::JoinMulticastGroup (Ipv4 Link Here 
762
Ipv4L3Protocol::JoinMulticastGroup (Ipv4Address origin, Ipv4Address group)
753
Ipv4L3Protocol::JoinMulticastGroup (Ipv4Address origin, Ipv4Address group)
763
{
754
{
764
  NS_LOG_FUNCTION;
755
  NS_LOG_FUNCTION;
765
  NS_LOG_PARAM ("(" << origin << ", " << group << ")");
756
  NS_LOG_PARAMS (this << origin << group);
766
  m_multicastGroups.push_back(
757
  m_multicastGroups.push_back(
767
    std::pair<Ipv4Address, Ipv4Address> (origin, group));
758
    std::pair<Ipv4Address, Ipv4Address> (origin, group));
768
}
759
}
 Lines 771-777   Ipv4L3Protocol::LeaveMulticastGroup (Ipv Link Here 
771
Ipv4L3Protocol::LeaveMulticastGroup (Ipv4Address origin, Ipv4Address group)
762
Ipv4L3Protocol::LeaveMulticastGroup (Ipv4Address origin, Ipv4Address group)
772
{
763
{
773
  NS_LOG_FUNCTION;
764
  NS_LOG_FUNCTION;
774
  NS_LOG_PARAM ("(" << origin << ", " << group << ")");
765
  NS_LOG_PARAMS (this << origin << group);
775
766
776
  for (Ipv4MulticastGroupList::iterator i = m_multicastGroups.begin ();
767
  for (Ipv4MulticastGroupList::iterator i = m_multicastGroups.begin ();
777
       i != m_multicastGroups.end (); 
768
       i != m_multicastGroups.end (); 
 Lines 789-795   Ipv4L3Protocol::SetAddress (uint32_t i, Link Here 
789
Ipv4L3Protocol::SetAddress (uint32_t i, Ipv4Address address)
780
Ipv4L3Protocol::SetAddress (uint32_t i, Ipv4Address address)
790
{
781
{
791
  NS_LOG_FUNCTION;
782
  NS_LOG_FUNCTION;
792
  NS_LOG_PARAM ("(" << i << ", " << address << ")");
783
  NS_LOG_PARAMS (this << i << address);
793
  Ptr<Ipv4Interface> interface = GetInterface (i);
784
  Ptr<Ipv4Interface> interface = GetInterface (i);
794
  interface->SetAddress (address);
785
  interface->SetAddress (address);
795
}
786
}
 Lines 798-804   Ipv4L3Protocol::SetNetworkMask (uint32_t Link Here 
798
Ipv4L3Protocol::SetNetworkMask (uint32_t i, Ipv4Mask mask)
789
Ipv4L3Protocol::SetNetworkMask (uint32_t i, Ipv4Mask mask)
799
{
790
{
800
  NS_LOG_FUNCTION;
791
  NS_LOG_FUNCTION;
801
  NS_LOG_PARAM ("(" << i << ", " << mask << ")");
792
  NS_LOG_PARAMS (this << i << mask);
802
  Ptr<Ipv4Interface> interface = GetInterface (i);
793
  Ptr<Ipv4Interface> interface = GetInterface (i);
803
  interface->SetNetworkMask (mask);
794
  interface->SetNetworkMask (mask);
804
}
795
}
 Lines 807-813   Ipv4L3Protocol::GetNetworkMask (uint32_t Link Here 
807
Ipv4L3Protocol::GetNetworkMask (uint32_t i) const
798
Ipv4L3Protocol::GetNetworkMask (uint32_t i) const
808
{
799
{
809
  NS_LOG_FUNCTION;
800
  NS_LOG_FUNCTION;
810
  NS_LOG_PARAM ("(" << i << ")");
801
  NS_LOG_PARAMS (this << i);
811
  Ptr<Ipv4Interface> interface = GetInterface (i);
802
  Ptr<Ipv4Interface> interface = GetInterface (i);
812
  return interface->GetNetworkMask ();
803
  return interface->GetNetworkMask ();
813
}
804
}
 Lines 816-822   Ipv4L3Protocol::GetAddress (uint32_t i) Link Here 
816
Ipv4L3Protocol::GetAddress (uint32_t i) const
807
Ipv4L3Protocol::GetAddress (uint32_t i) const
817
{
808
{
818
  NS_LOG_FUNCTION;
809
  NS_LOG_FUNCTION;
819
  NS_LOG_PARAM ("(" << i << ")");
810
  NS_LOG_PARAMS (this << i);
820
  Ptr<Ipv4Interface> interface = GetInterface (i);
811
  Ptr<Ipv4Interface> interface = GetInterface (i);
821
  return interface->GetAddress ();
812
  return interface->GetAddress ();
822
}
813
}
 Lines 826-832   Ipv4L3Protocol::GetIfIndexForDestination Link Here 
826
  Ipv4Address destination, uint32_t& ifIndex) const
817
  Ipv4Address destination, uint32_t& ifIndex) const
827
{
818
{
828
  NS_LOG_FUNCTION;
819
  NS_LOG_FUNCTION;
829
  NS_LOG_PARAM ("(" << destination << ", " << &ifIndex << ")");
820
  NS_LOG_PARAMS (this << destination << &ifIndex);
830
//
821
//
831
// The first thing we do in trying to determine a source address is to 
822
// The first thing we do in trying to determine a source address is to 
832
// consult the routing protocols.  These will also check for a default route
823
// consult the routing protocols.  These will also check for a default route
 Lines 893-899   Ipv4L3Protocol::GetMtu (uint32_t i) cons Link Here 
893
Ipv4L3Protocol::GetMtu (uint32_t i) const
884
Ipv4L3Protocol::GetMtu (uint32_t i) const
894
{
885
{
895
  NS_LOG_FUNCTION;
886
  NS_LOG_FUNCTION;
896
  NS_LOG_PARAM ("(" << i << ")");
887
  NS_LOG_PARAMS (this << i);
897
  Ptr<Ipv4Interface> interface = GetInterface (i);
888
  Ptr<Ipv4Interface> interface = GetInterface (i);
898
  return interface->GetMtu ();
889
  return interface->GetMtu ();
899
}
890
}
 Lines 902-908   Ipv4L3Protocol::IsUp (uint32_t i) const Link Here 
902
Ipv4L3Protocol::IsUp (uint32_t i) const
893
Ipv4L3Protocol::IsUp (uint32_t i) const
903
{
894
{
904
  NS_LOG_FUNCTION;
895
  NS_LOG_FUNCTION;
905
  NS_LOG_PARAM ("(" << i << ")");
896
  NS_LOG_PARAMS (this << i);
906
  Ptr<Ipv4Interface> interface = GetInterface (i);
897
  Ptr<Ipv4Interface> interface = GetInterface (i);
907
  return interface->IsUp ();
898
  return interface->IsUp ();
908
}
899
}
 Lines 911-917   Ipv4L3Protocol::SetUp (uint32_t i) Link Here 
911
Ipv4L3Protocol::SetUp (uint32_t i)
902
Ipv4L3Protocol::SetUp (uint32_t i)
912
{
903
{
913
  NS_LOG_FUNCTION;
904
  NS_LOG_FUNCTION;
914
  NS_LOG_PARAM ("(" << i << ")");
905
  NS_LOG_PARAMS (this << i);
915
  Ptr<Ipv4Interface> interface = GetInterface (i);
906
  Ptr<Ipv4Interface> interface = GetInterface (i);
916
  interface->SetUp ();
907
  interface->SetUp ();
917
908
 Lines 930-936   Ipv4L3Protocol::SetDown (uint32_t ifaceI Link Here 
930
Ipv4L3Protocol::SetDown (uint32_t ifaceIndex)
921
Ipv4L3Protocol::SetDown (uint32_t ifaceIndex)
931
{
922
{
932
  NS_LOG_FUNCTION;
923
  NS_LOG_FUNCTION;
933
  NS_LOG_PARAM ("(" << ifaceIndex << ")");
924
  NS_LOG_PARAMS (this << ifaceIndex);
934
  Ptr<Ipv4Interface> interface = GetInterface (ifaceIndex);
925
  Ptr<Ipv4Interface> interface = GetInterface (ifaceIndex);
935
  interface->SetDown ();
926
  interface->SetDown ();
936
927
(-)a/src/internet-node/ipv4-loopback-interface.cc (-1 / +1 lines)
 Lines 47-53   Ipv4LoopbackInterface::SendTo (Packet pa Link Here 
47
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
47
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
48
{
48
{
49
  NS_LOG_FUNCTION;
49
  NS_LOG_FUNCTION;
50
  NS_LOG_PARAM ("(" << &packet << ", " << dest << ")");
50
  NS_LOG_PARAMS (this << &packet << dest);
51
51
52
  Ptr<Ipv4L3Protocol> ipv4 = 
52
  Ptr<Ipv4L3Protocol> ipv4 = 
53
    m_node->QueryInterface<Ipv4L3Protocol> (Ipv4L3Protocol::iid);
53
    m_node->QueryInterface<Ipv4L3Protocol> (Ipv4L3Protocol::iid);
(-)a/src/internet-node/ipv4-static-routing.cc (-3 / +2 lines)
 Lines 522-529   Ipv4StaticRouting::RequestRoute ( Link Here 
522
  RouteReplyCallback routeReply)
522
  RouteReplyCallback routeReply)
523
{
523
{
524
  NS_LOG_FUNCTION;
524
  NS_LOG_FUNCTION;
525
  NS_LOG_PARAM ("(" << ifIndex << &ipHeader << ", " << &packet << ", " << 
525
  NS_LOG_PARAMS (this << ifIndex << &ipHeader << &packet << &routeReply);
526
    &routeReply << ")");
527
526
528
  NS_LOG_LOGIC ("source = " << ipHeader.GetSource ());
527
  NS_LOG_LOGIC ("source = " << ipHeader.GetSource ());
529
528
 Lines 576-582   Ipv4StaticRouting::RequestIfIndex (Ipv4A Link Here 
576
Ipv4StaticRouting::RequestIfIndex (Ipv4Address destination, uint32_t& ifIndex)
575
Ipv4StaticRouting::RequestIfIndex (Ipv4Address destination, uint32_t& ifIndex)
577
{
576
{
578
  NS_LOG_FUNCTION;
577
  NS_LOG_FUNCTION;
579
  NS_LOG_PARAM ("(" << destination << ", " << &ifIndex << ")");
578
  NS_LOG_PARAMS (this << destination << &ifIndex);
580
//
579
//
581
// First, see if this is a multicast packet we have a route for.  If we
580
// First, see if this is a multicast packet we have a route for.  If we
582
// have a route, then send the packet down each of the specified interfaces.
581
// have a route, then send the packet down each of the specified interfaces.
(-)a/src/internet-node/udp-l4-protocol.cc (-10 / +7 lines)
 Lines 83-89   UdpL4Protocol::Allocate (Ipv4Address add Link Here 
83
UdpL4Protocol::Allocate (Ipv4Address address)
83
UdpL4Protocol::Allocate (Ipv4Address address)
84
{
84
{
85
  NS_LOG_FUNCTION;
85
  NS_LOG_FUNCTION;
86
  NS_LOG_PARAM ("(" << address << ")");
86
  NS_LOG_PARAMS (this << address);
87
  return m_endPoints->Allocate (address);
87
  return m_endPoints->Allocate (address);
88
}
88
}
89
89
 Lines 91-97   UdpL4Protocol::Allocate (uint16_t port) Link Here 
91
UdpL4Protocol::Allocate (uint16_t port)
91
UdpL4Protocol::Allocate (uint16_t port)
92
{
92
{
93
  NS_LOG_FUNCTION;
93
  NS_LOG_FUNCTION;
94
  NS_LOG_PARAM ("(" << port << ")");
94
  NS_LOG_PARAMS (this << port);
95
  return m_endPoints->Allocate (port);
95
  return m_endPoints->Allocate (port);
96
}
96
}
97
97
 Lines 99-105   UdpL4Protocol::Allocate (Ipv4Address add Link Here 
99
UdpL4Protocol::Allocate (Ipv4Address address, uint16_t port)
99
UdpL4Protocol::Allocate (Ipv4Address address, uint16_t port)
100
{
100
{
101
  NS_LOG_FUNCTION;
101
  NS_LOG_FUNCTION;
102
  NS_LOG_PARAM ("(" << address << ", " << port << ")");
102
  NS_LOG_PARAMS (this << address << port);
103
  return m_endPoints->Allocate (address, port);
103
  return m_endPoints->Allocate (address, port);
104
}
104
}
105
Ipv4EndPoint *
105
Ipv4EndPoint *
 Lines 107-114   UdpL4Protocol::Allocate (Ipv4Address loc Link Here 
107
               Ipv4Address peerAddress, uint16_t peerPort)
107
               Ipv4Address peerAddress, uint16_t peerPort)
108
{
108
{
109
  NS_LOG_FUNCTION; 
109
  NS_LOG_FUNCTION; 
110
  NS_LOG_PARAM ("(" << localAddress << ", " << localPort << ", " << 
110
  NS_LOG_PARAMS (this << localAddress << localPort << peerAddress << peerPort);
111
    peerAddress << ", " << peerPort << ")");
112
  return m_endPoints->Allocate (localAddress, localPort,
111
  return m_endPoints->Allocate (localAddress, localPort,
113
                                peerAddress, peerPort);
112
                                peerAddress, peerPort);
114
}
113
}
 Lines 117-123   UdpL4Protocol::DeAllocate (Ipv4EndPoint Link Here 
117
UdpL4Protocol::DeAllocate (Ipv4EndPoint *endPoint)
116
UdpL4Protocol::DeAllocate (Ipv4EndPoint *endPoint)
118
{
117
{
119
  NS_LOG_FUNCTION; 
118
  NS_LOG_FUNCTION; 
120
  NS_LOG_PARAM ("(" << endPoint << ")");
119
  NS_LOG_PARAMS (this << endPoint);
121
  m_endPoints->DeAllocate (endPoint);
120
  m_endPoints->DeAllocate (endPoint);
122
}
121
}
123
122
 Lines 128-135   UdpL4Protocol::Receive(Packet& packet, Link Here 
128
                       Ptr<Ipv4Interface> interface)
127
                       Ptr<Ipv4Interface> interface)
129
{
128
{
130
  NS_LOG_FUNCTION; 
129
  NS_LOG_FUNCTION; 
131
  NS_LOG_PARAM ("(" << &packet << ", " << source << ", " << destination << 
130
  NS_LOG_PARAMS (this << &packet << source << destination);
132
    ")");
133
131
134
  UdpHeader udpHeader;
132
  UdpHeader udpHeader;
135
  packet.RemoveHeader (udpHeader);
133
  packet.RemoveHeader (udpHeader);
 Lines 149-156   UdpL4Protocol::Send (Packet packet, Link Here 
149
           uint16_t sport, uint16_t dport)
147
           uint16_t sport, uint16_t dport)
150
{
148
{
151
  NS_LOG_FUNCTION; 
149
  NS_LOG_FUNCTION; 
152
  NS_LOG_PARAM ("(" << &packet << ", " << saddr << ", " << daddr << ", " << 
150
  NS_LOG_PARAMS (this << &packet << saddr << daddr << sport << dport);
153
    sport << ", " << dport << ")");
154
151
155
  UdpHeader udpHeader;
152
  UdpHeader udpHeader;
156
  udpHeader.SetDestination (dport);
153
  udpHeader.SetDestination (dport);
(-)a/src/internet-node/udp-socket.cc (-7 / +7 lines)
 Lines 117-123   UdpSocket::Bind (const Address &address) Link Here 
117
UdpSocket::Bind (const Address &address)
117
UdpSocket::Bind (const Address &address)
118
{
118
{
119
  NS_LOG_FUNCTION;
119
  NS_LOG_FUNCTION;
120
  NS_LOG_PARAM("(" << address << ")");
120
  NS_LOG_PARAMS (this << address);
121
121
122
  if (!InetSocketAddress::IsMatchingType (address))
122
  if (!InetSocketAddress::IsMatchingType (address))
123
    {
123
    {
 Lines 175-181   UdpSocket::Connect(const Address & addre Link Here 
175
UdpSocket::Connect(const Address & address)
175
UdpSocket::Connect(const Address & address)
176
{
176
{
177
  NS_LOG_FUNCTION;
177
  NS_LOG_FUNCTION;
178
  NS_LOG_PARAM ("(" << address << ")");
178
  NS_LOG_PARAMS (this << address);
179
  Ipv4Route routeToDest;
179
  Ipv4Route routeToDest;
180
  InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
180
  InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
181
  m_defaultAddress = transport.GetIpv4 ();
181
  m_defaultAddress = transport.GetIpv4 ();
 Lines 190-196   UdpSocket::Send (const Packet &p) Link Here 
190
UdpSocket::Send (const Packet &p)
190
UdpSocket::Send (const Packet &p)
191
{
191
{
192
  NS_LOG_FUNCTION;
192
  NS_LOG_FUNCTION;
193
  NS_LOG_PARAM ("(" << &p << ")");
193
  NS_LOG_PARAMS (this << &p);
194
194
195
  if (!m_connected)
195
  if (!m_connected)
196
    {
196
    {
 Lines 226-232   UdpSocket::DoSendTo (const Packet &p, co Link Here 
226
UdpSocket::DoSendTo (const Packet &p, const Address &address)
226
UdpSocket::DoSendTo (const Packet &p, const Address &address)
227
{
227
{
228
  NS_LOG_FUNCTION;
228
  NS_LOG_FUNCTION;
229
  NS_LOG_PARAM ("(" << &p << ", " << address << ")");
229
  NS_LOG_PARAMS (this << &p << address);
230
230
231
  if (!m_connected)
231
  if (!m_connected)
232
    {
232
    {
 Lines 248-254   UdpSocket::DoSendTo (const Packet &p, Ip Link Here 
248
UdpSocket::DoSendTo (const Packet &p, Ipv4Address dest, uint16_t port)
248
UdpSocket::DoSendTo (const Packet &p, Ipv4Address dest, uint16_t port)
249
{
249
{
250
  NS_LOG_FUNCTION;
250
  NS_LOG_FUNCTION;
251
  NS_LOG_PARAM ("(" << &p << ", " << dest << ", " << port << ")");
251
  NS_LOG_PARAMS (this << &p << dest << port);
252
252
253
  Ipv4Route routeToDest;
253
  Ipv4Route routeToDest;
254
254
 Lines 308-314   UdpSocket::SendTo(const Address &address Link Here 
308
UdpSocket::SendTo(const Address &address, const Packet &p)
308
UdpSocket::SendTo(const Address &address, const Packet &p)
309
{
309
{
310
  NS_LOG_FUNCTION;
310
  NS_LOG_FUNCTION;
311
  NS_LOG_PARAM ("(" << address << ", " << &p << ")");
311
  NS_LOG_PARAMS (this << address << &p);
312
  InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
312
  InetSocketAddress transport = InetSocketAddress::ConvertFrom (address);
313
  Ipv4Address ipv4 = transport.GetIpv4 ();
313
  Ipv4Address ipv4 = transport.GetIpv4 ();
314
  uint16_t port = transport.GetPort ();
314
  uint16_t port = transport.GetPort ();
 Lines 319-325   UdpSocket::ForwardUp (const Packet &pack Link Here 
319
UdpSocket::ForwardUp (const Packet &packet, Ipv4Address ipv4, uint16_t port)
319
UdpSocket::ForwardUp (const Packet &packet, Ipv4Address ipv4, uint16_t port)
320
{
320
{
321
  NS_LOG_FUNCTION;
321
  NS_LOG_FUNCTION;
322
  NS_LOG_PARAM ("(" << &packet << ", " << ipv4 << ", " << port << ")");
322
  NS_LOG_PARAMS (this << &packet << ipv4 << port);
323
323
324
  if (m_shutdownRecv)
324
  if (m_shutdownRecv)
325
    {
325
    {
(-)a/src/node/channel.cc (-2 / +2 lines)
 Lines 36-42   Channel::Channel (std::string name) Link Here 
36
  : m_name(name)
36
  : m_name(name)
37
{
37
{
38
  NS_LOG_FUNCTION;
38
  NS_LOG_FUNCTION;
39
  NS_LOG_PARAM ("(" << name << ")");
39
  NS_LOG_PARAMS (this << name);
40
  SetInterfaceId (Channel::iid);
40
  SetInterfaceId (Channel::iid);
41
}
41
}
42
42
 Lines 49-55   Channel::SetName(std::string name) Link Here 
49
Channel::SetName(std::string name)
49
Channel::SetName(std::string name)
50
{
50
{
51
  NS_LOG_FUNCTION;
51
  NS_LOG_FUNCTION;
52
  NS_LOG_PARAM ("(" << name << ")");
52
  NS_LOG_PARAMS (this << name);
53
  m_name = name;
53
  m_name = name;
54
}
54
}
55
55
(-)a/src/node/drop-tail-queue.cc (-4 / +4 lines)
 Lines 45-51   DropTailQueue::SetMaxPackets (uint32_t n Link Here 
45
DropTailQueue::SetMaxPackets (uint32_t npackets)
45
DropTailQueue::SetMaxPackets (uint32_t npackets)
46
{
46
{
47
  NS_LOG_FUNCTION;
47
  NS_LOG_FUNCTION;
48
  NS_LOG_PARAM ("(" << npackets << ")");
48
  NS_LOG_PARAMS (this << npackets);
49
  m_maxPackets = npackets;
49
  m_maxPackets = npackets;
50
}
50
}
51
51
 Lines 61-67   DropTailQueue::DoEnqueue (const Packet& Link Here 
61
DropTailQueue::DoEnqueue (const Packet& p)
61
DropTailQueue::DoEnqueue (const Packet& p)
62
{
62
{
63
  NS_LOG_FUNCTION;
63
  NS_LOG_FUNCTION;
64
  NS_LOG_PARAM ("(" << &p << ")");
64
  NS_LOG_PARAMS (this << &p);
65
65
66
  if (m_packets.size () >= m_maxPackets)
66
  if (m_packets.size () >= m_maxPackets)
67
    {
67
    {
 Lines 78-84   DropTailQueue::DoDequeue (Packet& p) Link Here 
78
DropTailQueue::DoDequeue (Packet& p)
78
DropTailQueue::DoDequeue (Packet& p)
79
{
79
{
80
  NS_LOG_FUNCTION;
80
  NS_LOG_FUNCTION;
81
  NS_LOG_PARAM ("(" << &p << ")");
81
  NS_LOG_PARAMS (this << &p);
82
82
83
  if (m_packets.empty()) 
83
  if (m_packets.empty()) 
84
    {
84
    {
 Lines 98-104   DropTailQueue::DoPeek (Packet& p) Link Here 
98
DropTailQueue::DoPeek (Packet& p)
98
DropTailQueue::DoPeek (Packet& p)
99
{
99
{
100
  NS_LOG_FUNCTION;
100
  NS_LOG_FUNCTION;
101
  NS_LOG_PARAM ("(" << &p << ")");
101
  NS_LOG_PARAMS (this << &p);
102
102
103
  if (m_packets.empty()) 
103
  if (m_packets.empty()) 
104
    {
104
    {
(-)a/src/node/queue.cc (-4 / +4 lines)
 Lines 139-145   Queue::Enqueue (const Packet& p) Link Here 
139
Queue::Enqueue (const Packet& p)
139
Queue::Enqueue (const Packet& p)
140
{
140
{
141
  NS_LOG_FUNCTION;
141
  NS_LOG_FUNCTION;
142
  NS_LOG_PARAM ("(" << &p << ")");
142
  NS_LOG_PARAMS (this << &p);
143
  NS_LOG_LOGIC ("m_traceEnqueue (p)");
143
  NS_LOG_LOGIC ("m_traceEnqueue (p)");
144
144
145
  m_traceEnqueue (p);
145
  m_traceEnqueue (p);
 Lines 157-163   Queue::Dequeue (Packet &p) Link Here 
157
Queue::Dequeue (Packet &p)
157
Queue::Dequeue (Packet &p)
158
{
158
{
159
  NS_LOG_FUNCTION;
159
  NS_LOG_FUNCTION;
160
  NS_LOG_PARAM ("(" << &p << ")");
160
  NS_LOG_PARAMS (this << &p);
161
161
162
  bool retval = DoDequeue (p);
162
  bool retval = DoDequeue (p);
163
163
 Lines 189-195   Queue::Peek (Packet &p) Link Here 
189
Queue::Peek (Packet &p)
189
Queue::Peek (Packet &p)
190
{
190
{
191
  NS_LOG_FUNCTION;
191
  NS_LOG_FUNCTION;
192
  NS_LOG_PARAM ("(" << &p << ")");
192
  NS_LOG_PARAMS (this << &p);
193
  return DoPeek (p);
193
  return DoPeek (p);
194
}
194
}
195
195
 Lines 264-270   Queue::Drop (const Packet& p) Link Here 
264
Queue::Drop (const Packet& p)
264
Queue::Drop (const Packet& p)
265
{
265
{
266
  NS_LOG_FUNCTION;
266
  NS_LOG_FUNCTION;
267
  NS_LOG_PARAM ("(" << &p << ")");
267
  NS_LOG_PARAMS (this << &p);
268
268
269
  m_nTotalDroppedPackets++;
269
  m_nTotalDroppedPackets++;
270
  m_nTotalDroppedBytes += p.GetSize ();
270
  m_nTotalDroppedBytes += p.GetSize ();
(-)a/src/routing/global-routing/candidate-queue.cc (-1 / +1 lines)
 Lines 52-58   CandidateQueue::Push (SPFVertex *vNew) Link Here 
52
CandidateQueue::Push (SPFVertex *vNew)
52
CandidateQueue::Push (SPFVertex *vNew)
53
{
53
{
54
  NS_LOG_FUNCTION;
54
  NS_LOG_FUNCTION;
55
  NS_LOG_PARAM ("(" << vNew << ")");
55
  NS_LOG_PARAMS (this << vNew);
56
56
57
  CandidateList_t::iterator i = m_candidates.begin ();  
57
  CandidateList_t::iterator i = m_candidates.begin ();  
58
58
(-)a/src/routing/global-routing/global-route-manager-impl.cc (-1 / +1 lines)
 Lines 970-976   GlobalRouteManagerImpl::SPFCalculate (Ip Link Here 
970
GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
970
GlobalRouteManagerImpl::SPFCalculate (Ipv4Address root)
971
{
971
{
972
  NS_LOG_FUNCTION;
972
  NS_LOG_FUNCTION;
973
  NS_LOG_PARAM ("(" << root << ")");
973
  NS_LOG_PARAMS (this << root);
974
974
975
  SPFVertex *v;
975
  SPFVertex *v;
976
//
976
//
(-)a/src/routing/global-routing/global-router-interface.cc (-4 / +2 lines)
 Lines 58-65   GlobalRoutingLinkRecord::GlobalRoutingLi Link Here 
58
  m_metric (metric)
58
  m_metric (metric)
59
{
59
{
60
  NS_LOG_FUNCTION;
60
  NS_LOG_FUNCTION;
61
  NS_LOG_PARAM ("(" << linkType << ", " << linkId << ", " << linkData << 
61
  NS_LOG_PARAMS (this << linkType << linkId << linkData << metric);
62
    ", " << metric << ")");
63
}
62
}
64
63
65
GlobalRoutingLinkRecord::~GlobalRoutingLinkRecord ()
64
GlobalRoutingLinkRecord::~GlobalRoutingLinkRecord ()
 Lines 157-164   GlobalRoutingLSA::GlobalRoutingLSA ( Link Here 
157
  m_status(status)
156
  m_status(status)
158
{
157
{
159
  NS_LOG_FUNCTION;
158
  NS_LOG_FUNCTION;
160
  NS_LOG_PARAM ("(" << status << ", " << linkStateId << ", " << 
159
  NS_LOG_PARAMS (this << status << linkStateId << advertisingRtr);
161
    advertisingRtr << ")");
162
}
160
}
163
161
164
GlobalRoutingLSA::GlobalRoutingLSA (GlobalRoutingLSA& lsa)
162
GlobalRoutingLSA::GlobalRoutingLSA (GlobalRoutingLSA& lsa)

Return to bug 79