Class: Facter::Resolvers::Solaris::FFI::Lifreq

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/facter/resolvers/solaris/ffi/structs.rb

Overview

Since:

  • 2.0.0

Instance Method Summary collapse

Methods inherited from FFI::Struct

read_list

Instance Method Details

#lifru_addrObject

Since:

  • 2.0.0



74
75
76
# File 'lib/facter/resolvers/solaris/ffi/structs.rb', line 74

def lifru_addr
  self[:lifr_lifru][:lifru_addr]
end

#nameObject

Since:

  • 2.0.0



66
67
68
# File 'lib/facter/resolvers/solaris/ffi/structs.rb', line 66

def name
  self[:lifr_name].to_s
end

#ss_familyObject

Since:

  • 2.0.0



70
71
72
# File 'lib/facter/resolvers/solaris/ffi/structs.rb', line 70

def ss_family
  self[:lifr_lifru][:lifru_addr][:ss_family]
end