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

Class Diameter

source code

 object --+    
          |    
dpkt.Packet --+
              |
             Diameter

Nested Classes [hide private]

Inherited from dpkt.Packet: __metaclass__

Instance Methods [hide private]
 
_get_r(self) source code
 
_set_r(self, r) source code
 
_get_p(self) source code
 
_set_p(self, p) source code
 
_get_e(self) source code
 
_set_e(self, e) source code
 
_get_t(self) source code
 
_set_t(self, t) 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
 
__str__(self)
str(x)
source code

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

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

Class Variables [hide private]
  __hdr__ = (('v', 'B', 1), ('len', '3s', 0), ('flags', 'B', 0),...
  __hdr_defaults__ = {'app_id': 0, 'cmd': 0, 'end_id': 0, 'flags...
  __hdr_fields__ = ['v', 'len', 'flags', 'cmd', 'app_id', 'hop_i...
  __hdr_fmt__ = '>B3sB3sIII'
  __hdr_len__ = 20
Properties [hide private]
  request_flag
  proxiable_flag
  error_flag
  retransmit_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__

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

__hdr__

Value:
(('v', 'B', 1),
 ('len', '3s', 0),
 ('flags', 'B', 0),
 ('cmd', '3s', 0),
 ('app_id', 'I', 0),
 ('hop_id', 'I', 0),
 ('end_id', 'I', 0))

__hdr_defaults__

Value:
{'app_id': 0,
 'cmd': 0,
 'end_id': 0,
 'flags': 0,
 'hop_id': 0,
 'len': 0,
 'v': 1}

__hdr_fields__

Value:
['v', 'len', 'flags', 'cmd', 'app_id', 'hop_id', 'end_id']

Property Details [hide private]

request_flag

Get Method:
_get_r(self)
Set Method:
_set_r(self, r)

proxiable_flag

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

error_flag

Get Method:
_get_e(self)
Set Method:
_set_e(self, e)

retransmit_flag

Get Method:
_get_t(self)
Set Method:
_set_t(self, t)