[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 ce3a834..bd3c7cb 100644
--- a/src/lp/fields.hpp
+++ b/src/lp/fields.hpp
@@ -94,6 +94,12 @@
PrefixAnnouncement,
tlv::PrefixAnnouncement> PrefixAnnouncementField;
BOOST_CONCEPT_ASSERT((Field<PrefixAnnouncementField>));
+
+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.
@@ -119,7 +125,8 @@
AckField,
TxSequenceField,
NonDiscoveryField,
- PrefixAnnouncementField
+ PrefixAnnouncementField,
+ HopCountTagField
> FieldSet;
} // namespace lp