org.apache.directory.server.dhcp.options.dhcp
Class IpAddressLeaseTime

java.lang.Object
  extended byorg.apache.directory.server.dhcp.options.DhcpOption
      extended byorg.apache.directory.server.dhcp.options.dhcp.IpAddressLeaseTime

public class IpAddressLeaseTime
extends DhcpOption

This option is used in a client request (DHCPDISCOVER or DHCPREQUEST) to allow the client to request a lease time for the IP address. In a server reply (DHCPOFFER), a DHCP server uses this option to specify the lease time it is willing to offer. The time is in units of seconds, and is specified as a 32-bit unsigned integer. The code for this option is 51, and its length is 4.


Constructor Summary
IpAddressLeaseTime(byte[] ipAddressLeaseTime)
           
 
Method Summary
protected  void valueToByteBuffer(java.nio.ByteBuffer out)
           
 
Methods inherited from class org.apache.directory.server.dhcp.options.DhcpOption
writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpAddressLeaseTime

public IpAddressLeaseTime(byte[] ipAddressLeaseTime)
Method Detail

valueToByteBuffer

protected void valueToByteBuffer(java.nio.ByteBuffer out)
Specified by:
valueToByteBuffer in class DhcpOption