[ndnSIM] lp, face: Adding HopCount as an lp packet tag and properly decoding lp::HopCountTagField into tag
Change-Id: I2c25bcf29f3928049d1040a3e421e1c7151b3ba2
diff --git a/src/lp/fields.hpp b/src/lp/fields.hpp
index 5612b16..db73cef 100644
--- a/src/lp/fields.hpp
+++ b/src/lp/fields.hpp
@@ -84,6 +84,11 @@
tlv::TxSequence> TxSequenceField;
BOOST_CONCEPT_ASSERT((Field<TxSequenceField>));
+typedef FieldDecl<field_location_tags::Header,
+ uint64_t,
+ tlv::HopCountTag> HopCountTagField;
+BOOST_CONCEPT_ASSERT((Field<HopCountTagField>));
+
/**
* The value of the wire encoded field is the data between the provided iterators. During
* encoding, the data is copied from the Buffer into the wire buffer.
@@ -107,7 +112,8 @@
IncomingFaceIdField,
CongestionMarkField,
AckField,
- TxSequenceField
+ TxSequenceField,
+ HopCountTagField
> FieldSet;
} // namespace lp