Class: Pio::Dhcp::BootRequestOptions
- Includes:
- CommonOptions, DhcpTlvOptions
- Defined in:
- lib/pio/dhcp/boot_request_options.rb
Overview
Options for creating a DHCP message.
Direct Known Subclasses
Constant Summary
Constants included from CommonOptions
CommonOptions::BOOTPC, CommonOptions::BOOTPS, CommonOptions::BROADCAST_IP_ADDRESS, CommonOptions::BROADCAST_MAC_ADDRESS, CommonOptions::QUAD_ZERO_IP_ADDRESS
Instance Method Summary collapse
-
#initialize(options) ⇒ BootRequestOptions
constructor
A new instance of BootRequestOptions.
- #to_hash ⇒ Object
Methods included from DhcpTlvOptions
#client_identifier_hash, #dhcp_server_identifier_hash, #ip_address_lease_time_hash, #message_type_hash, #parameters_list_hash, #rebinding_time_value_hash, #renewal_time_value_hash, #requested_ip_address_hash, #subnet_mask_hash
Methods included from CommonOptions
#destination_mac, #dhcp_data, #ip_address_lease_time, #ip_destination_address, #ip_source_address, #rebinding_time_value, #renewal_time_value, #requested_ip_address, #source_mac, #subnet_mask, #transaction_id, #type
Methods inherited from Options
Constructor Details
#initialize(options) ⇒ BootRequestOptions
Returns a new instance of BootRequestOptions.
21 22 23 24 |
# File 'lib/pio/dhcp/boot_request_options.rb', line 21 def initialize() validate @options = end |
Instance Method Details
#to_hash ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/pio/dhcp/boot_request_options.rb', line 26 def to_hash { destination_mac: destination_mac, source_mac: source_mac, ip_source_address: QUAD_ZERO_IP_ADDRESS, ip_destination_address: BROADCAST_IP_ADDRESS, udp_src_port: BOOTPC, udp_dst_port: BOOTPS, dhcp: dhcp_data } end |