Class: Nl::Linux::RtAddr::AttributeSets::AddrAttrs

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

Defined Under Namespace

Classes: Address, Anycast, Attribute, Broadcast, Cacheinfo, Flags, Label, Local, Multicast, Proto, RtPriority, TargetNetnsid

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#address ⇒ String

Returns:

  • (String)

See Also:



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

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

#anycast ⇒ String

Returns:

  • (String)

See Also:



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

def anycast; self[:"anycast"]&.value; end

#broadcast ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def broadcast; self[:"broadcast"]&.value; end

#cacheinfo ⇒ Structs::IfaCacheinfo

Returns:

See Also:



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

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

#flags ⇒ Integer

Known flags are defined in Flags::IfaFlags.

Returns:

  • (Integer)

See Also:



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

def flags; self[:"flags"]&.value; end

#label ⇒ String

Returns:

  • (String)

See Also:



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

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

#local ⇒ String

Returns:

  • (String)

See Also:



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

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

#multicast ⇒ String

Returns:

  • (String)

See Also:



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

def multicast; self[:"multicast"]&.value; end

#proto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def proto; self[:"proto"]&.value; end

#rt_priority ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def rt_priority; self[:"rt_priority"]&.value; end

#target_netnsid ⇒ String

Returns:

  • (String)

See Also:



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

def target_netnsid; self[:"target_netnsid"]&.value; end