80221Bundle: added static const etherType member to MIHPacketType
[senf.git] / senf / Packets / 80221Bundle / TLVParser.hh
index ce40481..0fd0a71 100644 (file)
@@ -41,7 +41,8 @@ namespace senf {
           : senf::Exception("MIHTLVLengthException") {}
     };
 
-    struct InvalidMIHPacketException : public senf::Exception {
+    struct InvalidMIHPacketException : public senf::Exception
+    {
         InvalidMIHPacketException(std::string const & description)
             : senf::Exception("Invalid MIH message: ") { append(description); }
     };
@@ -133,7 +134,8 @@ namespace senf {
          */
         void maxLength(MIHTLVLengthParser::value_type maxl) const;
 
-        void validateTL(boost::uint8_t type, MIHTLVLengthParser::value_type length) const;
+        void validateType(boost::uint8_t type) const;
+        void validateTypeLength(boost::uint8_t type, MIHTLVLengthParser::value_type length) const;
     };