Class: Nl::Linux::Fou::AttributeSets::Fou

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

Defined Under Namespace

Classes: Af, Attribute, Ifindex, Ipproto, LocalV4, LocalV6, PeerPort, PeerV4, PeerV6, Port, RemcsumNopartial, Type

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#af ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ipproto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#local_v4 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#local_v6 ⇒ String

Returns:

  • (String)

See Also:



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

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

#peer_port ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#peer_v4 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#peer_v6 ⇒ String

Returns:

  • (String)

See Also:



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

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

#port ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#remcsum_nopartial ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#type ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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