module Pio::Dhcp::CommonOptions
Constants
- BOOTPC
- BOOTPS
- BROADCAST_IP_ADDRESS
- BROADCAST_MAC_ADDRESS
- QUAD_ZERO_IP_ADDRESS
Public Instance Methods
destination_ip_address()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 33 def destination_ip_address IPv4Address.new(@options[:destination_ip_address]) end
destination_mac()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 25 def destination_mac Mac.new(@options[:destination_mac] || BROADCAST_MAC_ADDRESS) end
dhcp_data()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 13 def dhcp_data Dhcp::DhcpField.new(dhcp_field_values) end
ip_address_lease_time()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 60 def ip_address_lease_time @options[:ip_address_lease_time] end
rebinding_time_value()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 56 def rebinding_time_value @options[:rebinding_time_value] end
renewal_time_value()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 52 def renewal_time_value @options[:renewal_time_value] end
requested_ip_address()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 64 def requested_ip_address IPv4Address.new( @options[:requested_ip_address] || QUAD_ZERO_IP_ADDRESS ) end
server_identifier()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 37 def server_identifier IPv4Address.new( @options[:server_identifier] || source_ip_address ) end
source_ip_address()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 29 def source_ip_address IPv4Address.new(@options[:source_ip_address]) end
source_mac()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 21 def source_mac Mac.new(@options[:source_mac]) end
subnet_mask()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 43 def subnet_mask subnet = @options[:subnet_mask] IPv4Address.new(subnet) if subnet end
transaction_id()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 48 def transaction_id @options[:transaction_id] end
type()
click to toggle source
# File lib/pio/dhcp/common_options.rb, line 17 def type @options[:type] end