Package dpkt :: Module icmp :: Class ICMP
[hide private]
[frames] | no frames]

Class ICMP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             ICMP

Nested Classes [hide private]
  Echo
  Quote
  Unreach
  Quench
  Redirect
  ParamProbe
  TimeExceed

Inherited from dpkt.Packet: __metaclass__

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

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

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

Class Variables [hide private]
  __hdr__ = (('type', 'B', 8), ('code', 'B', 0), ('sum', 'H', 0))
  _typesw = {0: <class 'dpkt.icmp.Echo'>, 3: <class 'dpkt.icmp.U...
  __hdr_defaults__ = {'code': 0, 'sum': 0, 'type': 8}
  __hdr_fields__ = ['type', 'code', 'sum']
  __hdr_fmt__ = '>BBH'
  __hdr_len__ = 4
Properties [hide private]
  code
  data
  sum
  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)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

_typesw

Value:
{0: <class 'dpkt.icmp.Echo'>,
 3: <class 'dpkt.icmp.Unreach'>,
 4: <class 'dpkt.icmp.Quench'>,
 5: <class 'dpkt.icmp.Redirect'>,
 8: <class 'dpkt.icmp.Echo'>,
 11: <class 'dpkt.icmp.TimeExceed'>}