Class: Nl::Linux::Handshake::Messages::DoAcceptReply

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

Overview

Handler retrieves next queued handshake request

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Accept
ATTRIBUTES =
Ractor.make_shareable(%i[sockfd message_type timeout auth_mode peer_identity certificate peername keyring])

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

#auth_mode ⇒ Integer

Known enum values are defined in Enums::Auth.

Returns:

  • (Integer)

See Also:



352
# File 'nl-linux/generated/nl/linux/handshake.rb', line 352

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

#certificate ⇒ Array<AttributeSets::X509>



360
# File 'nl-linux/generated/nl/linux/handshake.rb', line 360

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

#keyring ⇒ Integer

Returns:

  • (Integer)

See Also:



368
# File 'nl-linux/generated/nl/linux/handshake.rb', line 368

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

#message_type ⇒ Integer

Known enum values are defined in Enums::MsgType.

Returns:

  • (Integer)

See Also:



343
# File 'nl-linux/generated/nl/linux/handshake.rb', line 343

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

#peer_identity ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



356
# File 'nl-linux/generated/nl/linux/handshake.rb', line 356

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

#peername ⇒ String

Returns:

  • (String)

See Also:



364
# File 'nl-linux/generated/nl/linux/handshake.rb', line 364

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

#sockfd ⇒ Integer

Returns:

  • (Integer)

See Also:



338
# File 'nl-linux/generated/nl/linux/handshake.rb', line 338

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

#timeout ⇒ Integer

Returns:

  • (Integer)

See Also:



347
# File 'nl-linux/generated/nl/linux/handshake.rb', line 347

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