Class: Nl::Linux::Ovpn::Messages::DoPeerGetRequest

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

Overview

Retrieve data about existing remote peers (or a specific one)

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
3
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Ovpn
ATTRIBUTES =
Ractor.make_shareable(%i[ifindex peer])

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

#ifindex ⇒ Integer

Index of the ovpn interface to operate on

Returns:

  • (Integer)

See Also:



1626
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 1626

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

#peer ⇒ AttributeSets::Peer

The peer object containing the attributed of interest for the specific operation



1631
# File 'nl-linux/generated/nl/linux/ovpn.rb', line 1631

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