Class: Nl::Linux::RtLink::Messages::DoGetlinkRequest

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

Overview

Get / dump information about a link.

Constant Summary collapse

TYPE =
18
FIXED_HEADER =
Structs::Ifinfomsg
ATTRIBUTE_SET =
AttributeSets::LinkAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[ifname ext_mask target_netnsid alt_ifname])

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

#alt_ifname ⇒ String

Returns:

  • (String)

See Also:



8596
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8596

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

#ext_mask ⇒ Integer

Known flags are defined in Flags::RtextFilter.

Returns:

  • (Integer)

See Also:



8588
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8588

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

#ifi_change ⇒ Integer

Returns:

  • (Integer)


8579
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8579

def ifi_change; fixed_header.ifi_change; end

#ifi_family ⇒ Integer

Returns:

  • (Integer)


8567
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8567

def ifi_family; fixed_header.ifi_family; end

#ifi_flags ⇒ Integer

Returns:

  • (Integer)


8576
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8576

def ifi_flags; fixed_header.ifi_flags; end

#ifi_index ⇒ Integer

Returns:

  • (Integer)


8573
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8573

def ifi_index; fixed_header.ifi_index; end

#ifi_type ⇒ Integer

Returns:

  • (Integer)


8570
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8570

def ifi_type; fixed_header.ifi_type; end

#ifname ⇒ String

Returns:

  • (String)

See Also:



8583
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8583

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

#target_netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



8592
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 8592

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