scapy.layers.hsrp

HSRP (Hot Standby Router Protocol): proprietary redundancy protocol for Cisco routers. # noqa: E501

class scapy.layers.hsrp.HSRP

Bases: scapy.packet.Packet

aliastypes
fields_desc
HSRP fields

version

ByteField

0

opcode

ByteEnumField

0

state

ByteEnumField

16

hellotime

ByteField

3

holdtime

ByteField

10

priority

ByteField

120

group

ByteField

1

reserved

ByteField

0

auth

StrFixedLenField

b'cisco\x00\x00\x00'

virtualIP

IPField

'192.168.1.1'

guess_payload_class(payload)
class scapy.layers.hsrp.HSRPmd5

Bases: scapy.packet.Packet

aliastypes
fields_desc
HSRPmd5 fields

type

ByteEnumField

4

len

ByteField

None

algo

ByteEnumField

0

padding

ByteField

0

flags

XShortField

0

sourceip

SourceIPField

None

keyid

XIntField

0

authdigest

StrFixedLenField

b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

post_build(p, pay)