This class reads packets from a capture file, that was previously stored with tshark/wireshark.
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. |
def ieee802154::PcapFile::close | ( | self | ) |
def ieee802154::PcapFile::open | ( | self, | ||
fname | ||||
) |
Open and read a capture file.
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.
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 | ) |
def ieee802154::PcapFile::set_channel | ( | self, | ||
channel | ||||
) |
string ieee802154::PcapFile::PCAP_HEADER = "LHHLLLL" [static] |
string ieee802154::PcapFile::PCAP_PACKET = "QLL" [static] |