Class: DHCP::Release
Overview
Client to server relinquishing network address and cancelling remaining lease.
By default an ACK message will contain a Server Identifier (0.0.0.0)
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 = {}) ⇒ Release
constructor
A new instance of Release.
Methods inherited from Message
#==, #eql?, from_udp_payload, #pack, #to_s
Constructor Details
#initialize(params = {}) ⇒ Release
340 341 342 343 344 345 346 347 |
# File 'lib/net/dhcp/core.rb', line 340 def initialize(params={}) params[:op] = $DHCP_OP_REQUEST params[:options] = params.fetch(:options, [ MessageTypeOption.new({:payload=>[$DHCP_MSG_RELEASE]}), ServerIdentifierOption.new ]) super(params) end |