Class: Nl::Linux::Conntrack::AttributeSets::ProtoinfoTcpAttrs

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

Defined Under Namespace

Classes: Attribute, TcpFlagsOriginal, TcpFlagsReply, TcpState, TcpWscaleOriginal, TcpWscaleReply

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#tcp_flags_original ⇒ Structs::NfCtTcpFlagsMask



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

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

#tcp_flags_reply ⇒ Structs::NfCtTcpFlagsMask



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

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

#tcp_state ⇒ Integer

tcp connection state

Known enum values are defined in Enums::NfCtTcpState.

Returns:

  • (Integer)

See Also:



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

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

#tcp_wscale_original ⇒ Integer

window scaling factor in original direction

Returns:

  • (Integer)

See Also:



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

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

#tcp_wscale_reply ⇒ Integer

window scaling factor in reply direction

Returns:

  • (Integer)

See Also:



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

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