Adding more statistics collection (number of transmitted/received bytes
per "pit entry" and per face)
diff --git a/model/ccnx-net-device-face.cc b/model/ccnx-net-device-face.cc
index 23b5e97..95e45c2 100644
--- a/model/ccnx-net-device-face.cc
+++ b/model/ccnx-net-device-face.cc
@@ -88,7 +88,7 @@
CcnxL3Protocol::ETHERNET_FRAME_TYPE, m_netDevice, true/*promiscuous mode*/);
}
-void
+bool
CcnxNetDeviceFace::SendImpl (Ptr<Packet> packet)
{
NS_LOG_FUNCTION (this << packet);
@@ -98,8 +98,9 @@
<< m_netDevice->GetMtu ()
<< " for Ccnx; fragmentation not supported");
- m_netDevice->Send (packet, m_netDevice->GetBroadcast (),
- CcnxL3Protocol::ETHERNET_FRAME_TYPE);
+ bool ok = m_netDevice->Send (packet, m_netDevice->GetBroadcast (),
+ CcnxL3Protocol::ETHERNET_FRAME_TYPE);
+ return ok;
}
// callback