face: link layer byte counts in FaceCounters
This commit declares the counters, but does not increment the new counters.
refs #1729
Change-Id: I9cd136fc65955192a92d567629a9aba2df8090f3
diff --git a/daemon/fw/forwarder.cpp b/daemon/fw/forwarder.cpp
index 0e2f0d2..a57a756 100644
--- a/daemon/fw/forwarder.cpp
+++ b/daemon/fw/forwarder.cpp
@@ -59,7 +59,7 @@
NFD_LOG_DEBUG("onIncomingInterest face=" << inFace.getId() <<
" interest=" << interest.getName());
const_cast<Interest&>(interest).setIncomingFaceId(inFace.getId());
- m_counters.getNInInterests() ++;
+ ++m_counters.getNInInterests();
// /localhost scope control
bool isViolatingLocalhost = !inFace.isLocal() &&
@@ -187,7 +187,7 @@
// send Interest
outFace.sendInterest(*interest);
- m_counters.getNOutInterests() ++;
+ ++m_counters.getNOutInterests();
}
void
@@ -227,7 +227,7 @@
// receive Data
NFD_LOG_DEBUG("onIncomingData face=" << inFace.getId() << " data=" << data.getName());
const_cast<Data&>(data).setIncomingFaceId(inFace.getId());
- m_counters.getNInDatas() ++;
+ ++m_counters.getNInDatas();
// /localhost scope control
bool isViolatingLocalhost = !inFace.isLocal() &&
@@ -331,7 +331,7 @@
// send Data
outFace.sendData(data);
- m_counters.getNOutDatas() ++;
+ ++m_counters.getNOutDatas();
}
static inline bool