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

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