[ndnSIM] lp, face: Adding HopCount as an lp packet tag and properly decoding lp::HopCountTagField into tag

Change-Id: I2c25bcf29f3928049d1040a3e421e1c7151b3ba2
diff --git a/src/face.cpp b/src/face.cpp
index 57b22fa..aaf8b63 100644
--- a/src/face.cpp
+++ b/src/face.cpp
@@ -305,6 +305,10 @@
 {
   addTagFromField<lp::IncomingFaceIdTag, lp::IncomingFaceIdField>(netPacket, lpPacket);
   addTagFromField<lp::CongestionMarkTag, lp::CongestionMarkField>(netPacket, lpPacket);
+
+  if (lpPacket.has<lp::HopCountTagField>()) {
+    netPacket.setTag(make_shared<lp::HopCountTag>(lpPacket.get<lp::HopCountTagField>() + 1));
+  }
 }
 
 void