#include <wscout_gui_ieee802_11_beacon_header.hh>
Public Types | |
enum | { protocol = Proto } |
typedef std::pair < protocol::id, const void * > | next_header |
typedef pcapxx::frame_descriptor < pcapxx::descriptor<> > | frame_descriptor |
enum | { header_margin = 2 } |
Public Member Functions | |
IEEE80211BeaconHeader (QWidget *parent=0) | |
virtual next_header | setup (const void *header, size_t caplen, const Trace &trace, const frame_descriptor &desc) |
virtual next_header | setup (const void *packet, size_t caplen, const Trace &trace, const frame_descriptor &desc)=0 |
QBoxLayout * | layout () |
Static Public Member Functions | |
static AbstractHeader * | allocator () |
static void | registerProtocol () |
Classes | |
struct | frame_body |
struct | frame_info_element |
typedef std::pair<protocol::id, const void*> wscout::gui::AbstractHeader::next_header [inherited] |
Identify this header's next header.
The first element specifies the next header's protocol. The second one points to the next header's beginning of data.
If there is no next protocol, use protocol::NONE. If the next protocol is unknown, use protocol::UNKNOWN.
typedef pcapxx::frame_descriptor< pcapxx::descriptor<> > wscout::gui::AbstractHeader::frame_descriptor [inherited] |
Frame descriptor type used by setup().
anonymous enum [inherited] |
wscout::gui::IEEE80211BeaconHeader::IEEE80211BeaconHeader | ( | QWidget * | parent = 0 |
) |
IEEE80211BeaconHeader::next_header wscout::gui::IEEE80211BeaconHeader::setup | ( | const void * | header, | |
size_t | caplen, | |||
const Trace & | trace, | |||
const frame_descriptor & | desc | |||
) | [virtual] |
AbstractHeader * wscout::gui::HeaderBase< Exact, Proto >::allocator | ( | ) | [inline, static, inherited] |
Allocate an instance of Exact
using new
.
Referenced by wscout::gui::HeaderBase< Exact, Proto >::registerProtocol().
void wscout::gui::HeaderBase< Exact, Proto >::registerProtocol | ( | ) | [inline, static, inherited] |
virtual next_header wscout::gui::AbstractHeader::setup | ( | const void * | packet, | |
size_t | caplen, | |||
const Trace & | trace, | |||
const frame_descriptor & | desc | |||
) | [pure virtual, inherited] |
Setup the widget for a specific packet.
This method is purely abstract. You must define it when subclassing.
[in] | packet | Pointer to the packet's begining. |
[in] | caplen | Number of availabe bytes for this packet. |
[in] | trace | Packet's corresponding gui::Trace. |
[in] | desc | Packet's corresponding frame descriptor. |
Referenced by wscout::gui::Packet::setup().
QBoxLayout * wscout::gui::HeaderFrame::layout | ( | ) | [inline, inherited] |
This protocol header widget's layout.
Referenced by IEEE80211BeaconHeader(), wscout::gui::IEEE80211Header::IEEE80211Header(), wscout::gui::IPv4Header::IPv4Header(), wscout::gui::IPv6Header::IPv6Header(), wscout::gui::LLCHeader::LLCHeader(), wscout::gui::PcapHeader::PcapHeader(), and wscout::gui::PHYHeader< Exact, Proto >::PHYHeader().