1RECORD(3) record 2.1 RECORD(3)
2
3
4
6 packet.record - Record module
7
9 Provides the object for a record and the string representation of the
10 record in a tcpdump trace file.
11
13 class Record(baseobj.BaseObj)
14 Record object
15
16 Usage:
17 from packet.record import Record
18
19 x = Record(pktt, data)
20
21 Object definition:
22
23 Record(
24 frame = int, # Frame number
25 index = int, # Packet number
26 seconds = int, # Seconds
27 usecs = int, # Microseconds
28 length_inc = int, # Number of bytes included in trace
29 length_orig = int, # Number of bytes in packet
30 secs = float, # Absolute seconds including microseconds
31 rsecs = float, # Seconds relative to first packet
32 )
33
34
35 Methods defined here:
36 ---------------------
37
38 __init__(self, pktt, data)
39 Constructor
40
41 Initialize object's private data.
42
43
44 pktt: Packet trace object (packet.pktt.Pktt) so this layer has
45 access to the parent layers.
46
47 data: Raw packet data for this layer.
48
49 __str__(self)
50 String representation of object
51
52 The representation depends on the verbose level set by debug_repr().
53 If set to 0 the generic object representation is returned.
54 If set to 1 the representation of the object is condensed to display
55 either or both the frame or packet numbers and the timestamp:
56 '57 2014-03-16 13:42:56.530957 '
57
58 If set to 2 the representation of the object also includes the number
59 of bytes on the wire, number of bytes captured and a little bit more
60
61 verbose:
62
64 baseobj(3)
65
66
68 No known bugs.
69
71 Jorge Mora (mora@netapp.com)
72
73
74
75NFStest 2.1.5 14 February 2017 RECORD(3)