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, #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

Methods inherited from Types::Fields

#[], #[]=, #bits_on, define_bit_fields_on, define_field, define_field_after, define_field_before, #fields, fields, inherited, #initialize, #inspect, #offset_of, #optional?, #optional_fields, #present?, #read, remove_bit_fields_on, remove_field, #sz, #to_h, #to_s, update_field

Constructor Details

This class inherits a constructor from PacketGen::Header::EAP

Instance Attribute Details

#optional_name::String

Returns:

  • (::String)


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

define_field :optional_name, Types::String

#value::String

Returns:

  • (::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_sizeInteger

Returns 8-bit value size.

Returns:

  • (Integer)

    8-bit value size



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

define_field :value_size, Types::Int8