scapy.layers.vrrp

VRRP(虚拟路由器冗余协议).

class scapy.layers.vrrp.VRRP

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc
VRRP字段

version

BitField (4位)

2

type

BitField (4位)

1

vrid

ByteField

1

priority

ByteField

100

ipcount

FieldLenField

None

authtype

ByteField

0

adv

ByteField

1

chksum

XShortField

None

addrlist

FieldListField

[]

auth1

IntField

0

auth2

IntField

0

post_build(p, pay)
class scapy.layers.vrrp.VRRPv3

Bases: scapy.packet.Packet

aliastypes
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc
VRRPv3字段

version

BitField (4位)

3

type

BitField (4位)

1

vrid

ByteField

1

priority

ByteField

100

ipcount

FieldLenField

None

res

BitField (4位)

0

adv

BitField (12位)

100

chksum

XShortField

None

addrlist

FieldListField

[]

post_build(p, pay)