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.dns.io.encoder; 022 023 024/** 025 * 3.1.1. Format 026 * 027 * The RDATA portion of the A6 record contains two or three fields. 028 * 029 * +-----------+------------------+-------------------+ 030 * |Prefix len.| Address suffix | Prefix name | 031 * | (1 octet) | (0..16 octets) | (0..255 octets) | 032 * +-----------+------------------+-------------------+ 033 * 034 * o A prefix length, encoded as an eight-bit unsigned integer with 035 * value between 0 and 128 inclusive. 036 * 037 * o An IPv6 address suffix, encoded in network order (high-order octet 038 * first). There MUST be exactly enough octets in this field to 039 * contain a number of bits equal to 128 minus prefix length, with 0 040 * to 7 leading pad bits to make this field an integral number of 041 * octets. Pad bits, if present, MUST be set to zero when loading a 042 * zone file and ignored (other than for SIG [DNSSEC] verification) 043 * on reception. 044 * 045 * o The name of the prefix, encoded as a domain name. By the rules of 046 * [DNSIS], this name MUST NOT be compressed. 047 * 048 * The domain name component SHALL NOT be present if the prefix length 049 * is zero. The address suffix component SHALL NOT be present if the 050 * prefix length is 128. 051 * 052 * It is SUGGESTED that an A6 record intended for use as a prefix for 053 * other A6 records have all the insignificant trailing bits in its 054 * address suffix field set to zero. 055 * 056 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 057 */ 058public class A6RecordEncoder 059{ 060}