Sha256: 8a7c00251d3f8b08a73ad1d56b57139c8a542473176b3a05795b5d8c3e1f84f6

Contents?: true

Size: 541 Bytes

Versions: 21

Compression:

Stored size: 541 Bytes

Contents

require 'pio/options'

module Pio
  class Icmp
    # User options for creating an ICMP messages.
    class Options < Pio::Options
      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

21 entries across 21 versions & 1 rubygems

Version Path
pio-0.27.2 lib/pio/icmp/options.rb
pio-0.27.1 lib/pio/icmp/options.rb
pio-0.27.0 lib/pio/icmp/options.rb
pio-0.26.0 lib/pio/icmp/options.rb
pio-0.25.0 lib/pio/icmp/options.rb
pio-0.24.2 lib/pio/icmp/options.rb
pio-0.24.1 lib/pio/icmp/options.rb
pio-0.24.0 lib/pio/icmp/options.rb
pio-0.23.1 lib/pio/icmp/options.rb
pio-0.23.0 lib/pio/icmp/options.rb
pio-0.22.0 lib/pio/icmp/options.rb
pio-0.21.1 lib/pio/icmp/options.rb
pio-0.21.0 lib/pio/icmp/options.rb
pio-0.20.1 lib/pio/icmp/options.rb
pio-0.20.0 lib/pio/icmp/options.rb
pio-0.19.0 lib/pio/icmp/options.rb
pio-0.18.2 lib/pio/icmp/options.rb
pio-0.18.1 lib/pio/icmp/options.rb
pio-0.18.0 lib/pio/icmp/options.rb
pio-0.17.0 lib/pio/icmp/options.rb