module PacketFu::HSRPHeaderMixin

This Mixin simplifies access to the HSRPHeaders. Mix this in with your packet interface, and it will add methods that essentially delegate to the ‘hsrp_header’ method (assuming that it is a HSRPHeader object)

Public Instance Methods

hsrp_addr() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 23
def hsrp_addr; self.hsrp_header.hsrp_addr; end
hsrp_addr=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 22
def hsrp_addr=(v); self.hsrp_header.hsrp_addr= v; end
hsrp_group() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 19
def hsrp_group; self.hsrp_header.hsrp_group; end
hsrp_group=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 18
def hsrp_group=(v); self.hsrp_header.hsrp_group= v; end
hsrp_hellotime() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 13
def hsrp_hellotime; self.hsrp_header.hsrp_hellotime; end
hsrp_hellotime=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 12
def hsrp_hellotime=(v); self.hsrp_header.hsrp_hellotime= v; end
hsrp_holdtime() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 15
def hsrp_holdtime; self.hsrp_header.hsrp_holdtime; end
hsrp_holdtime=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 14
def hsrp_holdtime=(v); self.hsrp_header.hsrp_holdtime= v; end
hsrp_opcode() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 9
def hsrp_opcode; self.hsrp_header.hsrp_opcode; end
hsrp_opcode=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 8
def hsrp_opcode=(v); self.hsrp_header.hsrp_opcode= v; end
hsrp_password() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 26
def hsrp_password; self.hsrp_header.hsrp_password; end
hsrp_password=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 27
def hsrp_password=(v); self.hsrp_header.hsrp_password= v; end
hsrp_password_readable() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 25
def hsrp_password_readable; self.hsrp_header.hsrp_password_readable; end
hsrp_priority() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 17
def hsrp_priority; self.hsrp_header.hsrp_priority; end
hsrp_priority=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 16
def hsrp_priority=(v); self.hsrp_header.hsrp_priority= v; end
hsrp_reserved() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 21
def hsrp_reserved; self.hsrp_header.hsrp_reserved; end
hsrp_reserved=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 20
def hsrp_reserved=(v); self.hsrp_header.hsrp_reserved= v; end
hsrp_state() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 11
def hsrp_state; self.hsrp_header.hsrp_state; end
hsrp_state=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 10
def hsrp_state=(v); self.hsrp_header.hsrp_state= v; end
hsrp_version() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 7
def hsrp_version; self.hsrp_header.hsrp_version; end
hsrp_version=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 6
def hsrp_version=(v); self.hsrp_header.hsrp_version= v; end
hsrp_vip() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 28
def hsrp_vip; self.hsrp_header.hsrp_vip; end
hsrp_vip=(v) click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 29
def hsrp_vip=(v); self.hsrp_header.hsrp_vip= v; end
hsrp_vip_readable() click to toggle source
# File lib/packetfu/protos/hsrp/mixin.rb, line 24
def hsrp_vip_readable; self.hsrp_header.hsrp_vip_readable; end