Class: Nl::Linux::Lockd::Messages::DoServerSetRequest

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

Overview

set the lockd server parameters

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Server
ATTRIBUTES =
Ractor.make_shareable(%i[gracetime tcp_port udp_port])

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

#gracetime ⇒ Integer

Returns:

  • (Integer)

See Also:



106
# File 'nl-linux/generated/nl/linux/lockd.rb', line 106

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

#tcp_port ⇒ Integer

Returns:

  • (Integer)

See Also:



110
# File 'nl-linux/generated/nl/linux/lockd.rb', line 110

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

#udp_port ⇒ Integer

Returns:

  • (Integer)

See Also:



114
# File 'nl-linux/generated/nl/linux/lockd.rb', line 114

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