X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2F80211Bundle%2FWLANPacket.hh;h=3138826198e38d07f7e3bb1c4e50ff6b2db7ac8a;hb=5253ef73ebaea35a429b8a4ef35e4e4ead98ed0c;hp=52c71b53d0a70c47bf616c95d6f657790ca20f08;hpb=148834587eec2d0fcc0b87a7b3fa50644161aa1c;p=senf.git diff --git a/Packets/80211Bundle/WLANPacket.hh b/Packets/80211Bundle/WLANPacket.hh index 52c71b5..3138826 100644 --- a/Packets/80211Bundle/WLANPacket.hh +++ b/Packets/80211Bundle/WLANPacket.hh @@ -58,7 +58,9 @@ namespace senf //this is needed due to the goto in the WLANPacketParser. Don't know exactly why yet. SENF_PARSER_INIT() {} - boost::uint16_t sequenceNumber() const; + boost::uint16_t sequenceNumber() const { + return (uint16_t)(seqNumber_2()) << 4 | seqNumber_1(); + }; }; /** \brief Control frame parser @@ -136,7 +138,9 @@ namespace senf //this is needed to due to the goto in the WLANPacketParser. Don't know exactly why yet. SENF_PARSER_INIT() {} - boost::uint16_t sequenceNumber() const; + boost::uint16_t sequenceNumber() const { + return (uint16_t)(seqNumber_2()) << 4 | seqNumber_1(); + }; MACAddressParser receiverAddress() const { return addr1(); }; //ra is always addr1 MACAddressParser transmitterAddress() const { return addr2(); }; //ta is always addr2