Class: Facter::Util::Linux::IfInet6

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/util/linux/if_inet6.rb

Constant Summary collapse

IFA_FLAGS =
{
  'temporary' => 0x01,
  'noad' => 0x02,
  'optimistic' => 0x04,
  'dadfailed' => 0x08,
  'homeaddress' => 0x10,
  'deprecated' => 0x20,
  'tentative' => 0x40,
  'permanent' => 0x80
  # /proc/net/if_inet6 only supports the old 8bit flags
  # I have been unable to find a simple solution to accesses
  # the full 32bit flags.  netlink is all I can could find but
  # that will likely be ugly
  # 'managetempaddr' => 0x100,
  # 'noprefixroute' => 0x200,
  # 'mcautojoin' => 0x400,
  # 'stableprivacy' => 0x800
}.freeze

Class Method Summary collapse

Class Method Details

.read_flagsObject



29
30
31
32
33
# File 'lib/facter/util/linux/if_inet6.rb', line 29

def read_flags
  return read_flags_from_proc if File.exist?('/proc/net/if_inet6')

  {}
end