Class: Nl::Linux::RtLink::Messages::DoNewlinkRequest

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

Overview

Create a new link.

Constant Summary collapse

TYPE =
16
FIXED_HEADER =
Structs::Ifinfomsg
ATTRIBUTE_SET =
AttributeSets::LinkAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[address broadcast ifname mtu txqlen operstate linkmode linkinfo net_ns_pid af_spec group net_ns_fd num_tx_queues num_rx_queues link_netnsid gso_max_segs gso_max_size target_netnsid gro_max_size gso_ipv4_max_size gro_ipv4_max_size])

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

#address ⇒ String

Returns:

  • (String)

See Also:



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

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

#af_spec ⇒ AttributeSets::AfSpecAttrs



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

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

#broadcast ⇒ String

Returns:

  • (String)

See Also:



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

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

#gro_ipv4_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gro_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#group ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_ipv4_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_max_segs ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ifi_change ⇒ Integer

Returns:

  • (Integer)


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

def ifi_change; fixed_header.ifi_change; end

#ifi_family ⇒ Integer

Returns:

  • (Integer)


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

def ifi_family; fixed_header.ifi_family; end

#ifi_flags ⇒ Integer

Returns:

  • (Integer)


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

def ifi_flags; fixed_header.ifi_flags; end

#ifi_index ⇒ Integer

Returns:

  • (Integer)


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

def ifi_index; fixed_header.ifi_index; end

#ifi_type ⇒ Integer

Returns:

  • (Integer)


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

def ifi_type; fixed_header.ifi_type; end

#ifname ⇒ String

Returns:

  • (String)

See Also:



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

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

Returns:

  • (Integer)

See Also:



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

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

#linkinfo ⇒ AttributeSets::LinkinfoAttrs



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

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

#linkmode ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#mtu ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#net_ns_fd ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#net_ns_pid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#num_rx_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#num_tx_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#operstate ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#target_netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#txqlen ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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