Class: Nl::Linux::Conntrack::AttributeSets::TupleProtoAttrs

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

Defined Under Namespace

Classes: Attribute, ProtoDstPort, ProtoIcmpCode, ProtoIcmpId, ProtoIcmpType, ProtoIcmpv6Code, ProtoIcmpv6Id, ProtoIcmpv6Type, ProtoNum, ProtoSrcPort

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:



362
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 362

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



368
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 368

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

Instance Method Details

#proto_dst_port ⇒ Integer

l4 source port

Returns:

  • (Integer)

See Also:



329
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 329

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

#proto_icmp_code ⇒ Integer

Returns:

  • (Integer)

See Also:



342
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 342

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

#proto_icmp_id ⇒ Integer

l4 icmp id

Returns:

  • (Integer)

See Also:



334
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 334

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

#proto_icmp_type ⇒ Integer

Returns:

  • (Integer)

See Also:



338
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 338

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

#proto_icmpv6_code ⇒ Integer

Returns:

  • (Integer)

See Also:



355
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 355

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

#proto_icmpv6_id ⇒ Integer

l4 icmp id

Returns:

  • (Integer)

See Also:



347
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 347

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

#proto_icmpv6_type ⇒ Integer

Returns:

  • (Integer)

See Also:



351
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 351

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

#proto_num ⇒ Integer

l4 protocol number

Returns:

  • (Integer)

See Also:



319
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 319

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

#proto_src_port ⇒ Integer

l4 source port

Returns:

  • (Integer)

See Also:



324
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 324

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