Class: Nl::Linux::Psp::Notifications::DevAddNtf

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

Overview

Notification about device appearing.

Multicast group: mgmt.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dev
ATTRIBUTES =
Ractor.make_shareable(%i[id ifindex psp_versions_cap psp_versions_ena assoc_list by_association])

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

#assoc_list ⇒ Array<AttributeSets::AssocDevInfo>

List of associated virtual devices.



1141
# File 'nl-linux/generated/nl/linux/psp.rb', line 1141

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

#by_association ⇒ Integer

Flag indicating the PSP device is an associated device from a different network namespace. Present when in associated namespace, absent when in primary/host namespace.

Returns:

  • (Integer)

See Also:



1149
# File 'nl-linux/generated/nl/linux/psp.rb', line 1149

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

#id ⇒ Integer

PSP device ID.

Returns:

  • (Integer)

See Also:



1116
# File 'nl-linux/generated/nl/linux/psp.rb', line 1116

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

#ifindex ⇒ Integer

ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.

Returns:

  • (Integer)

See Also:



1122
# File 'nl-linux/generated/nl/linux/psp.rb', line 1122

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

#psp_versions_cap ⇒ Integer

Bitmask of PSP versions supported by the device.

Known flags are defined in Flags::Version.

Returns:

  • (Integer)

See Also:



1129
# File 'nl-linux/generated/nl/linux/psp.rb', line 1129

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

#psp_versions_ena ⇒ Integer

Bitmask of currently enabled (accepted on Rx) PSP versions.

Known flags are defined in Flags::Version.

Returns:

  • (Integer)

See Also:



1136
# File 'nl-linux/generated/nl/linux/psp.rb', line 1136

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