Class: Nl::Linux::Nftables::SubMessages::ExprOps::Counter

Inherits:
SubMessage
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nftables.rb

Constant Summary collapse

FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::ExprCounterAttrs

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods included from StructuredPayload

#encode, #initialize

Instance Method Details

#bytes ⇒ Integer

Number of bytes

Returns:

  • (Integer)

See Also:



4177
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4177

def bytes; attributes[:"bytes"]&.value; end

#packets ⇒ Integer

Number of packets

Returns:

  • (Integer)

See Also:



4182
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4182

def packets; attributes[:"packets"]&.value; end