boost::uint16_t sequenceNumber() const {
return (uint16_t)(seqNumber_2()) << 4 | seqNumber_1();
};
+
+ void sequenceNumber(boost::uint16_t sn);
};
/** \brief WLAN Management frame packet
\par Packet type (typedef):
- \refWLANPacket_MgtFrame
+ \ref WLANPacket_MgtFrame
\par Fields:
\ref WLANPacket_MgtFrameParser
static void dump(packet p, std::ostream &os);
};
+ /** \brief WLAN Management frame packet typedef
+ \ingroup protocolbundle_80211
+ */
typedef WLANPacket_MgtFrameType::packet WLANPacket_MgtFrame;
///////////////////////////////////////////////////////////////////////////
static void dump(packet p, std::ostream &os);
};
+ /** \brief WLAN Control frame packet typedef
+ \ingroup protocolbundle_80211
+ */
typedef WLANPacket_CtrlFrameType::packet WLANPacket_CtrlFrame;
///////////////////////////////////////////////////////////////////////////
return (uint16_t)(seqNumber_2()) << 4 | seqNumber_1();
};
+ void sequenceNumber(boost::uint16_t sn);
+
// TODO fourth address field in case of WDS
// SENF_PARSER_PRIVATE_VARIANT (wds_, dsBits,
// ( novalue ( disable_addr4, VoidPacketParser ))
using mixin::initSize;
using mixin::nextPacketRange;
- static factory_t nextPacketType(packet p) {
- return p->subtype() == 0 || p->subtype() == 8
- ? LlcSnapPacket::factory()
+ static factory_t nextPacketType(packet p) {
+ return p->subtype() == 0 || p->subtype() == 8
+ ? LlcSnapPacket::factory()
: no_factory();
}
static void dump(packet p, std::ostream &os);
};
+ /** \brief WLAN Data frame packet typedef
+ \ingroup protocolbundle_80211
+ */
typedef WLANPacket_DataFrameType::packet WLANPacket_DataFrame;
}