Skip to content

Commit

Permalink
lp: add TxSequence field
Browse files Browse the repository at this point in the history
refs #3931

Change-Id: Ie388ec48494b8ac506b31dc42de8777a8cd28989
  • Loading branch information
eric135 committed Apr 6, 2017
1 parent 6336c5f commit 1de6be6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/lp/fields.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ typedef detail::FieldDecl<field_location_tags::Header,
true> AckField;
BOOST_CONCEPT_ASSERT((Field<AckField>));

typedef detail::FieldDecl<field_location_tags::Header,
Sequence,
tlv::TxSequence> TxSequenceField;
BOOST_CONCEPT_ASSERT((Field<TxSequenceField>));

/**
* 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.
Expand All @@ -101,7 +106,8 @@ typedef boost::mpl::set<
CachePolicyField,
IncomingFaceIdField,
CongestionMarkField,
AckField
AckField,
TxSequenceField
> FieldSet;

} // namespace lp
Expand Down
3 changes: 2 additions & 1 deletion src/lp/tlv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ enum {
CachePolicyType = 821,
IncomingFaceId = 817,
CongestionMark = 832,
Ack = 836
Ack = 836,
TxSequence = 840
};

enum {
Expand Down

0 comments on commit 1de6be6

Please sign in to comment.