lib/pio/icmp/reply.rb in pio-0.27.2 vs lib/pio/icmp/reply.rb in pio-0.28.0
- old
+ new
@@ -11,12 +11,12 @@
# User options for creating an ICMP Reply.
class Options < Pio::Icmp::Options
mandatory_option :source_mac
mandatory_option :destination_mac
- mandatory_option :ip_source_address
- mandatory_option :ip_destination_address
+ mandatory_option :source_ip_address
+ mandatory_option :destination_ip_address
mandatory_option :identifier
mandatory_option :sequence_number
option :echo_data
# rubocop:disable MethodLength
@@ -25,13 +25,13 @@
validate options
@type = TYPE
@source_mac = Mac.new(options[:source_mac]).freeze
@destination_mac = Mac.new(options[:destination_mac]).freeze
- @ip_source_address =
- IPv4Address.new(options[:ip_source_address]).freeze
- @ip_destination_address =
- IPv4Address.new(options[:ip_destination_address]).freeze
+ @source_ip_address =
+ IPv4Address.new(options[:source_ip_address]).freeze
+ @destination_ip_address =
+ IPv4Address.new(options[:destination_ip_address]).freeze
@identifier = options[:identifier]
@sequence_number = options[:sequence_number]
@echo_data = options[:echo_data] || ''
end
# rubocop:enable AbcSize