Class: Nl::Linux::Ethtool::Messages::DoLinkinfoGetReply

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Overview

Get link info.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Linkinfo
ATTRIBUTES =
Ractor.make_shareable(%i[header port phyaddr tp_mdix tp_mdix_ctrl transceiver])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

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

#header ⇒ AttributeSets::Header



5900
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5900

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

#phyaddr ⇒ Integer

Returns:

  • (Integer)

See Also:



5908
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5908

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

#port ⇒ Integer

Returns:

  • (Integer)

See Also:



5904
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5904

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

#tp_mdix ⇒ Integer

Returns:

  • (Integer)

See Also:



5912
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5912

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

#tp_mdix_ctrl ⇒ Integer

Returns:

  • (Integer)

See Also:



5916
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5916

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

#transceiver ⇒ Integer

Returns:

  • (Integer)

See Also:



5920
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 5920

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