ieee802154_base::PcapBase Class Reference

Inheritance diagram for ieee802154_base::PcapBase:

Inheritance graph
[legend]

Detailed Description

Base class for PcapFile and PcapPort.

Definition at line 96 of file ieee802154_base.py.


Public Member Functions

def pcap_get_header
 create pcap header file
def pcap_parse_data
 parse the entire data of a capture file.

Static Public Attributes

string PCAP_HEADER = "LHHLLLL"
 Cstruct format string for pcap file header for details see http://wiki.wireshark.org/Development/LibpcapFileFormat.
string PCAP_PACKET = "QLL"
 Cstruct format string for pcap packet header.

Member Function Documentation

def ieee802154_base::PcapBase::pcap_get_header (   self  ) 

create pcap header file

Reimplemented in ieee802154_io::FileIn.

Definition at line 115 of file ieee802154_base.py.

def ieee802154_base::PcapBase::pcap_parse_data (   self,
  data 
)

parse the entire data of a capture file.

Return values:
hdr the header structure of the file
ret a list containing the packets as raw strings

Definition at line 131 of file ieee802154_base.py.


Field Documentation

string ieee802154_base::PcapBase::PCAP_HEADER = "LHHLLLL" [static]

Cstruct format string for pcap file header for details see http://wiki.wireshark.org/Development/LibpcapFileFormat.

typedef struct pcap_hdr_s { guint32 magic_number; /* magic number */ guint16 version_major; /* major version number */ guint16 version_minor; /* minor version number */ gint32 thiszone; /* GMT to local correction */ guint32 sigfigs; /* accuracy of timestamps */ guint32 snaplen; /* max length of captured packets, in octets */ guint32 network; /* data link type */ } pcap_hdr_t;

Definition at line 112 of file ieee802154_base.py.

string ieee802154_base::PcapBase::PCAP_PACKET = "QLL" [static]

Cstruct format string for pcap packet header.

Definition at line 98 of file ieee802154_base.py.


This documentation for µracoli was generated on 21 Jan 2010 by  doxygen 1.5.5