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

Class _PcapngBlock

source code

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

Base class for a pcapng block with Options

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

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', 0), ('len', 'I', 12), ('_len', 'I', 12))
  __hdr_defaults__ = {'_len': 12, 'len': 12, 'type': 0}
  __hdr_fields__ = ['type', 'len', '_len']
  __hdr_fmt__ = '>III'
  __hdr_len__ = 12
Properties [hide private]
  _len
  data
  len
  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__