Package dpkt :: Module diameter :: Class AVP
[hide private]
[frames] | no frames]

Class AVP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             AVP

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
_get_v(self) source code
 
_set_v(self, v) source code
 
_get_m(self) source code
 
_set_m(self, m) source code
 
_get_p(self) source code
 
_set_p(self, p) 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
 
__len__(self) source code

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

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

Class Variables [hide private]
  __hdr__ = (('code', 'I', 0), ('flags', 'B', 0), ('len', '3s', 0))
  __hdr_defaults__ = {'code': 0, 'flags': 0, 'len': 0}
  __hdr_fields__ = ['code', 'flags', 'len']
  __hdr_fmt__ = '>IB3s'
  __hdr_len__ = 8
Properties [hide private]
  vendor_flag
  mandatory_flag
  protected_flag

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)

__len__(self)
(Length operator)

source code 
Overrides: dpkt.Packet.__len__

Property Details [hide private]

vendor_flag

Get Method:
_get_v(self)
Set Method:
_set_v(self, v)

mandatory_flag

Get Method:
_get_m(self)
Set Method:
_set_m(self, m)

protected_flag

Get Method:
_get_p(self)
Set Method:
_set_p(self, p)