X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FPackets%2F80211Bundle%2FInformationElements.hh;h=21911d556810f622bee2bbe702ea4918841b1807;hb=eb2dc72ff79098515b03945c611955704b1babe3;hp=0b550f4f18ba35f8c1c56af4d11b08adbc2cda65;hpb=a3f9296f648c4991a1576d4200abfdc72788bc16;p=senf.git diff --git a/senf/Packets/80211Bundle/InformationElements.hh b/senf/Packets/80211Bundle/InformationElements.hh index 0b550f4..21911d5 100644 --- a/senf/Packets/80211Bundle/InformationElements.hh +++ b/senf/Packets/80211Bundle/InformationElements.hh @@ -45,6 +45,21 @@ namespace senf { typedef GenericTLVParserBase WLANGenericInfoElementParser; + struct WLANSSIDInfoElementParser + : public WLANInfoElementParser + { + # include SENF_PARSER() + SENF_PARSER_INHERIT ( WLANInfoElementParser ); + // the StringParser includes the length field so we have to go back + 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; + }; } ///////////////////////////////hh.e////////////////////////////////////////