Package dpkt :: Module icmp6 :: Class ICMP6
[hide private]
[frames] | no frames]

Class ICMP6

source code

 object --+    
          |    
dpkt.Packet --+
              |
             ICMP6

Nested Classes [hide private]
  Error
  Unreach
  TooBig
  TimeExceed
  ParamProb
  Echo

Inherited from dpkt.Packet: __metaclass__

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

Inherited from dpkt.Packet: __getitem__, __init__, __len__, __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', 'B', 0), ('code', 'B', 0), ('sum', 'H', 0))
  _typesw = {1: <class 'dpkt.icmp6.Unreach'>, 2: <class 'dpkt.ic...
  __hdr_defaults__ = {'code': 0, 'sum': 0, 'type': 0}
  __hdr_fields__ = ['type', 'code', 'sum']
  __hdr_fmt__ = '>BBH'
  __hdr_len__ = 4
Properties [hide private]

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)

Class Variable Details [hide private]

_typesw

Value:
{1: <class 'dpkt.icmp6.Unreach'>,
 2: <class 'dpkt.icmp6.TooBig'>,
 3: <class 'dpkt.icmp6.TimeExceed'>,
 4: <class 'dpkt.icmp6.ParamProb'>,
 128: <class 'dpkt.icmp6.Echo'>,
 129: <class 'dpkt.icmp6.Echo'>}