class PacketGen::Header::EAP::TTLS
Extensible Authentication Protocol (EAP
) - Tunneled-TLS, {tools.ietf.org/html/rfc5281 RFC 5281}
{EAP::TTLS} has following fields:
-
{#flags} ({Types::Int8}),
-
optionally {#message_length} ({Types::Int32}), if
#l?
istrue
, -
{#body} ({Types::String}).
@author Sylvain Daubert @since 2.1.4
Public Instance Methods
inspect()
click to toggle source
@return [String]
Calls superclass method
# File lib/packetgen/header/eap/ttls.rb, line 53 def inspect super do |attr| next unless attr == :flags shift = Inspect.shift_level str = shift.dup value = %i[l m s].map { |f| send("#{f}?") ? f.to_s : '.' }.join value = '%-16s (0x%02x)' % [value, self.flags] str << Inspect::FMT_ATTR % [self[attr].class.to_s.sub(/.*::/, ''), attr, value] str << shift str << Inspect::FMT_ATTR % ['', 'version', self.version] end end