Module: PacketFu::HSRPHeaderMixin

Included in:
HSRPPacket
Defined in:
lib/packetfu/protos/hsrp/mixin.rb

Overview

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)

Instance Method Summary collapse

Instance Method Details

#hsrp_addrObject



24
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 24

def hsrp_addr; self.hsrp_header.hsrp_addr; end

#hsrp_addr=(v) ⇒ Object



23
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 23

def hsrp_addr=(v); self.hsrp_header.hsrp_addr= v; end

#hsrp_groupObject



20
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 20

def hsrp_group; self.hsrp_header.hsrp_group; end

#hsrp_group=(v) ⇒ Object



19
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 19

def hsrp_group=(v); self.hsrp_header.hsrp_group= v; end

#hsrp_hellotimeObject



14
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 14

def hsrp_hellotime; self.hsrp_header.hsrp_hellotime; end

#hsrp_hellotime=(v) ⇒ Object



13
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 13

def hsrp_hellotime=(v); self.hsrp_header.hsrp_hellotime= v; end

#hsrp_holdtimeObject



16
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 16

def hsrp_holdtime; self.hsrp_header.hsrp_holdtime; end

#hsrp_holdtime=(v) ⇒ Object



15
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 15

def hsrp_holdtime=(v); self.hsrp_header.hsrp_holdtime= v; end

#hsrp_opcodeObject



10
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 10

def hsrp_opcode; self.hsrp_header.hsrp_opcode; end

#hsrp_opcode=(v) ⇒ Object



9
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 9

def hsrp_opcode=(v); self.hsrp_header.hsrp_opcode= v; end

#hsrp_passwordObject



27
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 27

def hsrp_password; self.hsrp_header.hsrp_password; end

#hsrp_password=(v) ⇒ Object



28
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 28

def hsrp_password=(v); self.hsrp_header.hsrp_password= v; end

#hsrp_password_readableObject



26
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 26

def hsrp_password_readable; self.hsrp_header.hsrp_password_readable; end

#hsrp_priorityObject



18
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 18

def hsrp_priority; self.hsrp_header.hsrp_priority; end

#hsrp_priority=(v) ⇒ Object



17
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 17

def hsrp_priority=(v); self.hsrp_header.hsrp_priority= v; end

#hsrp_reservedObject



22
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 22

def hsrp_reserved; self.hsrp_header.hsrp_reserved; end

#hsrp_reserved=(v) ⇒ Object



21
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 21

def hsrp_reserved=(v); self.hsrp_header.hsrp_reserved= v; end

#hsrp_stateObject



12
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 12

def hsrp_state; self.hsrp_header.hsrp_state; end

#hsrp_state=(v) ⇒ Object



11
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 11

def hsrp_state=(v); self.hsrp_header.hsrp_state= v; end

#hsrp_versionObject



8
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 8

def hsrp_version; self.hsrp_header.hsrp_version; end

#hsrp_version=(v) ⇒ Object



7
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 7

def hsrp_version=(v); self.hsrp_header.hsrp_version= v; end

#hsrp_vipObject



29
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 29

def hsrp_vip; self.hsrp_header.hsrp_vip; end

#hsrp_vip=(v) ⇒ Object



30
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 30

def hsrp_vip=(v); self.hsrp_header.hsrp_vip= v; end

#hsrp_vip_readableObject



25
# File 'lib/packetfu/protos/hsrp/mixin.rb', line 25

def hsrp_vip_readable; self.hsrp_header.hsrp_vip_readable; end