org.apache.directory.server.dhcp.options.vendor
Class SubnetMask

java.lang.Object
  extended by org.apache.directory.server.dhcp.options.DhcpOption
      extended by org.apache.directory.server.dhcp.options.AddressOption
          extended by org.apache.directory.server.dhcp.options.vendor.SubnetMask

public class SubnetMask
extends AddressOption

The subnet mask option specifies the client's subnet mask as per RFC 950. If both the subnet mask and the router option are specified in a DHCP reply, the subnet mask option MUST be first. The code for the subnet mask option is 1, and its length is 4 octets.

Version:
$Rev: 638228 $, $Date: 2008-03-18 07:12:41 +0100 (Di, 18 M??r 2008) $
Author:
Apache Directory Project

Constructor Summary
SubnetMask()
           
SubnetMask(java.net.InetAddress netmask)
           
 
Method Summary
 byte getTag()
          Get the option's code tag.
 
Methods inherited from class org.apache.directory.server.dhcp.options.AddressOption
getAddress, getData, setAddress, setData
 
Methods inherited from class org.apache.directory.server.dhcp.options.DhcpOption
getClassByTag, getTagByClass, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubnetMask

public SubnetMask()

SubnetMask

public SubnetMask(java.net.InetAddress netmask)
Parameters:
netmask -
Method Detail

getTag

public byte getTag()
Description copied from class: DhcpOption
Get the option's code tag.

Specified by:
getTag in class DhcpOption
Returns:
byte


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.