Class: Nl::Linux::Psp::Messages::DoDevAssocRequest
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Psp::Messages::DoDevAssocRequest
- Defined in:
- nl-linux/generated/nl/linux/psp.rb
Overview
Associate a network device with a PSP device.
Requires CAP_NET_ADMIN in the initial user namespace.
Constant Summary collapse
- TYPE =
11- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::Dev
- ATTRIBUTES =
Ractor.make_shareable(%i[id ifindex nsid])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#id ⇒ Integer
PSP device ID.
-
#ifindex ⇒ Integer
ifindex of the main netdevice linked to the PSP device, or the ifindex to associate with the PSP device.
-
#nsid ⇒ Integer
Network namespace ID for the device to associate/disassociate.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#id ⇒ Integer
PSP device ID.
1042 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1042 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.
1048 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1048 def ifindex; attributes[:"ifindex"]&.value; end |
#nsid ⇒ Integer
Network namespace ID for the device to associate/disassociate. Optional for dev-assoc and dev-disassoc; if not present, the device is looked up in the caller's network namespace.
1055 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1055 def nsid; attributes[:"nsid"]&.value; end |