Class: Nl::Linux::RtAddr::Messages::DoNewaddrRequest

Inherits:
Raw::Message
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/rt_addr.rb

Overview

Add new address

Constant Summary collapse

TYPE =
20
FIXED_HEADER =
Structs::Ifaddrmsg
ATTRIBUTE_SET =
AttributeSets::AddrAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[address local label cacheinfo])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#address ⇒ String

Returns:

  • (String)

See Also:



302
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 302

def address; attributes[:"address"]&.value; end

#cacheinfo ⇒ Structs::IfaCacheinfo



314
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 314

def cacheinfo; attributes[:"cacheinfo"]&.value; end

#ifa_family ⇒ Integer

Returns:

  • (Integer)


286
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 286

def ifa_family; fixed_header.ifa_family; end

#ifa_flags ⇒ Integer

Returns:

  • (Integer)


292
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 292

def ifa_flags; fixed_header.ifa_flags; end

#ifa_index ⇒ Integer

Returns:

  • (Integer)


298
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 298

def ifa_index; fixed_header.ifa_index; end

#ifa_prefixlen ⇒ Integer

Returns:

  • (Integer)


289
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 289

def ifa_prefixlen; fixed_header.ifa_prefixlen; end

#ifa_scope ⇒ Integer

Returns:

  • (Integer)


295
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 295

def ifa_scope; fixed_header.ifa_scope; end

#label ⇒ String

Returns:

  • (String)

See Also:



310
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 310

def label; attributes[:"label"]&.value; end

#local ⇒ String

Returns:

  • (String)

See Also:



306
# File 'nl-linux/generated/nl/linux/rt_addr.rb', line 306

def local; attributes[:"local"]&.value; end