module PacketFu::LLDPHeaderMixin
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)
Public Instance Methods
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 38 def lldp_address; self.lldp_header.lldp_saddr_ip(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 37 def lldp_address=(v); self.lldp_header.lldp_saddr_ip= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 35 def lldp_address_type; self.lldp_header.lldp_address_type; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 34 def lldp_address_type=(v); self.lldp_header.lldp_address_type= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 29 def lldp_capabilty; self.lldp_header.lldp_capabilty_readable(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 28 def lldp_capabilty=(v); self.lldp_header.lldp_capabilty= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 9 def lldp_chassis_id; self.lldp_header.lldp_chassis_id_readable(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 8 def lldp_chassis_id=(v); self.lldp_header.lldp_chassis_id= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 7 def lldp_chassis_id_type; self.lldp_header.lldp_chassis_id_type; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 6 def lldp_chassis_id_type=(v); self.lldp_header.lldp_chassis_id_type= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 32 def lldp_enabled_capability; self.lldp_header.lldp_enabled_capability_readable(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 31 def lldp_enabled_capability=(v); self.lldp_header.lldp_enabled_capability= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 44 def lldp_interface; self.lldp_header.lldp_interface; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 43 def lldp_interface=(v); self.lldp_header.lldp_interface= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 41 def lldp_interface_type; self.lldp_header.lldp_interface_type; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 40 def lldp_interface_type=(v); self.lldp_header.lldp_interface_type= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 47 def lldp_oid; self.lldp_header.lldp_oid; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 46 def lldp_oid=(v); self.lldp_header.lldp_oid= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 20 def lldp_port_description; self.lldp_header.lldp_port_description; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 19 def lldp_port_description=(v); self.lldp_header.lldp_port_description= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 14 def lldp_port_id; self.lldp_header.lldp_port_id_readable(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 13 def lldp_port_id=(v); self.lldp_header.lldp_port_id= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 12 def lldp_port_id_type; self.lldp_header.lldp_port_id_type; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 11 def lldp_port_id_type=(v); self.lldp_header.lldp_port_id_type= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 52 def lldp_saddr_ip; self.lldp_header.lldp_saddr_ip(); end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 51 def lldp_saddr_ip=(v); self.lldp_header.lldp_saddr_ip= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 50 def lldp_saddr_mac; self.lldp_header.lldp_saddr_mac; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 49 def lldp_saddr_mac=(v); self.lldp_header.lldp_saddr_mac= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 26 def lldp_system_description; self.lldp_header.lldp_system_description; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 25 def lldp_system_description=(v); self.lldp_header.lldp_system_description= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 23 def lldp_system_name; self.lldp_header.lldp_system_name; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 22 def lldp_system_name=(v); self.lldp_header.lldp_system_name= v; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 17 def lldp_ttl; self.lldp_header.lldp_ttl; end
Source
# File lib/packetfu/protos/lldp/mixin.rb, line 16 def lldp_ttl=(v); self.lldp_header.lldp_ttl= v; end