Class: PacketGen::Header::EAP::MD5
- Inherits:
-
PacketGen::Header::EAP
- Object
- BinStruct::Struct
- 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
-
#name ⇒ ::String
(also: #optional_name)
Name identifying the system sending the packet.
-
#value ⇒ ::String
MD5 challenge value, as an octet stream, as per RFC1994.
-
#value_size ⇒ Integer
8-bit size of the #value attribute.
Attributes inherited from PacketGen::Header::EAP
#body, #code, #id, #length, #type, #vendor_id, #vendor_type
Method Summary
Methods inherited from PacketGen::Header::EAP
#added_to_packet, #calc_length, #desired_auth_type, #failure?, #human_code, #human_type, #initialize, #nak?, #old_read, #read, #reply!, #request?, #response?, #success?, #type?
Methods inherited from Base
bind, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, #ll_header
Methods included from PacketGen::Headerable
#added_to_packet, included, #method_name, #packet, #packet=, #parse?, #protocol_name, #read, #to_s
Constructor Details
This class inherits a constructor from PacketGen::Header::EAP
Instance Attribute Details
#name ⇒ ::String Also known as: optional_name
Name identifying the system sending the packet. It is or or more octets. Its size is determined from the PacketGen::Header::EAP#length attribute.
34 |
# File 'lib/packetgen/header/eap/md5.rb', line 34 define_attr :name, BinStruct::String |
#value ⇒ ::String
MD5 challenge value, as an octet stream, as per RFC1994
27 28 |
# File 'lib/packetgen/header/eap/md5.rb', line 27 define_attr :value, BinStruct::String, builder: ->(h, t) { t.new(length_from: h[:value_size]) } |
#value_size ⇒ Integer
8-bit size of the #value attribute.
23 |
# File 'lib/packetgen/header/eap/md5.rb', line 23 define_attr :value_size, BinStruct::Int8 |