packet.record man page
packet.record — Record module Provides the object for a record and the string representation of the record in a tcpdump trace file. baseobj(3) No known bugs. Jorge Mora (email@example.com) packet.pktt(3).
from packet.record import Record
x = Record(pktt, data)
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)
Initialize object's private data.
Packet trace object (packet.pktt.Pktt) so this layer has
access to the parent layers.
Raw packet data for this layer.
String representation of object
The representation depends on the verbose level set by debug_repr().
If set to 0 the generic object representation is returned.
If set to 1 the representation of the object is condensed to display
the frame number and the timestamp:
'57 2014-03-16 13:42:56.530957 '
If set to 2 the representation of the object also includes the number
of bytes on the wire, number of bytes captured and a little bit more
'frame 57 @ 2014-03-16 13:42:56.530957, 42 bytes on wire, 42 packet bytes'
Provides the object for a record and the string representation of the record in a tcpdump trace file.
No known bugs.
Jorge Mora (firstname.lastname@example.org)