ieee802154::PcapFile Class Reference

Inheritance diagram for ieee802154::PcapFile:

Inheritance graph
[legend]

Detailed Description

Capture file reader.

This class reads packets from a capture file, that was previously stored with tshark/wireshark.

Todo:
This class reads the entire file (open()) at once. So it would be a good idea, to read the file block by block.

Definition at line 133 of file ieee802154.py.


Public Member Functions

def close
 close the file handle
def open
 Open and read a capture file.
def pcap_parse_data
 parse the entire data of a capture file.
def read_packet
 read a frame f
def set_channel
 Setting of a channel is is unsupported for a file.

Static Public Attributes

string PCAP_HEADER = "LHHLLLL"
 Cstruct format string for pcap file header.
string PCAP_PACKET = "QLL"
 Cstruct format string for pcap packet header.

Member Function Documentation

def ieee802154::PcapFile::close (   self  ) 

close the file handle

Definition at line 149 of file ieee802154.py.

def ieee802154::PcapFile::open (   self,
  fname 
)

Open and read a capture file.

Parameters:
fname name of the file

Definition at line 141 of file ieee802154.py.

def ieee802154::PcapFile::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 170 of file ieee802154.py.

def ieee802154::PcapFile::read_packet (   self  ) 

read a frame f

Definition at line 158 of file ieee802154.py.

def ieee802154::PcapFile::set_channel (   self,
  channel 
)

Setting of a channel is is unsupported for a file.

Definition at line 154 of file ieee802154.py.


Field Documentation

string ieee802154::PcapFile::PCAP_HEADER = "LHHLLLL" [static]

Cstruct format string for pcap file header.

Definition at line 135 of file ieee802154.py.

string ieee802154::PcapFile::PCAP_PACKET = "QLL" [static]

Cstruct format string for pcap packet header.

Definition at line 137 of file ieee802154.py.


This documentation for µracoli was generated on 6 Oct 2008 by  doxygen 1.5.5