class DHCP::OptIPList
Class for DHCP options that contain a list of IPv4 addresses
Public Instance Methods
bin_to_data(data)
click to toggle source
# File lib/dhcp/options.rb, line 306 def bin_to_data(data) IPAddress::IPv4::parse_data(data).to_s end
data_to_bin(data)
click to toggle source
# File lib/dhcp/options.rb, line 310 def data_to_bin(data) IPAddress::IPv4.new(data).data ## Will raise exception if data is not a valid IP end