Package dpkt :: Module pcap :: Class FileHdr
[hide private]
[frames] | no frames]

Class FileHdr

source code

 object --+    
          |    
dpkt.Packet --+
              |
             FileHdr
Known Subclasses:

pcap file header.

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]

Inherited from dpkt.Packet: __getitem__, __init__, __len__, __repr__, __str__, pack, pack_hdr, unpack

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __hdr__ = (('magic', 'I', 2712847316), ('v_major', 'H', 2), ('...
  __hdr_defaults__ = {'linktype': 1, 'magic': 2712847316, 'sigfi...
  __hdr_fields__ = ['magic', 'v_major', 'v_minor', 'thiszone', '...
  __hdr_fmt__ = '>IHHIIII'
  __hdr_len__ = 24
Properties [hide private]
  data
  linktype
  magic
  sigfigs
  snaplen
  thiszone
  v_major
  v_minor

Inherited from object: __class__

Class Variable Details [hide private]

__hdr__

Value:
(('magic', 'I', 2712847316),
 ('v_major', 'H', 2),
 ('v_minor', 'H', 4),
 ('thiszone', 'I', 0),
 ('sigfigs', 'I', 0),
 ('snaplen', 'I', 1500),
 ('linktype', 'I', 1))

__hdr_defaults__

Value:
{'linktype': 1,
 'magic': 2712847316,
 'sigfigs': 0,
 'snaplen': 1500,
 'thiszone': 0,
 'v_major': 2,
 'v_minor': 4}

__hdr_fields__

Value:
['magic',
 'v_major',
 'v_minor',
 'thiszone',
 'sigfigs',
 'snaplen',
 'linktype']