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.4.2. WKS RDATA format
26 *
27 * +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
28 * | ADDRESS |
29 * +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
30 * | PROTOCOL | |
31 * +--+--+--+--+--+--+--+--+ |
32 * | |
33 * / <BIT MAP> /
34 * / /
35 * +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
36 *
37 * where:
38 *
39 * ADDRESS An 32 bit Internet address
40 *
41 * PROTOCOL An 8 bit IP protocol number
42 *
43 * <BIT MAP> A variable length bit map. The bit map must be a
44 * multiple of 8 bits long.
45 *
46 * The WKS record is used to describe the well known services supported by
47 * a particular protocol on a particular internet address. The PROTOCOL
48 * field specifies an IP protocol number, and the bit map has one bit per
49 * port of the specified protocol. The first bit corresponds to port 0,
50 * the second to port 1, etc. If the bit map does not include a bit for a
51 * protocol of interest, that bit is assumed zero. The appropriate values
52 * and mnemonics for ports and protocols are specified in [RFC-1010].
53 *
54 * For example, if PROTOCOL=TCP (6), the 26th bit corresponds to TCP port
55 * 25 (SMTP). If this bit is set, a SMTP server should be listening on TCP
56 * port 25; if zero, SMTP service is not supported on the specified
57 * address.
58 *
59 * The purpose of WKS RRs is to provide availability information for
60 * servers for TCP and UDP. If a server supports both TCP and UDP, or has
61 * multiple Internet addresses, then multiple WKS RRs are used.
62 *
63 * WKS RRs cause no additional section processing.
64 *
65 * In master files, both ports and protocols are expressed using mnemonics
66 * or decimal numbers.
67 *
68 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
69 * @version $Rev: 501160 $, $Date: 2007-01-29 20:41:33 +0100 (Mo, 29 Jan 2007) $
70 */
71 public class WellKnownServicesRecordEncoder
72 {
73 }