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

Class VRRP

source code

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

Virtual Router Redundancy Protocol.

TODO: Longer class information....

Attributes:
    __hdr__: Header fields of VRRP.
    TODO.

Instance Methods [hide private]
 
unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
source code
 
__len__(self) source code
 
__bytes__(self) source code

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

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

Class Variables [hide private]
  __hdr__ = (('_v_type', 'B', 33), ('vrid', 'B', 0), ('priority'...
  addrs = ()
  auth = ''
  __hdr_defaults__ = {'_v_type': 33, 'advtime': 0, 'atype': 0, '...
  __hdr_fields__ = ['_v_type', 'vrid', 'priority', 'count', 'aty...
  __hdr_fmt__ = '>BBBBBBH'
  __hdr_len__ = 8
Properties [hide private]
  v
  type
  _v_type
  advtime
  atype
  count
  data
  priority
  sum
  vrid

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__

__bytes__(self)

source code 
Overrides: dpkt.Packet.__bytes__

Class Variable Details [hide private]

__hdr__

Value:
(('_v_type', 'B', 33),
 ('vrid', 'B', 0),
 ('priority', 'B', 0),
 ('count', 'B', 0),
 ('atype', 'B', 0),
 ('advtime', 'B', 0),
 ('sum', 'H', 0))

__hdr_defaults__

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

__hdr_fields__

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

Property Details [hide private]

v

Get Method:
unreachable.v(self)
Set Method:
unreachable.v(self, v)

type

Get Method:
unreachable.type(self)
Set Method:
unreachable.type(self, v)