Class: Nl::Linux::Ethtool::Messages::DoLinkmodesSetRequest

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

Overview

Set link modes.

Constant Summary collapse

TYPE =
5
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:



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

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

#duplex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#header ⇒ AttributeSets::Header



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

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

#lanes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_cfg ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#master_slave_state ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ours ⇒ AttributeSets::Bitset



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

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

#peer ⇒ AttributeSets::Bitset



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

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

#rate_matching ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#speed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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