scapy.contrib.carp

class scapy.contrib.carp.CARP

Bases: scapy.packet.Packet

aliastypes
build_hmac_sha1(pw=b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', ip4l=[], ip6l=[])
fields_desc
CARP fields

version

BitField (4 bits)

4

type

BitField (4 bits)

4

vhid

ByteField

1

advskew

ByteField

0

authlen

ByteField

0

demotion

ByteField

0

advbase

ByteField

0

chksum

XShortField

None

counter1

XIntField

0

counter2

XIntField

0

hmac1

XIntField

0

hmac2

XIntField

0

hmac3

XIntField

0

hmac4

XIntField

0

hmac5

XIntField

0

post_build(pkt, pay)