Class: Pio::Dhcp::Frame

Inherits:
BinData::Record show all
Includes:
FieldUtil, Ethernet, IPv4, UdpHeader
Defined in:
lib/pio/dhcp/frame.rb

Overview

Dhcp frame parser.

Constant Summary collapse

OPTION_FIELD_LENGTH =
60

Constants included from Ethernet

Ethernet::MINIMUM_FRAME_SIZE

Instance Method Summary collapse

Methods included from UdpHeader

included

Methods included from Payload

#binary_after

Methods included from IPv4

included, #ip_header_length_in_bytes, #to_exact_match

Methods included from Ethernet

#ethernet_header_length, included

Methods included from FieldUtil

#bootp_flags, #client_identifier, #client_ip_address, #client_mac_address, #hops, #hw_addr_len, #hw_addr_type, #ip_address_lease_time, #message_type, #next_server_ip_address, #parameters_list, #rebinding_time_value, #relay_agent_ip_address, #renewal_time_value, #requested_ip_address, #seconds, #server_identifier, #subnet_mask, #transaction_id, #your_ip_address

Instance Method Details

#to_binaryObject



28
29
30
# File 'lib/pio/dhcp/frame.rb', line 28

def to_binary
  to_binary_s
end