Module: PacketFu::LLDPHeaderMixin

Included in:
LLDPPacket
Defined in:
lib/packetfu/protos/lldp/mixin.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#lldp_addressObject



39
# File 'lib/packetfu/protos/lldp/mixin.rb', line 39

def lldp_address; self.lldp_header.lldp_saddr_ip(); end

#lldp_address=(v) ⇒ Object



38
# File 'lib/packetfu/protos/lldp/mixin.rb', line 38

def lldp_address=(v); self.lldp_header.lldp_saddr_ip= v; end

#lldp_address_typeObject



36
# File 'lib/packetfu/protos/lldp/mixin.rb', line 36

def lldp_address_type; self.lldp_header.lldp_address_type; end

#lldp_address_type=(v) ⇒ Object



35
# File 'lib/packetfu/protos/lldp/mixin.rb', line 35

def lldp_address_type=(v); self.lldp_header.lldp_address_type= v; end

#lldp_capabiltyObject



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

def lldp_capabilty; self.lldp_header.lldp_capabilty_readable(); end

#lldp_capabilty=(v) ⇒ Object



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

def lldp_capabilty=(v); self.lldp_header.lldp_capabilty= v; end

#lldp_chassis_idObject



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

def lldp_chassis_id; self.lldp_header.lldp_chassis_id_readable(); end

#lldp_chassis_id=(v) ⇒ Object



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

def lldp_chassis_id=(v); self.lldp_header.lldp_chassis_id= v; end

#lldp_chassis_id_typeObject



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

def lldp_chassis_id_type; self.lldp_header.lldp_chassis_id_type; end

#lldp_chassis_id_type=(v) ⇒ Object



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

def lldp_chassis_id_type=(v); self.lldp_header.lldp_chassis_id_type= v; end

#lldp_enabled_capabilityObject



33
# File 'lib/packetfu/protos/lldp/mixin.rb', line 33

def lldp_enabled_capability; self.lldp_header.lldp_enabled_capability_readable(); end

#lldp_enabled_capability=(v) ⇒ Object



32
# File 'lib/packetfu/protos/lldp/mixin.rb', line 32

def lldp_enabled_capability=(v); self.lldp_header.lldp_enabled_capability= v; end

#lldp_interfaceObject



45
# File 'lib/packetfu/protos/lldp/mixin.rb', line 45

def lldp_interface; self.lldp_header.lldp_interface; end

#lldp_interface=(v) ⇒ Object



44
# File 'lib/packetfu/protos/lldp/mixin.rb', line 44

def lldp_interface=(v); self.lldp_header.lldp_interface= v; end

#lldp_interface_typeObject



42
# File 'lib/packetfu/protos/lldp/mixin.rb', line 42

def lldp_interface_type; self.lldp_header.lldp_interface_type; end

#lldp_interface_type=(v) ⇒ Object



41
# File 'lib/packetfu/protos/lldp/mixin.rb', line 41

def lldp_interface_type=(v); self.lldp_header.lldp_interface_type= v; end

#lldp_oidObject



48
# File 'lib/packetfu/protos/lldp/mixin.rb', line 48

def lldp_oid; self.lldp_header.lldp_oid; end

#lldp_oid=(v) ⇒ Object



47
# File 'lib/packetfu/protos/lldp/mixin.rb', line 47

def lldp_oid=(v); self.lldp_header.lldp_oid= v; end

#lldp_port_descriptionObject



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

def lldp_port_description; self.lldp_header.lldp_port_description; end

#lldp_port_description=(v) ⇒ Object



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

def lldp_port_description=(v); self.lldp_header.lldp_port_description= v; end

#lldp_port_idObject



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

def lldp_port_id; self.lldp_header.lldp_port_id_readable(); end

#lldp_port_id=(v) ⇒ Object



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

def lldp_port_id=(v); self.lldp_header.lldp_port_id= v; end

#lldp_port_id_typeObject



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

def lldp_port_id_type; self.lldp_header.lldp_port_id_type; end

#lldp_port_id_type=(v) ⇒ Object



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

def lldp_port_id_type=(v); self.lldp_header.lldp_port_id_type= v; end

#lldp_saddr_ipObject



53
# File 'lib/packetfu/protos/lldp/mixin.rb', line 53

def lldp_saddr_ip; self.lldp_header.lldp_saddr_ip(); end

#lldp_saddr_ip=(v) ⇒ Object



52
# File 'lib/packetfu/protos/lldp/mixin.rb', line 52

def lldp_saddr_ip=(v); self.lldp_header.lldp_saddr_ip= v; end

#lldp_saddr_macObject



51
# File 'lib/packetfu/protos/lldp/mixin.rb', line 51

def lldp_saddr_mac; self.lldp_header.lldp_saddr_mac; end

#lldp_saddr_mac=(v) ⇒ Object



50
# File 'lib/packetfu/protos/lldp/mixin.rb', line 50

def lldp_saddr_mac=(v); self.lldp_header.lldp_saddr_mac= v; end

#lldp_system_descriptionObject



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

def lldp_system_description; self.lldp_header.lldp_system_description; end

#lldp_system_description=(v) ⇒ Object



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

def lldp_system_description=(v); self.lldp_header.lldp_system_description= v; end

#lldp_system_nameObject



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

def lldp_system_name; self.lldp_header.lldp_system_name; end

#lldp_system_name=(v) ⇒ Object



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

def lldp_system_name=(v); self.lldp_header.lldp_system_name= v; end

#lldp_ttlObject



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

def lldp_ttl; self.lldp_header.lldp_ttl; end

#lldp_ttl=(v) ⇒ Object



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

def lldp_ttl=(v); self.lldp_header.lldp_ttl= v; end