Class: PacketGen::Header::SCTP::SupportedAddrTypesParameter

Inherits:
Object
  • Object
show all
Includes:
ParameterMixin
Defined in:
lib/packetgen/header/sctp/parameter.rb

Overview

Supported address types parameter

Author:

  • Sylvain Daubert

Since:

  • 3.4.0

Instance Method Summary collapse

Methods included from ParameterMixin

#parameter_name

Methods included from Padded32

#padded?, #to_s

Instance Method Details

#to_human::String

Returns:

  • (::String)

Since:

  • 3.4.0



151
152
153
154
155
156
# File 'lib/packetgen/header/sctp/parameter.rb', line 151

def to_human
  types = self[:value].map(&:to_i).map do |int16|
    Parameter::TYPES.key(int16) || int16.to_s
  end.join(',')
  "<#{parameter_name}: #{types}>"
end