1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 *
19 */
20
21 package org.apache.directory.server.dhcp.options.dhcp;
22
23
24 import org.apache.directory.server.dhcp.options.DhcpOption;
25
26
27 /**
28 * This option is used by DHCP clients to specify their unique
29 * identifier. DHCP servers use this value to index their database of
30 * address bindings. This value is expected to be unique for all
31 * clients in an administrative domain.
32 *
33 * Identifiers SHOULD be treated as opaque objects by DHCP servers.
34 *
35 * The client identifier MAY consist of type-value pairs similar to the
36 * 'htype'/'chaddr' fields. For instance, it MAY consist
37 * of a hardware type and hardware address. In this case the type field
38 * SHOULD be one of the ARP hardware types defined in STD2. A
39 * hardware type of 0 (zero) should be used when the value field
40 * contains an identifier other than a hardware address (e.g. a fully
41 * qualified domain name).
42 *
43 * For correct identification of clients, each client's client-
44 * identifier MUST be unique among the client-identifiers used on the
45 * subnet to which the client is attached. Vendors and system
46 * administrators are responsible for choosing client-identifiers that
47 * meet this requirement for uniqueness.
48 *
49 * The code for this option is 61, and its minimum length is 2.
50 *
51 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
52 * @version $Rev: 638228 $, $Date: 2008-03-18 07:12:41 +0100 (Di, 18 Mär 2008) $
53 */
54 public class ClientIdentifier extends DhcpOption
55 {
56 /*
57 * @see org.apache.directory.server.dhcp.options.DhcpOption#getTag()
58 */
59 public byte getTag()
60 {
61 return 61;
62 }
63 }