lp: correct rules for whether an unknown field can be ignored
Add TLV-TYPE to exception output for unignorable unknown and unrepeatable fields
refs #3884
Change-Id: I52c6cc2b6b5363432d8cc5bf60407ccf6ece7dc0
diff --git a/src/lp/detail/field-info.cpp b/src/lp/detail/field-info.cpp
index fadd858..f2eca34 100644
--- a/src/lp/detail/field-info.cpp
+++ b/src/lp/detail/field-info.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2015 Regents of the University of California.
+ * Copyright (c) 2013-2016 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -65,10 +65,10 @@
boost::mpl::for_each<FieldSet>(boost::bind(ExtractFieldInfo(), this, _1));
if (!isRecognized) {
canIgnore = tlv::HEADER3_MIN <= tlvType && tlvType <= tlv::HEADER3_MAX &&
- (tlvType & 0x01) == 0x01;
+ (tlvType & 0x03) == 0x00;
}
}
} // namespace detail
} // namespace lp
-} // namespace ndn
\ No newline at end of file
+} // namespace ndn