Class: PacketGen::Header::EAP::MD5
- Inherits:
-
PacketGen::Header::EAP
- Object
- Types::Fields
- Base
- PacketGen::Header::EAP
- PacketGen::Header::EAP::MD5
- Defined in:
- lib/packetgen/header/eap/md5.rb
Overview
Extensible Authentication Protocol (EAP) - MD5 challenge
Constant Summary
Constants inherited from PacketGen::Header::EAP
Instance Attribute Summary collapse
- #optional_name ⇒ ::String
- #value ⇒ ::String
-
#value_size ⇒ Integer
8-bit value size.
Attributes inherited from PacketGen::Header::EAP
#body, #code, #id, #length, #type, #vendor_id, #vendor_type
Attributes inherited from Base
Instance Method Summary collapse
- #initialize(options = {}) ⇒ EAP::MD5 constructor
Methods inherited from PacketGen::Header::EAP
#added_to_packet, #calc_length, #desired_auth_type, #failure?, #has_type?, #human_code, #human_type, #old_read, #read, #reply!, #request?, #response?, #success?, #type?
Methods inherited from Base
#added_to_packet, bind, bind_header, calculate_and_set_length, #header_id, inherited, #ip_header, known_headers, #ll_header, #method_name, #parse?, #protocol_name, protocol_name
Methods inherited from Types::Fields
#[], #[]=, #body=, define_bit_fields_on, define_field, define_field_after, define_field_before, delete_field, #fields, #force_binary, inherited, #inspect, #is_optional?, #is_present?, #offset_of, #optional_fields, #read, #sz, #to_h, #to_s
Constructor Details
#initialize(options = {}) ⇒ EAP::MD5
31 32 33 |
# File 'lib/packetgen/header/eap/md5.rb', line 31 def initialize(={}) super({ type: 4 }.merge!()) end |
Instance Attribute Details
#optional_name ⇒ ::String
28 |
# File 'lib/packetgen/header/eap/md5.rb', line 28 define_field :optional_name, Types::String |
#value ⇒ ::String
24 25 |
# File 'lib/packetgen/header/eap/md5.rb', line 24 define_field :value, Types::String, builder: ->(h, t) { t.new(length_from: h[:value_size]) } |
#value_size ⇒ Integer
Returns 8-bit value size.
21 |
# File 'lib/packetgen/header/eap/md5.rb', line 21 define_field :value_size, Types::Int8 |