Class: Nl::Linux::Tc::AttributeSets::U32Attrs

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

Defined Under Namespace

Classes: Act, Attribute, Classid, Divisor, Flags, Hash, Indev, Link, Mark, Pad, Pcnt, Police, Sel

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ Array<AttributeSets::ActAttrs>

Returns:

See Also:



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

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

#classid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#divisor ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flags ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#hash ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#indev ⇒ String

Returns:

  • (String)

See Also:



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

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

Returns:

  • (Integer)

See Also:



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

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

#mark ⇒ Structs::TcU32Mark

Returns:

See Also:



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

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

#pcnt ⇒ Structs::TcU32Pcnt

Returns:

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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

#sel ⇒ Structs::TcU32Sel

Returns:

See Also:



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

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