#include <wscout_gui_pcap_header.hh>
Public Types | |
enum | { protocol = Proto } |
typedef std::pair < protocol::id, const void * > | next_header |
enum | { header_margin = 2 } |
Public Member Functions | |
PcapHeader (QWidget *parent=0) | |
virtual next_header | setup (const void *bytes, size_t caplen, const Trace &trace, const pcapxx::frame_descriptor &desc) |
QBoxLayout * | layout () |
Static Public Member Functions | |
static next_header | nextHeader (const Trace &t, const pcapxx::frame_descriptor &d) |
static AbstractHeader * | allocator () |
static void | registerProtocol () |
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.
anonymous enum [inherited] |
wscout::gui::PcapHeader::PcapHeader | ( | QWidget * | parent = 0 |
) | [inline] |
PcapHeader::next_header wscout::gui::PcapHeader::setup | ( | const void * | bytes, | |
size_t | caplen, | |||
const Trace & | trace, | |||
const pcapxx::frame_descriptor & | desc | |||
) | [virtual] |
Setup the widget for a given trace and packet.
Implements wscout::gui::AbstractHeader.
References nextHeader().
PcapHeader::next_header wscout::gui::PcapHeader::nextHeader | ( | const Trace & | t, | |
const pcapxx::frame_descriptor & | d | |||
) | [inline, static] |
Retrieve the next header's description.
References wscout::protocol::AVS_HEADER, wscout::protocol::IEEE802_11, wscout::protocol::PRISM_HEADER, wscout::gui::Trace::trace(), and wscout::protocol::UNKNOWN.
Referenced by setup().
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] |
QBoxLayout * wscout::gui::HeaderFrame::layout | ( | ) | [inline, inherited] |
This protocol header widget's layout.
Referenced by wscout::gui::IEEE80211BeaconHeader::IEEE80211BeaconHeader(), wscout::gui::IEEE80211Header::IEEE80211Header(), wscout::gui::IPv4Header::IPv4Header(), wscout::gui::IPv6Header::IPv6Header(), wscout::gui::LLCHeader::LLCHeader(), PcapHeader(), and wscout::gui::PHYHeader< Exact, Proto >::PHYHeader().