Class: DHCP::Inform

Inherits:
Message show all
Defined in:
lib/net/dhcp/core.rb

Overview

Client to server, asking only for local configuration parameters; client already has externally configured network address.

Instance Attribute Summary

Attributes inherited from Message

#chaddr, #ciaddr, #flags, #fname, #giaddr, #hlen, #hops, #htype, #op, #options, #secs, #siaddr, #sname, #xid, #yiaddr

Instance Method Summary collapse

Methods inherited from Message

#==, #eql?, from_udp_payload, #pack, #to_s

Constructor Details

#initialize(params = {}) ⇒ Inform

Returns a new instance of Inform.



357
358
359
360
361
# File 'lib/net/dhcp/core.rb', line 357

def initialize(params={})
  params[:op] = $DHCP_OP_REQUEST
  params[:options] = params.fetch(:options, [MessageTypeOption.new({:payload=>[$DHCP_MSG_INFORM]}), ParameterRequestListOption.new])
  super(params)
end