001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 * 019 */ 020 021package org.apache.directory.server.dhcp.options.dhcp; 022 023 024import org.apache.directory.server.dhcp.options.DhcpOption; 025 026 027/** 028 * This option is used by DHCP clients to specify their unique 029 * identifier. DHCP servers use this value to index their database of 030 * address bindings. This value is expected to be unique for all 031 * clients in an administrative domain. 032 * 033 * Identifiers SHOULD be treated as opaque objects by DHCP servers. 034 * 035 * The client identifier MAY consist of type-value pairs similar to the 036 * 'htype'/'chaddr' fields. For instance, it MAY consist 037 * of a hardware type and hardware address. In this case the type field 038 * SHOULD be one of the ARP hardware types defined in STD2. A 039 * hardware type of 0 (zero) should be used when the value field 040 * contains an identifier other than a hardware address (e.g. a fully 041 * qualified domain name). 042 * 043 * For correct identification of clients, each client's client- 044 * identifier MUST be unique among the client-identifiers used on the 045 * subnet to which the client is attached. Vendors and system 046 * administrators are responsible for choosing client-identifiers that 047 * meet this requirement for uniqueness. 048 * 049 * The code for this option is 61, and its minimum length is 2. 050 * 051 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 052 */ 053public class ClientIdentifier extends DhcpOption 054{ 055 /* 056 * @see org.apache.directory.server.dhcp.options.DhcpOption#getTag() 057 */ 058 public byte getTag() 059 { 060 return 61; 061 } 062}