Package dpkt :: Module vrrp :: Class VRRP
[hide private]
[frames] | no frames]

Class VRRP

source code

 object --+    
          |    
dpkt.Packet --+
              |
             VRRP

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_type(self) source code
 
_set_type(self, v) source code
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__len__(self) source code
 
__str__(self)
str(x)
source code

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

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

Class Variables [hide private]
  __hdr__ = (('vtype', 'B', 33), ('vrid', 'B', 0), ('priority', ...
  addrs = ()
  auth = ''
  __hdr_defaults__ = {'advtime': 0, 'atype': 0, 'count': 0, 'pri...
  __hdr_fields__ = ['vtype', 'vrid', 'priority', 'count', 'atype...
  __hdr_fmt__ = '>BBBBBBH'
  __hdr_len__ = 8
Properties [hide private]
  v
  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)

__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:
(('vtype', 'B', 33),
 ('vrid', 'B', 0),
 ('priority', 'B', 0),
 ('count', 'B', 0),
 ('atype', 'B', 0),
 ('advtime', 'B', 0),
 ('sum', 'H', 0))

__hdr_defaults__

Value:
{'advtime': 0,
 'atype': 0,
 'count': 0,
 'priority': 0,
 'sum': 0,
 'vrid': 0,
 'vtype': 33}

__hdr_fields__

Value:
['vtype', 'vrid', 'priority', 'count', 'atype', 'advtime', 'sum']

Property Details [hide private]

v

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

type

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