Fix logging in Ipv4L3Protocol::AddInterface and Ipv4L3Protocol::Receive.
--- a/src/internet/model/ipv4-l3-protocol.cc Sat Aug 04 09:40:51 2012 -0700
+++ b/src/internet/model/ipv4-l3-protocol.cc Wed Aug 08 17:00:29 2012 +0200
@@ -267,7 +267,7 @@
uint32_t
Ipv4L3Protocol::AddInterface (Ptr<NetDevice> device)
{
- NS_LOG_FUNCTION (this << &device);
+ NS_LOG_FUNCTION (this << device);
Ptr<Node> node = GetObject<Node> ();
node->RegisterProtocolHandler (MakeCallback (&Ipv4L3Protocol::Receive, this),
@@ -434,7 +434,7 @@
Ipv4L3Protocol::Receive ( Ptr<NetDevice> device, Ptr<const Packet> p, uint16_t protocol, const Address &from,
const Address &to, NetDevice::PacketType packetType)
{
- NS_LOG_FUNCTION (this << &device << p << protocol << from);
+ NS_LOG_FUNCTION (this << device << p << protocol << from << to << packetType);
NS_LOG_LOGIC ("Packet from " << from << " received on node " <<
m_node->GetId ());