blob: 90cae3611e5e557e747beac5cef09feedde62703 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
package org.apache.directory.server.dhcp.options.dhcp;
import org.apache.directory.server.dhcp.options.IntOption;
/**
* 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.
*
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Rev$, $Date$
*/
public class IpAddressLeaseTime extends IntOption
{
public IpAddressLeaseTime()
{
}
public IpAddressLeaseTime(long leaseTime)
{
setIntValue( leaseTime );
}
/*
* @see org.apache.directory.server.dhcp.options.DhcpOption#getTag()
*/
public byte getTag()
{
return 51;
}
}