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.dns.io.encoder;
22
23
24 /**
25 * 3.1.1. Format
26 *
27 * The RDATA portion of the A6 record contains two or three fields.
28 *
29 * +-----------+------------------+-------------------+
30 * |Prefix len.| Address suffix | Prefix name |
31 * | (1 octet) | (0..16 octets) | (0..255 octets) |
32 * +-----------+------------------+-------------------+
33 *
34 * o A prefix length, encoded as an eight-bit unsigned integer with
35 * value between 0 and 128 inclusive.
36 *
37 * o An IPv6 address suffix, encoded in network order (high-order octet
38 * first). There MUST be exactly enough octets in this field to
39 * contain a number of bits equal to 128 minus prefix length, with 0
40 * to 7 leading pad bits to make this field an integral number of
41 * octets. Pad bits, if present, MUST be set to zero when loading a
42 * zone file and ignored (other than for SIG [DNSSEC] verification)
43 * on reception.
44 *
45 * o The name of the prefix, encoded as a domain name. By the rules of
46 * [DNSIS], this name MUST NOT be compressed.
47 *
48 * The domain name component SHALL NOT be present if the prefix length
49 * is zero. The address suffix component SHALL NOT be present if the
50 * prefix length is 128.
51 *
52 * It is SUGGESTED that an A6 record intended for use as a prefix for
53 * other A6 records have all the insignificant trailing bits in its
54 * address suffix field set to zero.
55 *
56 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
57 * @version $Rev: 501160 $, $Date: 2007-01-29 20:41:33 +0100 (Mo, 29 Jan 2007) $
58 */
59 public class A6RecordEncoder
60 {
61 }