Class: Nl::Linux::Conntrack::AttributeSets::TupleIpAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Conntrack::AttributeSets::TupleIpAttrs
- Defined in:
- nl-linux/generated/nl/linux/conntrack.rb
Defined Under Namespace
Classes: Attribute, IpV4Dst, IpV4Src, IpV6Dst, IpV6Src
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
-
#ip_v4_dst ⇒ Integer
ipv4 destination address.
-
#ip_v4_src ⇒ Integer
ipv4 source address.
-
#ip_v6_dst ⇒ String
ipv6 destination address.
-
#ip_v6_src ⇒ String
ipv6 source address.
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.
441 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 441 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
447 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 447 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#ip_v4_dst ⇒ Integer
ipv4 destination address
424 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 424 def ip_v4_dst; self[:"ip_v4_dst"]&.value; end |
#ip_v4_src ⇒ Integer
ipv4 source address
419 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 419 def ip_v4_src; self[:"ip_v4_src"]&.value; end |
#ip_v6_dst ⇒ String
ipv6 destination address
434 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 434 def ip_v6_dst; self[:"ip_v6_dst"]&.value; end |
#ip_v6_src ⇒ String
ipv6 source address
429 |
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 429 def ip_v6_src; self[:"ip_v6_src"]&.value; end |