class DHCP::OfferPacket

Public Class Methods

new(pk, opt={}) click to toggle source
Calls superclass method DHCP::ServerResponsePacket.new
# File lib/dhcp/packet.rb, line 388
def initialize(pk, opt={})
  super(pk, opt)
  @op = DHCP::BOOTREPLY
  include_opts(
    DHCP::make_opt_name(:dhcp_message_type, DHCP::DHCPOFFER),
    DHCP::make_opt_name(:perform_mask_discovery, false),
    DHCP::make_opt_name(:mask_supplier, false),
    DHCP::make_opt_name(:perform_router_discovery, false)
  )
end