Class: Nl::Linux::Ovpn::Messages::DoKeyNewRequest

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

Overview

Add a cipher key for a specific peer

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

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

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:



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

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

#keyconf ⇒ AttributeSets::Keyconf

Peer specific cipher configuration



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

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