Class: PacketGen::Header::IKE::IDr

Inherits:
IDi show all
Defined in:
lib/packetgen/header/ike/id.rb

Overview

This class handles Identification - Responder payloads, denoted IDr. See IDi.

Create a IDr payload

# Create a IKE packet with a IDr payload
pkt = PacketGen.gen('IP').add('UDP').add('IKE').add('IKE::IDr', type: 'FQDN')
pkt.ike_idr.content.read 'fqdn.example.org'

Author:

  • Sylvain Daubert

Since:

  • 2.0.0

Constant Summary collapse

PAYLOAD_TYPE =

Payload type number

Since:

  • 2.0.0

36

Constants inherited from IDi

PacketGen::Header::IKE::IDi::TYPES

Instance Attribute Summary

Attributes inherited from IDi

#reserved, #type

Attributes inherited from Payload

#content, #critical, #flags, #hreserved, #length, #next

Attributes inherited from Base

#packet

Method Summary

Methods inherited from IDi

#human_content, #human_type

Methods inherited from Payload

#base_read, #calc_length, #initialize, #read

Methods inherited from Base

#added_to_packet, bind, bind_header, calculate_and_set_length, #header_id, inherited, #initialize, #ip_header, known_headers, #ll_header, #method_name, #parse?, #protocol_name, protocol_name

Methods inherited from Types::Fields

#[], #[]=, #bits_on, #body=, define_bit_fields_on, define_field, define_field_after, define_field_before, delete_field, fields, #fields, #force_binary, inherited, #initialize, #inspect, #is_optional?, #is_present?, #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::IKE::Payload