Class: DHCP::Request
Overview
Client message to servers either (a) requesting offered parameters from one server and implicitly declining offers from all others, (b) confirming correctness of previously allocated address after, e.g., system reboot, or © extending the lease on a particular 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
-
#initialize(params = {}) ⇒ Request
constructor
A new instance of Request.
Methods inherited from Message
#==, #eql?, from_udp_payload, #pack, #to_s
Constructor Details
#initialize(params = {}) ⇒ Request
Returns a new instance of Request.
303 304 305 306 307 |
# File 'lib/net/dhcp/core.rb', line 303 def initialize(params={}) params[:op] = $DHCP_OP_REQUEST params[:options] = params.fetch(:options, [MessageTypeOption.new({:payload=>[$DHCP_MSG_REQUEST]}), ParameterRequestListOption.new]) super(params) end |