Class: Nl::Linux::Tc::AttributeSets::ActBpfAttrs

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

Defined Under Namespace

Classes: Attribute, Fd, Id, Name, Ops, OpsLen, Pad, Parms, Tag, Tm

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:



3006
# File 'nl-linux/generated/nl/linux/tc.rb', line 3006

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



3012
# File 'nl-linux/generated/nl/linux/tc.rb', line 3012

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

Instance Method Details

#fd ⇒ Integer

Returns:

  • (Integer)

See Also:



2987
# File 'nl-linux/generated/nl/linux/tc.rb', line 2987

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

#id ⇒ String

Returns:

  • (String)

See Also:



2999
# File 'nl-linux/generated/nl/linux/tc.rb', line 2999

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

#name ⇒ String

Returns:

  • (String)

See Also:



2991
# File 'nl-linux/generated/nl/linux/tc.rb', line 2991

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

#ops ⇒ String

Returns:

  • (String)

See Also:



2983
# File 'nl-linux/generated/nl/linux/tc.rb', line 2983

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

#ops_len ⇒ Integer

Returns:

  • (Integer)

See Also:



2979
# File 'nl-linux/generated/nl/linux/tc.rb', line 2979

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

#parms ⇒ String

Returns:

  • (String)

See Also:



2975
# File 'nl-linux/generated/nl/linux/tc.rb', line 2975

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

#tag ⇒ String

Returns:

  • (String)

See Also:



2995
# File 'nl-linux/generated/nl/linux/tc.rb', line 2995

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

#tm ⇒ Structs::TcfT

Returns:

See Also:



2971
# File 'nl-linux/generated/nl/linux/tc.rb', line 2971

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