X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FInformationElements.hh;h=d8bce47111c328a4ca0f0ade2040c9ae5f931a81;hb=9bc655e14d2d8c204ed835896cb51e42d49bd68f;hp=af497b23c80201fd41e9e1cd55561bcad2628dce;hpb=9ffdaae4804503c4f36a53747c852a87ee626b9e;p=senf.git diff --git a/senf/Packets/80211Bundle/InformationElements.hh b/senf/Packets/80211Bundle/InformationElements.hh index af497b2..d8bce47 100644 --- a/senf/Packets/80211Bundle/InformationElements.hh +++ b/senf/Packets/80211Bundle/InformationElements.hh @@ -41,10 +41,12 @@ namespace senf { SENF_PARSER_FIELD ( type, UInt8Parser ); SENF_PARSER_FIELD ( length, UInt8Parser ); SENF_PARSER_FINALIZE ( WLANInfoElementParser ); + + typedef GenericTLVParserRegistry Registry; }; typedef GenericTLVParserBase WLANGenericInfoElementParser; - + struct WLANSSIDInfoElementParser : public WLANInfoElementParser { @@ -54,33 +56,33 @@ namespace senf { SENF_PARSER_GOTO ( length ); SENF_PARSER_FIELD ( value, StringParser ); SENF_PARSER_FINALIZE ( WLANSSIDInfoElementParser ); - + SENF_PARSER_INIT() { type() = typeId; - } + } static const type_t::value_type typeId = 0x00u; - + void dump(std::ostream & os) const; }; - + struct WLANSupportedRatesInfoElementParser : public WLANInfoElementParser { # include SENF_PARSER() SENF_PARSER_INHERIT ( WLANInfoElementParser ); - // we just skip the value here. If somebody needs the information he has to implement - // this strange information element hisself. + // we just skip the value here. If somebody needs the information he has to implement + // this strange information element hisself. SENF_PARSER_SKIP ( length(), 0 ); SENF_PARSER_FINALIZE ( WLANSupportedRatesInfoElementParser ); - + SENF_PARSER_INIT() { type() = typeId; - } + } static const type_t::value_type typeId = 0x01u; - + void dump(std::ostream & os) const; }; - + struct WLANPowerConstraintInfoElementParser : public WLANInfoElementParser { @@ -88,13 +90,13 @@ namespace senf { SENF_PARSER_INHERIT ( WLANInfoElementParser ); SENF_PARSER_FIELD ( value, UInt8Parser ); SENF_PARSER_FINALIZE ( WLANPowerConstraintInfoElementParser ); - + SENF_PARSER_INIT() { type() = typeId; length() = 1; - } + } static const type_t::value_type typeId = 0x20u; - + void dump(std::ostream & os) const; }; }