Package dpkt :: Module pcapng :: Class EnhancedPacketBlock
[hide private]
[frames] | no frames]

Class EnhancedPacketBlock

source code

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

Enhanced Packet block

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__bytes__(self) source code
 
__len__(self) source code

Inherited from _PcapngBlock: unpack_hdr

Inherited from _PcapngBlock (private): _do_pack_options, _do_unpack_options

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

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

Class Variables [hide private]
  __hdr__ = (('type', 'I', 6), ('len', 'I', 64), ('iface_id', 'I...
  __hdr_defaults__ = {'_len': 64, 'caplen': 0, 'iface_id': 0, 'l...
  __hdr_fields__ = ['type', 'len', 'iface_id', 'ts_high', 'ts_lo...
  __hdr_fmt__ = '>IIIIIIII'
  __hdr_len__ = 32
Properties [hide private]
  _len
  caplen
  data
  iface_id
  len
  pkt_len
  ts_high
  ts_low
  type

Inherited from object: __class__

Method Details [hide private]

unpack(self, buf)

source code 
Unpack packet header fields from buf, and set self.data.

Overrides: dpkt.Packet.unpack
(inherited documentation)

__bytes__(self)

source code 
Overrides: dpkt.Packet.__bytes__

__len__(self)
(Length operator)

source code 
Overrides: dpkt.Packet.__len__

Class Variable Details [hide private]

__hdr__

Value:
(('type', 'I', 6),
 ('len', 'I', 64),
 ('iface_id', 'I', 0),
 ('ts_high', 'I', 0),
 ('ts_low', 'I', 0),
 ('caplen', 'I', 0),
 ('pkt_len', 'I', 0),
 ('_len', 'I', 64))

__hdr_defaults__

Value:
{'_len': 64,
 'caplen': 0,
 'iface_id': 0,
 'len': 64,
 'pkt_len': 0,
 'ts_high': 0,
 'ts_low': 0,
 'type': 6}

__hdr_fields__

Value:
['type',
 'len',
 'iface_id',
 'ts_high',
 'ts_low',
 'caplen',
 'pkt_len',
 '_len']