Class: Nl::Linux::MptcpPm::AttributeSets::Attr

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/mptcp_pm.rb

Defined Under Namespace

Classes: Addr, AddrRemote, Attribute, LocId, RcvAddAddrs, Subflows, Token

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



434
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 434

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



440
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 440

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#addr ⇒ AttributeSets::Address

Returns:

See Also:



407
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 407

def addr; self[:"addr"]&.value; end

#addr_remote ⇒ AttributeSets::Address

Returns:

See Also:



427
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 427

def addr_remote; self[:"addr_remote"]&.value; end

#loc_id ⇒ Integer

Returns:

  • (Integer)

See Also:



423
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 423

def loc_id; self[:"loc_id"]&.value; end

#rcv_add_addrs ⇒ Integer

Returns:

  • (Integer)

See Also:



411
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 411

def rcv_add_addrs; self[:"rcv_add_addrs"]&.value; end

#subflows ⇒ Integer

Returns:

  • (Integer)

See Also:



415
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 415

def subflows; self[:"subflows"]&.value; end

#token ⇒ Integer

Returns:

  • (Integer)

See Also:



419
# File 'nl-linux/generated/nl/linux/mptcp_pm.rb', line 419

def token; self[:"token"]&.value; end