Class: Nl::Linux::RtLink::Messages::DoSetlinkRequest

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

Overview

Set information about a link.

Constant Summary collapse

TYPE =
19
FIXED_HEADER =
Structs::Ifinfomsg
ATTRIBUTE_SET =
AttributeSets::LinkAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[address broadcast ifname mtu link qdisc stats master wireless protinfo txqlen map weight operstate linkmode linkinfo net_ns_pid ifalias num_vf vfinfo_list stats64 vf_ports port_self af_spec group net_ns_fd ext_mask promiscuity num_tx_queues num_rx_queues carrier phys_port_id carrier_changes phys_switch_id link_netnsid phys_port_name proto_down gso_max_segs gso_max_size pad xdp event new_netnsid target_netnsid carrier_up_count carrier_down_count new_ifindex min_mtu max_mtu prop_list perm_address proto_down_reason parent_dev_name parent_dev_bus_name gro_max_size tso_max_size tso_max_segs allmulti devlink_port 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:



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

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

#af_spec ⇒ AttributeSets::AfSpecAttrs



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

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

#allmulti ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#broadcast ⇒ String

Returns:

  • (String)

See Also:



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

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

#carrier ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#carrier_changes ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#carrier_down_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#carrier_up_count ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

Returns:

  • (String)

See Also:



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

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

#event ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ext_mask ⇒ Integer

Known flags are defined in Flags::RtextFilter.

Returns:

  • (Integer)

See Also:



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

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

#gro_ipv4_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gro_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#group ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_ipv4_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_max_segs ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gso_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ifalias ⇒ String

Returns:

  • (String)

See Also:



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

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

#ifi_change ⇒ Integer

Returns:

  • (Integer)


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

def ifi_change; fixed_header.ifi_change; end

#ifi_family ⇒ Integer

Returns:

  • (Integer)


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

def ifi_family; fixed_header.ifi_family; end

#ifi_flags ⇒ Integer

Returns:

  • (Integer)


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

def ifi_flags; fixed_header.ifi_flags; end

#ifi_index ⇒ Integer

Returns:

  • (Integer)


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

def ifi_index; fixed_header.ifi_index; end

#ifi_type ⇒ Integer

Returns:

  • (Integer)


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

def ifi_type; fixed_header.ifi_type; end

#ifname ⇒ String

Returns:

  • (String)

See Also:



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

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

Returns:

  • (Integer)

See Also:



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

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

Returns:

  • (Integer)

See Also:



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

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

#linkinfo ⇒ AttributeSets::LinkinfoAttrs



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

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

#linkmode ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#map ⇒ Structs::RtnlLinkIfmap



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

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

#master ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#max_mtu ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#min_mtu ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#mtu ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#net_ns_fd ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#net_ns_pid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#new_ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#new_netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#num_rx_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#num_tx_queues ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#num_vf ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#operstate ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#parent_dev_bus_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#parent_dev_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#perm_address ⇒ String

Returns:

  • (String)

See Also:



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

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

#phys_port_id ⇒ String

Returns:

  • (String)

See Also:



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

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

#phys_port_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#phys_switch_id ⇒ String

Returns:

  • (String)

See Also:



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

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

#port_self ⇒ AttributeSets::PortSelfAttrs



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

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

#promiscuity ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#prop_list ⇒ AttributeSets::PropListLinkAttrs



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

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

#protinfo ⇒ String

A nest of ifla6-attrs or linkinfo-brport-attrs

Returns:

  • (String)

See Also:



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

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

#proto_down ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#proto_down_reason ⇒ String

Returns:

  • (String)

See Also:



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

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

#qdisc ⇒ String

Returns:

  • (String)

See Also:



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

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

#stats ⇒ Structs::RtnlLinkStats



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

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

#stats64 ⇒ Structs::RtnlLinkStats64



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

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

#target_netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tso_max_segs ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tso_max_size ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#txqlen ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#vf_ports ⇒ AttributeSets::VfPortsAttrs



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

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

#vfinfo_list ⇒ AttributeSets::VfinfoListAttrs



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

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

#weight ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#wireless ⇒ String

struct iw_event

Returns:

  • (String)

See Also:



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

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

#xdp ⇒ AttributeSets::XdpAttrs



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

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