X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FInformationElements.hh;h=31e506fed2b6b727013bf7685a01161b00b77851;hb=22f72ccea5685d22d33f8c38b5ffb12dcf51928d;hp=a40691c2b506400f4c2b1628d533222d8dbfec11;hpb=6aa7b87666f6f06e6e5cff5eb9b3d357e303abcd;p=senf.git diff --git a/senf/Packets/80211Bundle/InformationElements.hh b/senf/Packets/80211Bundle/InformationElements.hh index a40691c..31e506f 100644 --- a/senf/Packets/80211Bundle/InformationElements.hh +++ b/senf/Packets/80211Bundle/InformationElements.hh @@ -41,6 +41,8 @@ namespace senf { SENF_PARSER_FIELD ( type, UInt8Parser ); SENF_PARSER_FIELD ( length, UInt8Parser ); SENF_PARSER_FINALIZE ( WLANInfoElementParser ); + + typedef GenericTLVParserRegistry Registry; }; typedef GenericTLVParserBase WLANGenericInfoElementParser; @@ -56,9 +58,11 @@ namespace senf { SENF_PARSER_FINALIZE ( WLANSSIDInfoElementParser ); SENF_PARSER_INIT() { - type() = TYPEID; + type() = typeId; } - static const type_t::value_type TYPEID = 0x00u; + static const type_t::value_type typeId = 0x00u; + + void dump(std::ostream & os) const; }; struct WLANSupportedRatesInfoElementParser @@ -72,9 +76,11 @@ namespace senf { SENF_PARSER_FINALIZE ( WLANSupportedRatesInfoElementParser ); SENF_PARSER_INIT() { - type() = TYPEID; + type() = typeId; } - static const type_t::value_type TYPEID = 0x01u; + static const type_t::value_type typeId = 0x01u; + + void dump(std::ostream & os) const; }; struct WLANPowerConstraintInfoElementParser @@ -86,10 +92,12 @@ namespace senf { SENF_PARSER_FINALIZE ( WLANPowerConstraintInfoElementParser ); SENF_PARSER_INIT() { - type() = TYPEID; + type() = typeId; length() = 1; } - static const type_t::value_type TYPEID = 0x20u; + static const type_t::value_type typeId = 0x20u; + + void dump(std::ostream & os) const; }; }