Class: Nl::Linux::Ethtool::Messages::DumpLinkmodesGetReply

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

Overview

Get link modes.

Constant Summary collapse

TYPE =
4
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Linkmodes
ATTRIBUTES =
Ractor.make_shareable(%i[header autoneg ours peer speed duplex master_slave_cfg master_slave_state lanes rate_matching])

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

#autoneg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header



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

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

#lanes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_cfg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ours ⇒ AttributeSets::Bitset



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

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

#peer ⇒ AttributeSets::Bitset



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

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

#rate_matching ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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