scapy.layers.vrrp module

VRRP (Virtual Router Redundancy Protocol).

class scapy.layers.vrrp.VRRP

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.layers.vrrp.VRRP'>, <class 'scapy.packet.Packet'>]
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc = [<Field (VRRP).version>, <Field (VRRP).type>, <Field (VRRP).vrid>, <Field (VRRP).priority>, <Field (VRRP).ipcount>, <Field (VRRP).authtype>, <Field (VRRP).adv>, <Field (VRRP).chksum>, <Field (VRRP).addrlist>, <Field (VRRP).auth1>, <Field (VRRP).auth2>]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload

class scapy.layers.vrrp.VRRPv3

Bases: scapy.packet.Packet

aliastypes = [<class 'scapy.layers.vrrp.VRRPv3'>, <class 'scapy.packet.Packet'>]
classmethod dispatch_hook(_pkt=None, *args, **kargs)
fields_desc = [<Field (VRRPv3).version>, <Field (VRRPv3).type>, <Field (VRRPv3).vrid>, <Field (VRRPv3).priority>, <Field (VRRPv3).ipcount>, <Field (VRRPv3).res>, <Field (VRRPv3).adv>, <Field (VRRPv3).chksum>, <Field (VRRPv3).addrlist>]
post_build(p, pay)

DEV: called right after the current layer is build.

Parameters:
  • pkt (str) – the current packet (build by self_buil function)
  • pay (str) – the packet payload (build by do_build_payload function)
Returns:

a string of the packet with the payload