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

Class ICMP

source code

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

Internet Control Message Protocol.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of ICMP.
    TODO.

Nested Classes [hide private]
  Echo
  Quote
  Unreach
  Quench
  Redirect
  ParamProbe
  TimeExceed
Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__bytes__(self) 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', 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)

__bytes__(self)

source code 
Overrides: dpkt.Packet.__bytes__

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'>}