Class: Pio::Icmp::Reply::Options
- Defined in:
- lib/pio/icmp/reply.rb
Overview
User options for creating an ICMP Reply.
Constant Summary
Constants inherited from Options
Instance Method Summary collapse
-
#initialize(options) ⇒ Options
constructor
rubocop:disable MethodLength.
Methods inherited from Options
Methods inherited from Options
Constructor Details
#initialize(options) ⇒ Options
rubocop:disable MethodLength
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/pio/icmp/reply.rb', line 26 def initialize() validate @type = TYPE @source_mac = Mac.new([:source_mac]).freeze @destination_mac = Mac.new([:destination_mac]).freeze @ip_source_address = IPv4Address.new([:ip_source_address]).freeze @ip_destination_address = IPv4Address.new([:ip_destination_address]).freeze @identifier = [:identifier] @sequence_number = [:sequence_number] @echo_data = [:echo_data] || DEFAULT_ECHO_DATA end |