Class: Nl::Linux::Fou::Messages::DoAddRequest

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

Overview

Add port.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Fou
ATTRIBUTES =
Ractor.make_shareable(%i[port ipproto type remcsum_nopartial local_v4 local_v6 peer_v4 peer_v6 peer_port ifindex])

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

Returns:

  • (Integer)

See Also:



245
# File 'nl-linux/generated/nl/linux/fou.rb', line 245

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

#ipproto ⇒ Integer

Returns:

  • (Integer)

See Also:



213
# File 'nl-linux/generated/nl/linux/fou.rb', line 213

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

#local_v4 ⇒ Integer

Returns:

  • (Integer)

See Also:



225
# File 'nl-linux/generated/nl/linux/fou.rb', line 225

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

#local_v6 ⇒ String

Returns:

  • (String)

See Also:



229
# File 'nl-linux/generated/nl/linux/fou.rb', line 229

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

#peer_port ⇒ Integer

Returns:

  • (Integer)

See Also:



241
# File 'nl-linux/generated/nl/linux/fou.rb', line 241

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

#peer_v4 ⇒ Integer

Returns:

  • (Integer)

See Also:



233
# File 'nl-linux/generated/nl/linux/fou.rb', line 233

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

#peer_v6 ⇒ String

Returns:

  • (String)

See Also:



237
# File 'nl-linux/generated/nl/linux/fou.rb', line 237

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

#port ⇒ Integer

Returns:

  • (Integer)

See Also:



209
# File 'nl-linux/generated/nl/linux/fou.rb', line 209

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

#remcsum_nopartial ⇒ Integer

Returns:

  • (Integer)

See Also:



221
# File 'nl-linux/generated/nl/linux/fou.rb', line 221

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

#type ⇒ Integer

Returns:

  • (Integer)

See Also:



217
# File 'nl-linux/generated/nl/linux/fou.rb', line 217

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