Sha256: 99c019dc74b3e3622f5494b5eaaa74d84241ea570aa04b183d2aabe1c42cb299

Contents?: true

Size: 597 Bytes

Versions: 6

Compression:

Stored size: 597 Bytes

Contents

# encoding: utf-8

require 'pio/options'

module Pio
  class Icmp
    # User options for creating an ICMP messages.
    class Options < Pio::Options
      DEFAULT_ECHO_DATA = ''.freeze

      def to_hash
        {
          icmp_type: @type,
          source_mac: @source_mac,
          destination_mac: @destination_mac,
          ip_source_address: @ip_source_address,
          ip_destination_address: @ip_destination_address,
          icmp_identifier: @identifier,
          icmp_sequence_number: @sequence_number,
          echo_data: @echo_data
        }.freeze
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pio-0.8.1 lib/pio/icmp/options.rb
pio-0.8.0 lib/pio/icmp/options.rb
pio-0.7.0 lib/pio/icmp/options.rb
pio-0.6.0 lib/pio/icmp/options.rb
pio-0.5.0 lib/pio/icmp/options.rb
pio-0.4.0 lib/pio/icmp/options.rb