Class: Nl::Linux::Conntrack::AttributeSets::TupleProtoAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Conntrack::AttributeSets::TupleProtoAttrs
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#proto_dst_port ⇒ Integer
l4 source port.
- #proto_icmp_code ⇒ Integer
-
#proto_icmp_id ⇒ Integer
l4 icmp id.
- #proto_icmp_type ⇒ Integer
- #proto_icmpv6_code ⇒ Integer
-
#proto_icmpv6_id ⇒ Integer
l4 icmp id.
- #proto_icmpv6_type ⇒ Integer
-
#proto_num ⇒ Integer
l4 protocol number.
-
#proto_src_port ⇒ Integer
l4 source port.
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.
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.
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
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
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
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
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
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
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
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
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
324 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 324 def proto_src_port; self[:"proto_src_port"]&.value; end |