packet.record (3) - Linux Manuals
packet.record: Record module
NAME
packet.record - Record moduleDESCRIPTION
Provides the object for a record and the string representation of the record in a tcpdump trace file.
CLASSES
class Record(baseobj.BaseObj)
Record object Usage: from packet.record import Record x = Record(pktt, data) Object definition: Record( index = int, # Frame number seconds = int, # Seconds usecs = int, # Microseconds length_inc = int, # Number of bytes included in trace length_orig = int, # Number of bytes in packet secs = float, # Absolute seconds including microseconds rsecs = float, # Seconds relative to first packet ) Methods defined here: --------------------- __init__(self, pktt, data) Constructor Initialize object's private data.
- pktt:
- Packet trace object (packet.pktt.Pktt) so this layer has access to the parent layers.
- data:
- Raw packet data for this layer.
- verbose:
BUGS
No known bugs.AUTHOR
Jorge Mora (mora [at] netapp.com)