Class: Nl::Linux::Tc::AttributeSets::BpfAttrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, Fd, Flags, FlagsGen, Id, Name, Ops, OpsLen, Police, Tag

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#fd ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flags ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flags_gen ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

Returns:

  • (String)

See Also:



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

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

#ops ⇒ String

Returns:

  • (String)

See Also:



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

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

#ops_len ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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

#tag ⇒ String

Returns:

  • (String)

See Also:



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

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