namespace senf {
- struct MIHTLVLengthException : public senf::Exception
- {
- MIHTLVLengthException()
- : senf::Exception("MIHTLVLengthException") {}
- };
-
-
class MIHTLVLengthParser
: public detail::packet::IntParserOps<MIHTLVLengthParser, boost::uint32_t>,
public PacketParserBase
\param v maximum value of length field
*/
void maxLength(MIHTLVLengthParser::value_type maxl) const;
+
+ void validateType(boost::uint8_t type) const;
+ void validateTypeLength(boost::uint8_t type, MIHTLVLengthParser::value_type length) const;
};
}
static type_t::value_type const typeId = 1;
void dump(std::ostream & os) const;
+ void validate() const;
};
/** \brief Parser for 802.21 destination MIHF_ID TLV
}
static type_t::value_type const typeId = 2;
void dump(std::ostream & os) const;
+ void validate() const;
};
/** \brief Parser for 802.21 Status TLV
}
static type_t::value_type const typeId = 3;
void dump(std::ostream & os) const; ///< dump string representation to given stream
+ void validate() const;
enum StatusCode {
Success, UnspecifiedFailure, Rejected, AuthorizationFailure, NetworkError };
}
static type_t::value_type const typeId = 11;
void dump(std::ostream & os) const; ///< dump string representation to given stream
- std::pair<bool, std::string> validate() const;
+ void validate() const;
enum RequestCode { Registration, ReRegistration };
};
}
static type_t::value_type const typeId = 12;
void dump(std::ostream & os) const; ///< dump string representation to given stream
- std::pair<bool, std::string> validate() const;
+ void validate() const;
};
}