lib/pio/dhcp/optional_tlv.rb in pio-0.4.0 vs lib/pio/dhcp/optional_tlv.rb in pio-0.5.0

- old
+ new

@@ -1,10 +1,9 @@ # encoding: utf-8 -require 'pio/dhcp/type/dhcp_param_list' -require 'pio/dhcp/type/dhcp_client_id' -require 'pio/dhcp/type/dhcp_string' +require 'pio/dhcp/parameter_list' +require 'pio/dhcp/client_id' require 'pio/type/ip_address' module Pio # Dhcp parser and generator. class Dhcp @@ -27,10 +26,10 @@ uint32be Dhcp::IP_ADDRESS_LEASE_TIME_TLV ip_address Dhcp::SUBNET_MASK_TLV ip_address Dhcp::REQUESTED_IP_ADDRESS_TLV client_id Dhcp::CLIENT_IDENTIFIER_TLV parameter_list Dhcp::PARAMETERS_LIST_TLV - dhcp_string DEFAULT + string DEFAULT end def end_of_dhcptlv? tlv_type == Dhcp::END_OF_TLV end