class PacketGen::Header::EAP::TLS
Extensible Authentication Protocol (EAP
) - TLS
, {tools.ietf.org/html/rfc5216 RFC 5216}
{EAP::TLS} has following fields:
-
{#flags} ({Types::Int8}),
-
optionally {#tls_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/tls.rb, line 49 def inspect super do |attr| next unless attr == :flags str = Inspect.shift_level 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] end end