Package dpkt :: Module aoe :: Class AOE
[hide private]
[frames] | no frames]

Class AOE

source code

 object --+    
          |    
dpkt.Packet --+
              |
             AOE

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
_get_ver(self) source code
 
_set_ver(self, ver) source code
 
_get_fl(self) source code
 
_set_fl(self, fl) source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
pack_hdr(self)
Return packed header string.
source code

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

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

Class Methods [hide private]
 
set_cmd(cls, cmd, pktclass) source code
 
get_cmd(cls, cmd) source code
Class Variables [hide private]
  __hdr__ = (('ver_fl', 'B', 16), ('err', 'B', 0), ('maj', 'H', ...
  _cmdsw = {0: <class 'dpkt.aoeata.AOEATA'>, 1: <class 'dpkt.aoe...
  __hdr_defaults__ = {'cmd': 0, 'err': 0, 'maj': 0, 'min': 0, 't...
  __hdr_fields__ = ['ver_fl', 'err', 'maj', 'min', 'cmd', 'tag']
  __hdr_fmt__ = '>BBHBBI'
  __hdr_len__ = 10
Properties [hide private]
  ver
  fl
  cmd
  data
  err
  maj
  min
  tag
  ver_fl

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)

pack_hdr(self)

source code 
Return packed header string.

Overrides: dpkt.Packet.pack_hdr
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('ver_fl', 'B', 16),
 ('err', 'B', 0),
 ('maj', 'H', 0),
 ('min', 'B', 0),
 ('cmd', 'B', 0),
 ('tag', 'I', 0))

_cmdsw

Value:
{0: <class 'dpkt.aoeata.AOEATA'>, 1: <class 'dpkt.aoecfg.AOECFG'>}

__hdr_defaults__

Value:
{'cmd': 0, 'err': 0, 'maj': 0, 'min': 0, 'tag': 0, 'ver_fl': 16}

Property Details [hide private]

ver

Get Method:
_get_ver(self)
Set Method:
_set_ver(self, ver)

fl

Get Method:
_get_fl(self)
Set Method:
_set_fl(self, fl)