Class: PacketGen::Header::EAP::MD5

Inherits:
PacketGen::Header::EAP show all
Defined in:
lib/packetgen/header/eap/md5.rb

Overview

Extensible Authentication Protocol (EAP) - MD5 challenge

Author:

  • Sylvain Daubert

Since:

  • 2.1.4

Constant Summary

Constants inherited from PacketGen::Header::EAP

CODES, TYPES

Instance Attribute Summary collapse

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.

Returns:

  • (::String)


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

Returns:

  • (::String)


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_sizeInteger

8-bit size of the #value attribute.

Returns:

  • (Integer)


23
# File 'lib/packetgen/header/eap/md5.rb', line 23

define_attr :value_size, BinStruct::Int8