Class: Nl::Linux::Ethtool::Messages::DoLinkmodesGetReply

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:



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

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

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header



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

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

#lanes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_cfg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ours ⇒ AttributeSets::Bitset



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

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

#peer ⇒ AttributeSets::Bitset



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

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

#rate_matching ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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