Package dpkt :: Module snoop :: Class PktHdr
[hide private]
[frames] | no frames]

Class PktHdr

source code

 object --+    
          |    
dpkt.Packet --+
              |
             PktHdr

snoop packet 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]
  __byte_order__ = '!'
  __hdr__ = (('orig_len', 'I', 0), ('incl_len', 'I', 0), ('rec_l...
  __hdr_defaults__ = {'cum_drops': 0, 'incl_len': 0, 'orig_len':...
  __hdr_fields__ = ['orig_len', 'incl_len', 'rec_len', 'cum_drop...
  __hdr_fmt__ = '!IIIIII'
  __hdr_len__ = 24
Properties [hide private]
  cum_drops
  data
  incl_len
  orig_len
  rec_len
  ts_sec
  ts_usec

Inherited from object: __class__

Class Variable Details [hide private]

__hdr__

Value:
(('orig_len', 'I', 0),
 ('incl_len', 'I', 0),
 ('rec_len', 'I', 0),
 ('cum_drops', 'I', 0),
 ('ts_sec', 'I', 0),
 ('ts_usec', 'I', 0))

__hdr_defaults__

Value:
{'cum_drops': 0,
 'incl_len': 0,
 'orig_len': 0,
 'rec_len': 0,
 'ts_sec': 0,
 'ts_usec': 0}

__hdr_fields__

Value:
['orig_len', 'incl_len', 'rec_len', 'cum_drops', 'ts_sec', 'ts_usec']