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

Class PktHdr

source code

object --+        
         |        
   ??.Temp --+    
             |    
   dpkt.Packet --+
                 |
                PktHdr
Known Subclasses:

pcap packet header.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of pcap header.
    TODO.

Instance Methods [hide private]

Inherited from dpkt.Packet: __bytes__, __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__ = (('tv_sec', 'I', 0), ('tv_usec', 'I', 0), ('caplen',...
  __hdr_defaults__ = {'caplen': 0, 'len': 0, 'tv_sec': 0, 'tv_us...
  __hdr_fields__ = ['tv_sec', 'tv_usec', 'caplen', 'len']
  __hdr_fmt__ = '>IIII'
  __hdr_len__ = 16
Properties [hide private]
  caplen
  data
  len
  tv_sec
  tv_usec

Inherited from object: __class__

Class Variable Details [hide private]

__hdr__

Value:
(('tv_sec', 'I', 0),
 ('tv_usec', 'I', 0),
 ('caplen', 'I', 0),
 ('len', 'I', 0))

__hdr_defaults__

Value:
{'caplen': 0, 'len': 0, 'tv_sec': 0, 'tv_usec': 0}