Class: Pio::Dhcp::BootReplyOptions
- Includes:
- CommonOptions, DhcpTlvOptions
- Defined in:
- lib/pio/dhcp/boot_reply_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) ⇒ BootReplyOptions
constructor
A new instance of BootReplyOptions.
- #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) ⇒ BootReplyOptions
Returns a new instance of BootReplyOptions.
26 27 28 |
# File 'lib/pio/dhcp/boot_reply_options.rb', line 26 def initialize() @options = end |
Instance Method Details
#to_hash ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/pio/dhcp/boot_reply_options.rb', line 30 def to_hash { destination_mac: destination_mac, source_mac: source_mac, ip_destination_address: ip_destination_address, ip_source_address: ip_source_address, udp_src_port: BOOTPS, udp_dst_port: BOOTPC, dhcp: dhcp_data } end |