Ticket #59: scapy-hsrp-opcodes-states.patch
| File scapy-hsrp-opcodes-states.patch, 1.1 kB (added by lobo@c3a.de, 4 months ago) |
|---|
-
a/scapy/layers/hsrp.py
old new 11 11 name = "HSRP" 12 12 fields_desc = [ 13 13 ByteField("version", 0), 14 ByteEnumField("opcode", 0, { 0:"Hello" }),15 ByteEnumField("state", 16, { 16:"Active"}),14 ByteEnumField("opcode", 0, { 0:"Hello", 1:"Coup", 2:"Resign", 3:"Advertise"}), 15 ByteEnumField("state", 16, { 0:"Initial", 1:"Learn", 2:"Listen", 4:"Speak", 8:"Standby", 16:"Active"}), 16 16 ByteField("hellotime", 3), 17 17 ByteField("holdtime", 10), 18 18 ByteField("priority", 120), … … 20 20 ByteField("reserved", 0), 21 21 StrFixedLenField("auth","cisco",8), 22 22 IPField("virtualIP","192.168.1.1") ] 23 24 23 25 24 26 27 25 26 27 28 28 bind_layers( UDP, HSRP, dport=1985, sport=1985)