From 40f53fa8d9c6a4fc38c0014495e7a42b08f52481 Mon Sep 17 00:00:00 2001
From: David Lawrence
In this section we provide some suggested configurations along with guidelines for their use. We also address the topic of reasonable option setting.
The following sample configuration is appropriate for a caching-only name server for use by clients internal to a corporation. All queries from outside clients are refused.
This sample configuration is for an authoritative-only server that is the master server for "
example.com
" and a slave for the subdomain "
eng.example.com
".
Primitive load balancing can be achieved in DNS using multiple A records for one name.
For example, if you have three WWW servers with network addresses of 10.0.0.1, 10.0.0.2 and 10.0.0.3, a set of records such as the following means that clients will connect to each machine one third of the time:
When a resolver queries for these records, BIND will rotate them and respond to the query with the records in a different order. In the example above, clients will randomly receive records in the order 1, 2, 3; 2, 3, 1; and 3, 1, 2. Most clients will use the first record returned and discard the rest.
For more detail on ordering responses, check the
DNS Notify is a mechanism that allows master nameservers to notify their slave servers of changes to a zone's data. In response to a
DNS Notify is fully documented in RFC 1996. See also the description of the zone option
There are several indispensable diagnostic, administrative and monitoring tools available to the system administrator for controlling and debugging the nameserver daemon. We describe several in this section
The domain information groper (
The usual simple use of dig will take the form
For more information and a list of available commands and options, see the
The
Interactive mode is entered when no arguments are given (the default nameserver will be used) or when the first argument is a hyphen (`-') and the second argument is the host name or Internet address of a nameserver.
Non-interactive mode is used when the name or Internet address of the host to be looked up is given as the first argument. The optional second argument specifies the host name or address of a nameserver.
The options listed under the "set" command (see the
For more information and a list of available commands and options, see the
Due to its arcane user interface and frequently inconsistent behavior, we do not recommend the use of The remote name
daemon control ( As noted above, "reload" is the only command available for BIND 9.0.0.
The other commands, and more, are planned to be implemented for future
releases. A configuration file is required, since all communication with the
server is authenticated with digital signatures that rely on a shared
secret, and there is no way to provide that secret other than with a
configuration file. The default location for the rndc configuration
file is /etc/rndc.conf, but an alternate location can be specified with
the " The format of the configuration file is similar to that of named.conf,
but limited to only three statements, the The The The A sample minimal configuration file is as follows: This file, if installed as /etc/rndc.conf, would allow the command: to connect to 127.0.0.1 port 953 and cause the nameserver to reload,
if a nameserver on the local machine were running with following controls
statements: and it had an identical key statement for
Certain UNIX signals cause the name server to take specific actions, as described in the following table. These signals can be sent using the
Causes the server to read Return to BIND 9 Administrator Reference Manual table of contents.
// Two corporate subnets we wish to allow queries from.
acl "corpnets" { 192.168.4.0/24; 192.168.7.0/24; };
options {
directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put pid file in working dir
allow-query { "corpnets "; };
};
// Root server hints
zone "." { type hint; file "root.hint"; };
// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
options {
directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put pid file in working dir
allow-query { any; }; // This is the default
recursion no; // Do not provide recursive service
};
// Root server hints
zone "." { type hint; file "root.hint"; };
// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
// We are the master server for example.com
zone "example.com" {
type master;
file "example.com.db";
// IP addresses of slave servers allowed to transfer example.com
allow-transfer {
192.168.4.14;
192.168.5.53;
};
};
// We are a slave server for eng.example.com
zone "eng.example.com" {
type slave;
file "eng.example.com.bk";
// IP address of eng.example.com master server
masters { 192.168.4.12; };
};
rrset-order
substatement in the
options
statement under RRset Ordering. This substatement is not supported in BIND 9, and only the ordering scheme described above is available.
NOTIFY
from a master server, the slave will check to see that its version of the zone is the current version and, if not, initiate a transfer.
also-notify
under Zone Transfers
. More information about
notify
can be found under Boolean Options
.
dig
dig
) is a command line tool that can be used to gather information from the Domain Name System servers. Dig has two modes: simple interactive mode for a single query, and batch mode which executes a query for each in a list of several query lines. All query options are accessible from the command line.
Usage
dig [@server] domain [<query-type>] [<query-class>]
[+<query-option>] [-<dig-option>] [%comment]
dig @server domain query-type query-class
dig
man page.
host
host
utility provides a simple DNS lookup using a command-line interface for looking up Internet hostnames. By default, the utility converts between host names and Internet addresses, but its functionality can be extended with the use of options.
Usage
For more information and a list of available commands and options, see the
host [-aCdlrTwv] [-c class] [-N ndots] [-t type]
[-W timeout] [-R retries] hostname [server]
host
man page.
nslookup
nslookup
is a program used to query Internet domain nameservers.
nslookup
has two modes: interactive and non-interactive. Interactive mode allows the user to query nameservers for information about various hosts and domains or to print a list of hosts in a domain. Non-interactive mode is used to print just the name and requested information for a host or domain.
Usage
nslookup [-option ...] [host-to-find | -[server]]
nslookup
man page for details) can be specified in the
.nslookuprc
file in the user's home directory if they are listed one per line. Options can also be specified on the command line if they precede the arguments and are prefixed with a hyphen. For example, to change the default query type to host information, and the initial time-out to 10 seconds, type:
nslookup -query=hinfo -timeout=10
nslookup
man page.
nslookup
, and it is not installed by default when installing BIND 9. Use
dig
instead. rndc
rndc
) program allows
the system administrator to control the operation of a nameserver. If
you run (rndc
) without any options
it will display a usage message as follows:
Usage
rndc [-c config] [-s server] [-p port] [-y key] command [command ...]
command
is one of the following for named:
*
status
Display ps(1) status of named.
* dumpdb
Dump database and cache to /var/tmp/named_dump.db.
reload
Reload configuration file and zones.
* stats
Dump statistics to /var/tmp/named.stats.
* trace
Increment debugging level by one.
* notrace
Set debugging level to 0.
* querylog
Toggle query logging.
* stop
Stop the server.
* restart
Restart the server.
* == not yet implemented
-c
" option.options{}
, key{}
and server{}
statements. These statements are what associate the secret keys to the
servers with which they are meant to be shared. The order of statements
is not significant.options{}
statement has two clauses: default-server
and default-key.
default-server
takes a host name or address argument and represents the server that will be contacted if
no "-s
" option is provided on the command line. default-key takes the
name of the key as its argument, as defined by a key{}
statement. In
the future a default-port clause will be added to specify the port to
which rndc
should connect.key{}
statement names a key with its string argument. The string
is required by the server to be a valid domain name, though it need
not actually be hierarchical; thus, a string like "rndc_key" is a valid
name. The key{}
statement has two clauses: algorithm
and secret
. While
the configuration parser will accept any string as the argument to algorithm,
currently only the string "hmac-md5" has any meaning. The secret is
a base-64 encoded string, typically generated with either dnssec-keygen
or mmencode
.server{}
statement uses the key clause to associate a key{}
-defined
key with a server. The argument to the server{}
statement is a host
name or address (addresses must be double quoted). The argument to the
key clause is the name of key as defined by the key{}
statement. A port
clause will be added to a future release to specify the port to which
rndc should connect on the given server.
key rndc_key {
algorithm "hmac-md5";
secret "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};
options {
default-server localhost;
default-key rndc_key;
};
$ rndc reload
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};
rndc_key
.
3.4.2 Signals
kill
command.
named.conf
and reload the database.
acl internals { 172.16.72.0/24; 192.168.1.0/24; };
-acl externals {
+acl externals {
bastion-ips-go-here; };
options {
...
@@ -800,7 +800,7 @@ dnssec-makekeyset
The following command generates a key set containing the above key and another key similarly generated, with a TTL of 3600 and a signature validity period of 10 days starting from now.
-dnssec-makekeyset -t 3600 -e +864000 Kchild.example.+003+12345
+dnssec-makekeyset -t 3600 -e +864000 Kchild.example.+003+12345
Kchild.example.+003+23456
@@ -840,7 +840,7 @@ child.example
The following command signs the child's key set with the zone keys:
-dnssec-signkey grand.child.example.keyset Kchild.example.+003+12345
+dnssec-signkey grand.child.example.keyset Kchild.example.+003+12345
Kchild.example.+003+23456
diff --git a/doc/arm/Bv9ARM.5.html b/doc/arm/Bv9ARM.5.html
index a1feb0b59a..1c8c4bc4b0 100644
--- a/doc/arm/Bv9ARM.5.html
+++ b/doc/arm/Bv9ARM.5.html
@@ -1,11 +1,11 @@
-
+
diff --git a/doc/arm/Bv9ARM.6.html b/doc/arm/Bv9ARM.6.html
index 88f6ed9a69..9248c123d6 100644
--- a/doc/arm/Bv9ARM.6.html
+++ b/doc/arm/Bv9ARM.6.html
@@ -1,11 +1,11 @@
-
+
@@ -805,8 +805,8 @@ options
6.2.1
acl
Statement Grammar
-@@ -1361,7 +1361,7 @@ the category Phrase file "<stderr>"; // this is illustrative only; // there's currently no way of // specifying an internal file - // descriptor in the + // descriptor in the // configuration language. severity info; // only send priority info // and higher @@ -3432,7 +3432,7 @@ rrset-order Anacl
acl-name{
- address_match_list +acl
acl-name{
+ address_match_list};
order_spec
is defined as follows:
-
+
[class
class_name ][type
type_name ][name
"domain_name"]order
ordering @@ -3971,7 +3971,7 @@ view Here is an example of a typical split DNS setup implemented usingview
statements. - +view "internal" { @@ -4013,7 +4013,7 @@ zone
-zone zone name [class] [{ +zone zone name [class] [{ type ( master|slave|hint|stub|forward ) ; [ allow-query { address_match_list } ; ] [ allow-transfer { address_match_list } ; ] diff --git a/doc/arm/Bv9ARM.7.html b/doc/arm/Bv9ARM.7.html index e0e29ba337..ac011524ab 100644 --- a/doc/arm/Bv9ARM.7.html +++ b/doc/arm/Bv9ARM.7.html @@ -1,11 +1,11 @@ - + @@ -68,17 +68,17 @@ good idea Here is an example of how to properly apply ACLs:- +// Set up an ACL named "bogusnets" that will block RFC1918 space, // which is commonly used in spoofing attacks. - + acl bogusnets { 0.0.0.0/8; 1.0.0.0/8; 2.0.0.0/8; 192.0.2.0/24; 224.0.0.0/3; 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16; }; // Set up an ACL called our-nets. Replace this with the real IP numbers. - + acl our-nets { x.x.x.x/24; x.x.x.x/21; }; - + options { ... ... @@ -150,7 +150,7 @@ chroot()
, and to runnamed setuid
to user 202: - +diff --git a/doc/arm/Bv9ARM.8.html b/doc/arm/Bv9ARM.8.html index 5454476328..4e2e82c618 100644 --- a/doc/arm/Bv9ARM.8.html +++ b/doc/arm/Bv9ARM.8.html @@ -1,11 +1,11 @@ - + @@ -85,7 +85,7 @@ The Internet Software Consortium (ISC) offers a wide range of support and servic/usr/local/bin/named -u 202 -t /var/named
-To discuss arrangements for support, contact +To discuss arrangements for support, contact info@isc.org
diff --git a/doc/arm/Bv9ARM.9.html b/doc/arm/Bv9ARM.9.html index 70f293461e..75806f1530 100644 --- a/doc/arm/Bv9ARM.9.html +++ b/doc/arm/Bv9ARM.9.html @@ -1,11 +1,11 @@ - + @@ -30,7 +30,7 @@
-Appendices +Appendices
@@ -574,7 +574,7 @@ Request for Comments (RFCs) Specification documents for the Internet protocol suite, including the DNS, are published as part of the Request for Comments (RFCs) series of technical notes. The standards themselves are defined by the Internet Engineering Task Force (IETF) and the Internet Engineering Steering Group (IESG). RFCs can be obtained online via FTP at
ftp://www.isi.edu/in-notes/RFCxxx.txt - (where + (where xxx is the number of the RFC). RFCs are also available via the Web at http://www.ietf.org/rfc/ diff --git a/doc/arm/Bv9ARM.css b/doc/arm/Bv9ARM.css index 34664143a4..78ea7fab8e 100644 --- a/doc/arm/Bv9ARM.css +++ b/doc/arm/Bv9ARM.css @@ -1,10 +1,10 @@ /* * Copyright (C) 2000 Internet Software Consortium. - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: Bv9ARM.css,v 1.8 2000/07/27 09:42:02 tale Exp $ */ +/* $Id: Bv9ARM.css,v 1.9 2000/08/01 01:18:01 tale Exp $ */ A:link { color: blue; diff --git a/doc/arm/Bv9ARM.html b/doc/arm/Bv9ARM.html index d0b8c64218..1a2fa97143 100644 --- a/doc/arm/Bv9ARM.html +++ b/doc/arm/Bv9ARM.html @@ -1,11 +1,11 @@ - + diff --git a/doc/arm/Bv9ARM.txt b/doc/arm/Bv9ARM.txt index 8426f2da7e..9f5187d0ae 100644 --- a/doc/arm/Bv9ARM.txt +++ b/doc/arm/Bv9ARM.txt @@ -1,7 +1,7 @@ Copyright (C) 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: Bv9ARM.txt,v 1.9 2000/07/27 09:42:05 tale Exp $ +$Id: Bv9ARM.txt,v 1.10 2000/08/01 01:18:04 tale Exp $ BIND 9 Administrator Reference Manual July 2000 @@ -99,17 +99,17 @@ Section 6 : BIND 9 Configuration Reference 6.2.1 acl Statement Grammar 6.2.2 acl Statement Definition and Usage 6.2.3 controls Statement Grammar -6.2.4 controls Statement Definition and Usage +6.2.4 controls Statement Definition and Usage 6.2.5 include Statement Grammar 6.2.6 include Statement Definition and Usage 6.2.7 key Statement Grammar 6.2.8 key Statement Definition and Usage 6.2.9 logging Statement Grammar -6.2.10 logging Statement Definition and Usage +6.2.10 logging Statement Definition and Usage 6.2.10.1 The channel Phrase 6.2.10.2 The category Phrase 6.2.11 options Statement Grammar -6.2.12 options Statement Definition and Usage +6.2.12 options Statement Definition and Usage 6.2.12.1 Boolean Options 6.2.12.2 Forwarding 6.2.12.3 Name Checking @@ -2124,7 +2124,7 @@ options { [ transfer-source ip4_addr; ] [ transfer-source-v6 ip6_addr; ] [ also-notify { ip_addr; [ ip_addr; ... ] }; ] - [ max-ixfr-log-size number; ] + [ max-ixfr-log-size number; ] [ coresize size_spec ; ] [ datasize size_spec ; ] [ files size_spec ; ] @@ -2456,7 +2456,7 @@ the amount of load that transfers place on the system. The following options apply to zone transfers. - + also-notify Defines a global list of IP addresses that are also sent NOTIFY messages whenever a fresh copy of the zone is loaded. This helps to ensure that copies of @@ -2611,7 +2611,7 @@ Resource limits are not yet implemented in BIND 9. the cache every cleaning-interval minutes. The default is 60 minutes. If set to 0, no periodic cleaning will occur. - + heartbeat-interval The server will perform zone maintenance tasks for all zones marked dialup yes whenever this interval expires. The default is 60 minutes. Reasonable values @@ -3698,7 +3698,7 @@ containing critical data such as the IP addresses of public web and mail servers need not allow dynamic update at all. ------------------------------------------------------------------------ - + Section 8. Troubleshooting 8.1 Common Problems diff --git a/doc/design/addressdb b/doc/design/addressdb index 37b97c72a3..a4fe9cf904 100644 --- a/doc/design/addressdb +++ b/doc/design/addressdb @@ -1,7 +1,7 @@ Copyright (C) 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: addressdb,v 1.2 2000/06/21 23:43:28 tale Exp $ +$Id: addressdb,v 1.3 2000/08/01 01:18:06 tale Exp $ You are lost in a maze of twisty little pointers, all alike... @@ -12,7 +12,7 @@ ADB |-> 0 |-> handle ---> handle ---> 0 | namehook namehook | | | | | | | 0 0 -> fetch - | | + | | | V |-lists of elements -----> element ----> element ----> element ---> 0 | | | | diff --git a/doc/design/compression b/doc/design/compression index 59865107e9..ca0f1cc95e 100644 --- a/doc/design/compression +++ b/doc/design/compression @@ -3,7 +3,7 @@ See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. Name Compression - $Id: compression,v 1.5 2000/06/21 23:43:29 tale Exp $ + $Id: compression,v 1.6 2000/08/01 01:18:07 tale Exp $ Overview. @@ -28,7 +28,7 @@ Overview. across a message. BIND 4.x and BIND 8.x used a table of existing 14 bit compression - targets. + targets. The implicit assumption is that we will use compression whenever possible and when ever there are multiple alternatives available @@ -128,7 +128,7 @@ Functions: dns_compress_findlocal(dns_compress_t *cctx, dns_name_t *name, dns_name_t *prefix, dns_name_t *suffix, isc_uint16_t *offset, isc_buffer_t *workspace); - + Find the best best match in the global / local RBT. Returns prefix, suffix and offset of the bestmatch. Findglobal(), findlocal() requires as workspace as it may be neccessary to spit a bit stream diff --git a/doc/design/db_rules b/doc/design/db_rules index a0fa7788cc..5c6217cd41 100644 --- a/doc/design/db_rules +++ b/doc/design/db_rules @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: db_rules,v 1.4 2000/06/21 23:43:31 tale Exp $ +$Id: db_rules,v 1.5 2000/08/01 01:18:08 tale Exp $ Here is a more formal statement of the important database design rules. Each rule has a 5 character mnemonic, for use in source code @@ -70,7 +70,7 @@ Cache Node Lookups [DBCNL] 2) If there is a negative caching entry for the desired node, DNS_R_NONEXISTENT shall be returned. - + 3) If the desired node does not exist, and there is not a negative caching entry, DNS_R_UNKNOWN shall be returned. diff --git a/doc/design/decompression b/doc/design/decompression index 323a601e7f..08bb91a7ea 100644 --- a/doc/design/decompression +++ b/doc/design/decompression @@ -3,10 +3,10 @@ See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. Name Decompression - $Id: decompression,v 1.4 2000/06/21 23:43:32 tale Exp $ + $Id: decompression,v 1.5 2000/08/01 01:18:09 tale Exp $ Overview. - + There are 4 type of compression: global 14 bit, global 16 bit, local 14 bit and local 16 bit. @@ -35,7 +35,7 @@ Overview. and edn version. Implementation: - + dns_rdata_fromwire will set the allowed decompression methods allowed by looking at edns, strict and the type values. diff --git a/doc/design/logging b/doc/design/logging index e0fba90af2..bc005aef78 100644 --- a/doc/design/logging +++ b/doc/design/logging @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: logging,v 1.6 2000/06/22 21:53:52 tale Exp $ +$Id: logging,v 1.7 2000/08/01 01:18:11 tale Exp $ OVERVIEW @@ -354,7 +354,7 @@ Providing a NULL argument for the category means "associate the channel with the indicated module in all known categories" --- including ISC_CATEGORY_DEFAULT. Providing a NULL argument for the module means "associate the channel with all modules that use this -category." +category." 6) If you are sending any messages to syslog, call isc_log_opensyslog(). Currently the arguments to this function are @@ -435,7 +435,7 @@ logging system internally. }; isc_logmodule_t dns_modules[] = { { "db", 0 }, - { "rbtdb", 0 }, + { "rbtdb", 0 }, { NULL, 0 } }; diff --git a/doc/design/ncache b/doc/design/ncache index d13357d098..6d0f0de9a3 100644 --- a/doc/design/ncache +++ b/doc/design/ncache @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: ncache,v 1.3 2000/06/22 21:53:53 tale Exp $ +$Id: ncache,v 1.4 2000/08/01 01:18:12 tale Exp $ Negative Caching @@ -20,7 +20,7 @@ Not sure what to do in this case. Probably return delegation to force client to ask authority. -Perhaps we should just create some kind of meta-rdata, the "negative cache +Perhaps we should just create some kind of meta-rdata, the "negative cache rdata type"? Or maybe something like: diff --git a/doc/design/omapi b/doc/design/omapi index 14698c9115..5f609c9742 100644 --- a/doc/design/omapi +++ b/doc/design/omapi @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: omapi,v 1.4 2000/06/22 21:53:55 tale Exp $ +$Id: omapi,v 1.5 2000/08/01 01:18:13 tale Exp $ This file documents the protocol that the ISC DHCP server and ISC Object Management clients (clients that use the ISC Object Management @@ -166,7 +166,7 @@ Message types: invalid handle - the handle does not refer to a known object permisson denied - the handle refers to an object that the requestor does not have permission to - examine. + examine. 3: update @@ -253,7 +253,7 @@ dhcpctl_status dhcpctl_connect (dhcpctl_handle *connection, synchronous returns nonzero status code if it didn't connect, zero otherwise stores connection handle through connection, which can be used - for subsequent access to the specified server. + for subsequent access to the specified server. server_name is the name of the server, and port is the TCP port on which it is listening. authinfo is the handle to an object containing authentication @@ -270,7 +270,7 @@ dhcpctl_status dhcpctl_open_object (dhcpctl_handle h, flags include: DHCPCTL_CREATE - if the object doesn't exist, create it DHCPCTL_UPDATE - update the object on the server using the - attached parameters + attached parameters DHCPCTL_EXCL - error if the object exists and DHCPCTL_CREATE was also specified @@ -296,7 +296,7 @@ dhcpctl_status dhcpctl_set_callback (dhcpctl_handle h, void *data, status code is returned otherwise. Upon completion of whatever task is in process, the callback will be passed the handle to the object, a status code - indicating what happened, and the anonymous pointer passed to + indicating what happened, and the anonymous pointer passed to dhcpctl_status dhcpctl_wait_for_completion (dhcpctl_handle h, dhcpctl_status *s) @@ -315,7 +315,7 @@ dhcpctl_status dhcpctl_get_value (data_string *result, dhcpctl_handle h, char *value_name) synchronous returns zero if the call succeeded, a nonzero status code if - it didn't. + it didn't. result is the address of an empty data string (initialized with bzero or cleared with data_string_forget). On successful completion, the addressed data string will contain diff --git a/doc/design/red-black b/doc/design/red-black index ba5e2c4d96..5e966c8bde 100644 --- a/doc/design/red-black +++ b/doc/design/red-black @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: red-black,v 1.5 2000/06/22 21:53:57 tale Exp $ +$Id: red-black,v 1.6 2000/08/01 01:18:14 tale Exp $ Red-Black Tree Implementation Notes @@ -46,7 +46,7 @@ down pointer from the suffix locating the subtree. For example, consider storing the following names: a x.d.e.f o.w.y.d.e.f b z.d.e.f p.w.y.d.e.f - c g.h q.w.y.d.e.f + c g.h q.w.y.d.e.f No matter which order the keys were added, this would result in a tree that can be visualized as: diff --git a/doc/design/search b/doc/design/search index 9dcf80ebf7..bcd208297d 100644 --- a/doc/design/search +++ b/doc/design/search @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: search,v 1.6 2000/06/22 21:53:58 tale Exp $ +$Id: search,v 1.7 2000/08/01 01:18:16 tale Exp $ What follows is pseudocode for the zone and cache lookup algorithms, as they will work in the RBT DB. @@ -39,7 +39,7 @@ rdataset, or a node (including the zone top) with an active DNAME rdataset. -Zone Search Algorithm +Zone Search Algorithm Inputs: Search name @@ -239,7 +239,7 @@ Cache Search Algorithm: Go down as far as possible remembering every parent node. Remember the predecessor too. - + If some rdataset for name exists Look for desired type or CNAME @@ -280,7 +280,7 @@ Cache Search Algorithm: Return NO_KNOWN_AUTHORITY (this will cause priming of root servers or, perhaps, forwarding) - + If we have a zone DKZC and it's better than the one we found in the cache Return it (node and name). diff --git a/doc/design/windows-nt b/doc/design/windows-nt index c0758523b7..b23b4052e6 100644 --- a/doc/design/windows-nt +++ b/doc/design/windows-nt @@ -1,7 +1,7 @@ Copyright (C) 1999, 2000 Internet Software Consortium. See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. -$Id: windows-nt,v 1.4 2000/06/22 21:54:00 tale Exp $ +$Id: windows-nt,v 1.5 2000/08/01 01:18:18 tale Exp $ Windows NT Portability Notes @@ -37,7 +37,7 @@ directory of the BIND9 sources. Its usage is: where "remotedest" is the path under which the sources will be compiled on the NT machine, and "localdest" is where the munged source tree will be placed on the local machine in preparation for -mounting/zipping/whatever to get it to the remote machine. +mounting/zipping/whatever to get it to the remote machine. The default remotedest is g:/proj/bind9-nt, because that suits my environment and I'm the one working on this. Use forward slashes when diff --git a/doc/design/zone b/doc/design/zone index e979636896..2641dc7834 100644 --- a/doc/design/zone +++ b/doc/design/zone @@ -3,10 +3,10 @@ See COPYRIGHT in the source root or http://www.isc.org/copyright for terms. Zones - $Id: zone,v 1.6 2000/06/21 23:43:46 tale Exp $ + $Id: zone,v 1.7 2000/08/01 01:18:19 tale Exp $ Overview - + Zones are the unit of delegation in the DNS and may go from holding RR's only at the zone top to holding the complete hierachy (private roots zones). Zones have an associated database which is the @@ -35,7 +35,7 @@ Overview * primary master name (required to auto generate our masters) * master file name * database name - * database type + * database type * initially only master_file (BIND 4 & 8) * expanded axfr + ixfr * transaction logs @@ -82,7 +82,7 @@ Overview * updated (UPDATE / IXFR) * copied out in full (AXFR) or as partial deltas (IXFR) * read from - * validated + * validated * generate a delta between two given versions. * signed / resigned * maintenance @@ -161,7 +161,7 @@ Functions: void dns_zone_invalidate(dns_zone_t *zone); - + void dns_ixfr_init(dns_ixfr_t *ixfr, unsigned long serial, time_t expire); @@ -209,10 +209,10 @@ Functions: dns_zone_checkchildren(dns_zone_t *); check that the child zones NS lists agree with the NS lists in this - zone, check glue records. Warn if not identical. + zone, check glue records. Warn if not identical. dns_zone_checkservers(dns_zone_t *); - + check that all the listed servers for the zone agree on NS list and serial number. NOTE only errors which continue over several refresh periods to be reported. @@ -229,7 +229,7 @@ Functions: dns_zone_addmaster(dns_zone_t *zone, isc_sockaddr_t *addr); - Add addr to the set of masters for the zone. + Add addr to the set of masters for the zone. dns_zone_clearmasters(dns_zone_t *zone); @@ -246,5 +246,5 @@ Functions: dns_zone_load(dns_zone_t *); dns_zone_consolidate(dns_zone_t *); - + Consolidate on disk copy of zone. diff --git a/doc/dev/coding.html b/doc/dev/coding.html index 698f630de8..c765b4c2b0 100644 --- a/doc/dev/coding.html +++ b/doc/dev/coding.html @@ -1,10 +1,10 @@ - +C Language
@@ -109,11 +109,11 @@ declare any functions.
- +/* * Copyright (C) 1998 Internet Software Consortium. - * + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. - * + * * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE @@ -430,7 +430,7 @@ Bad:
The Ternary Operator
The ?: operator should mostly be avoided. It is tolerated when -deciding what value to pass as a parameter to a function, such as +deciding what value to pass as a parameter to a function, such as frequently happens with printf, and also when a simple (non-compound) value is being used in assignment or as part of a calculation. In particular, using the ternary operator to specify a return value is @@ -539,7 +539,7 @@ unquoted. E.g.,isc_log_write(... "open: %s: %s", filename, isc_result_totext(result));
Function names, line numbers, memory addresses, and other references -to program internals may be used in debugging messages and in +to program internals may be used in debugging messages and in messages to report programming errors detected at runtime. They may not be used in messages that indicate errors in the program's inputs or operation.
diff --git a/doc/dev/cvs b/doc/dev/cvs index e2c0eb5dc3..2517977713 100644 --- a/doc/dev/cvs +++ b/doc/dev/cvs @@ -27,7 +27,7 @@ Renaming files by respository copy When you need to rename or move a file that is under CVS control, use -the "repository copy" method as described in the following text +the "repository copy" method as described in the following text borrowed from an ancient CVS FAQ: 2C.4 How do I rename a file? @@ -85,4 +85,4 @@ In a mainline working tree, do something like this: cvs tag -b -r v9_0_base v9_0 file -$Id: cvs,v 1.3 2000/07/10 16:16:06 gson Exp $ +$Id: cvs,v 1.4 2000/08/01 01:18:22 tale Exp $ diff --git a/doc/dev/cvs-usage b/doc/dev/cvs-usage index 19849bb5db..9c433da16f 100644 --- a/doc/dev/cvs-usage +++ b/doc/dev/cvs-usage @@ -27,7 +27,7 @@ Renaming files by respository copy When you need to rename or move a file that is under CVS control, use -the "repository copy" method as described in the following text +the "repository copy" method as described in the following text borrowed from an ancient CVS FAQ: 2C.4 How do I rename a file? @@ -85,4 +85,4 @@ In a mainline working tree, do something like this: cvs tag -b -r v9_0_base v9_0 file -$Id: cvs-usage,v 1.3 2000/07/10 16:16:06 gson Exp $ +$Id: cvs-usage,v 1.4 2000/08/01 01:18:22 tale Exp $ diff --git a/doc/dev/rdata.html b/doc/dev/rdata.html index 4a9284873b..3ee335784b 100644 --- a/doc/dev/rdata.html +++ b/doc/dev/rdata.html @@ -1,11 +1,11 @@ - +
@@ -27,7 +27,7 @@ The dns rdata routines (dns_rdata_fromtext()
,dns_rdata_totext()
,dns_rdata_fromwire()
,dns_rdata_towire()
dns_rdata_fromstruct()
, -dns_rdata_tostruct()
anddns_rdata_compare()
) +dns_rdata_tostruct()
anddns_rdata_compare()
) are designed to provide a single set of routines for encoding, decoding and comparing dns data preventing the problems that occurred in BIND 8.x and earlier where there were multiple places in the @@ -245,7 +245,7 @@ decompression methods if there is a domain name in the rdata. else dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
class
dns_name_fromwire()
,
-along with downcase
, to enable a compressed domain name
+along with downcase
, to enable a compressed domain name
to be extracted from the source.
downcase
-If the active
buffer is not empty at completion and
+If the active
buffer is not empty at completion and
fromwire_typename()
was otherwise successful
dns_rdata_fromwire()
will return DNS_R_EXTRADATA
.
towire_classname_typename()
is required to set the
-allowed name compression methods based on EDNS version if there is a
+allowed name compression methods based on EDNS version if there is a
domain name in the rdata.
if (dns_compress_getedns(cctx) >= #)
diff --git a/doc/dev/release b/doc/dev/release
index d6be7e965b..88bc1271ac 100644
--- a/doc/dev/release
+++ b/doc/dev/release
@@ -1,7 +1,7 @@
Copyright (C) 2000 Internet Software Consortium.
See COPYRIGHT in the source root or http://www.isc.org/copyright for terms.
-$Id: release,v 1.11 2000/07/19 20:34:40 gson Exp $
+$Id: release,v 1.12 2000/08/01 01:18:24 tale Exp $
Preparing a bind9 release
@@ -20,7 +20,7 @@ release.
lib/*/api files as needed. See the libtool info file
for information about what the various numbers mean.
- - Check that http://status.isc.org/bind9/bind9.html shows
+ - Check that http://status.isc.org/bind9/bind9.html shows
a clean build and test status for all supported systems.
- Check that "make all_tests" does not produce compile errors.
@@ -100,7 +100,7 @@ release.
- If problems are found at this stage, fix them, move the
release tag up using "rtag -F", and respin the kit.
- - Take the resulting distribution files to a secure system
+ - Take the resulting distribution files to a secure system
and sign them with the ISC signing PGP key:
"pgp -sba bind-9.0.0b3.tar.gz -u 0x51BAB2ED"
@@ -120,7 +120,7 @@ release.
ssh isrv4.pa.vix.com "mkdir /udir/ftp/isc/bind9/9.0.0b4"
scp bind-9.0.0b4.tar.gz bind-9.0.0b4.tar.gz.asc \
- isrv4.pa.vix.com:/udir/ftp/isc/bind9/9.0.0b4
+ isrv4.pa.vix.com:/udir/ftp/isc/bind9/9.0.0b4
- Download using FTP (or Netscape) and verify the PGP signature again
diff --git a/doc/dev/results b/doc/dev/results
index 464802e866..009076615b 100644
--- a/doc/dev/results
+++ b/doc/dev/results
@@ -1,7 +1,7 @@
Copyright (C) 1999, 2000 Internet Software Consortium.
See COPYRIGHT in the source root or http://www.isc.org/copyright for terms.
-$Id: results,v 1.3 2000/06/22 21:54:07 tale Exp $
+$Id: results,v 1.4 2000/08/01 01:18:25 tale Exp $
Result Codes
@@ -19,7 +19,7 @@ seems more promising, e.g.
If 's' is shared however this approach doesn't work unless the locking is
done by the caller, e.g.
-
+
sometype_lock();
sometype_dosomething(s, buffer);
if (sometype_error(s)) {
diff --git a/doc/dev/tests b/doc/dev/tests
index a9921aed69..aa067cb5a4 100644
--- a/doc/dev/tests
+++ b/doc/dev/tests
@@ -1,7 +1,7 @@
Copyright (C) 2000 Internet Software Consortium.
See COPYRIGHT in the source root or http://www.isc.org/copyright for terms.
-$Id: tests,v 1.6 2000/06/28 19:01:52 gson Exp $
+$Id: tests,v 1.7 2000/08/01 01:18:26 tale Exp $
We do hourly test builds of the bind9 tree. This is an attempt to
document how they work.
@@ -11,7 +11,7 @@ document how they work.
The scripts driving the build system are in ~wpk/b9t. They are not
under CVS control. The builds are driven by cron jobs separately
-installed on each build system, running as user wpk.
+installed on each build system, running as user wpk.
The sources are checked out, and the web reports are generated,
on bb, as driven by the following cron jobs:
@@ -78,7 +78,7 @@ On some, it's on NFS; in this case the location is defined in
The output from the make process is in
~wpk/b9t/hosts/$PLATFORM/b9t-status, and the output from
The output from the later stages of the process is under
-/proj/build-reports/bind9/hosts/$PLATFORM. To make the files
+/proj/build-reports/bind9/hosts/$PLATFORM. To make the files
harder to find (?), they have names starting with a period:
.populate
diff --git a/doc/draft/draft-costanzo-dns-gl-03.txt b/doc/draft/draft-costanzo-dns-gl-03.txt
index c7a526a864..b080a88999 100644
--- a/doc/draft/draft-costanzo-dns-gl-03.txt
+++ b/doc/draft/draft-costanzo-dns-gl-03.txt
@@ -69,10 +69,10 @@ EXPIRES IN SIX MONTHS June 2000
to local domain administrators.
This document resolves the problem of relating host information within
- the DNS to geographical locations. This definition has been designed to
- be easy for the person who administrates DNS for a domain. The author
- hopes that the lack of requiring longitude, latitude and elevation
- information and merely being able to enter address information, as you
+ the DNS to geographical locations. This definition has been designed to
+ be easy for the person who administrates DNS for a domain. The author
+ hopes that the lack of requiring longitude, latitude and elevation
+ information and merely being able to enter address information, as you
would address a postal letter, will mean broad acceptance and use of the
GL resource record.
@@ -86,7 +86,7 @@ EXPIRES IN SIX MONTHS June 2000
Although several other attempts by various authors have attempted to
created resource records that would allow location information on host to
- be stored and distributed, none, to the authors knowledge, have either
+ be stored and distributed, none, to the authors knowledge, have either
gained acceptance on a wide scale or made allowance for location information
that is not within the confines of the planet Earth.
@@ -104,7 +104,7 @@ EXPIRES IN SIX MONTHS June 2000
The format of the RDATA field is two varying length strings separated by
- a space character. The first, the hierarchical locator, then an address
+ a space character. The first, the hierarchical locator, then an address
string. Each is quoted (like all strings) only when it has spaces in it,
which will never be true for the first string, and almost always for the
second.
@@ -128,7 +128,7 @@ by a period "."):
Astronomical Location - (Required)
A coded field defining the heavenly body within
- the known Universe, where the machine resides. The most common
+ the known Universe, where the machine resides. The most common
entry, "S3" is the planet Earth and is the only currently
defined location.
@@ -141,10 +141,10 @@ by a period "."):
Country Code - (Required)
The country code specifies the country the host computer resides
- in. The code is a two character fixed length string and may only
+ in. The code is a two character fixed length string and may only
be included within the Astronimical Location 'S3'. These codes
are defined in document ISO 3166-1 and are listed in Appendix A
- for easy reference.
+ for easy reference.
Postal Zone - (Optional)
@@ -156,8 +156,8 @@ by a period "."):
This field may be omitted only if the country in which the host
machine resides does not use a postal coding system.
- When all three Hierarchical Locator components exist for an DNS
- entry, the position being defined is considered to be a "precise
+ When all three Hierarchical Locator components exist for an DNS
+ entry, the position being defined is considered to be a "precise
position".
@@ -263,9 +263,9 @@ Parimaribo"
New Astronomical Locations (ALs) MUST be registered with the Internet
Assigned Numbers Authority (IANA). IANA acts as a central registry for
- these values. IANA may reject or modify the Astronomical Location
- registration request if it does not meet the criteria as specified in
- section 4.1.1.
+ these values. IANA may reject or modify the Astronomical Location
+ registration request if it does not meet the criteria as specified in
+ section 4.1.1.
Registration requests should be sent via electronic mail to IANA as
follows:
@@ -273,7 +273,7 @@ Parimaribo"
To: IANA@iana.org
Subject: Registration of a new Astronomical Location
- The mail message must specify the proposed AL. Documentation defining
+ The mail message must specify the proposed AL. Documentation defining
the AL and its proposed purpose must be included. The documentation must
either reference an external non-Internet standards document or an existing
or soon to be RFC. If applicable, the documentation should contain a
@@ -281,8 +281,8 @@ Parimaribo"
RFC according to the normal procedure within a reasonable amount of
time after the AL registration has been approved.
- IANA will not register a new Astronmical Location until an actual
- computer requiring GL data in the DNS resides or will soon reside on a
+ IANA will not register a new Astronmical Location until an actual
+ computer requiring GL data in the DNS resides or will soon reside on a
heavenly body other than Earth.
@@ -305,8 +305,8 @@ EXPIRES IN SIX MONTHS May 2000
7.1 Defining New Astronimical Locations
The astronomical location 'S3' is intended to be Sol-Three (i.e. the Earth).
- The Earth is the 3rd large planet in the solar system. The Sun would be S0
- (not that we'd have a computer there), but a solar observatory in orbit might
+ The Earth is the 3rd large planet in the solar system. The Sun would be S0
+ (not that we'd have a computer there), but a solar observatory in orbit might
be S0-001. Our moon would be S3-1. Other letters and such for catalogued
objects. Additionally, the ISS and Mir space stations could use S3-001 (Mir),
S3-002 (ISS) now, if they get connected on IP.
@@ -318,12 +318,12 @@ EXPIRES IN SIX MONTHS May 2000
7.2 Other possible uses for GL
The use of postal codes also is exactly what is needed for credit card address
- authentication. Sites could (quietly) compare GL info provided on entries from
+ authentication. Sites could (quietly) compare GL info provided on entries from
ISPs to what someone enters for additional verification purposes.
-
+
diff --git a/doc/draft/draft-ietf-dhc-dhcp-dns-12.txt b/doc/draft/draft-ietf-dhc-dhcp-dns-12.txt
index c97ba62530..d2424d073e 100644
--- a/doc/draft/draft-ietf-dhc-dhcp-dns-12.txt
+++ b/doc/draft/draft-ietf-dhc-dhcp-dns-12.txt
@@ -128,7 +128,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
and PTR. The A RR contains mapping from a FQDN to an IP address; the
PTR RR contains mapping from an IP address to a FQDN. The Dynamic
DNS Updates specification (RFC2136[5]) describes a mechanism that
- enables DNS information to be updated over a network.
+ enables DNS information to be updated over a network.
DHCP RFC2131[3] provides a mechanism by which a host (a DHCP client)
can acquire certain configuration information, along with its IP
@@ -180,7 +180,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
The only difference between these two cases is whether the FQDN to
IP address mapping is updated by a DHCP client or by a DHCP server.
The IP address to FQDN mapping is updated by a DHCP server in both
- cases.
+ cases.
The reason these two are important, while others are unlikely, has
to do with authority over the respective DNS domain names. A DHCP
@@ -202,13 +202,13 @@ Internet-Draft Interaction between DHCP and DNS March 2000
to modify its own domain name. Compliant implementations MAY support
some or all of these possibilities. Furthermore, this specification
applies only to DHCP client and server processes: it does not apply
- to other processes which initiate dynamic DNS updates.
+ to other processes which initiate dynamic DNS updates.
This document describes a new DHCP option which a client can use to
convey all or part of its domain name to a DHCP server.
Site-specific policy determines whether DHCP servers use the names
that clients offer or not, and what DHCP servers may do in cases
- where clients do not supply domain names.
+ where clients do not supply domain names.
4. Issues with DDNS in DHCP Environments
@@ -245,7 +245,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
would have its original A RR replaced by the new record. Either of
these effects may be considered undesirable by some sites. Different
authority and credential models have different levels of exposure to
- name collisions.
+ name collisions.
1. Client updates A RR, uses Secure DNS Update with credentials
that are associated with the client's FQDN, and exclusive to the
@@ -356,7 +356,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
is used when the client's link-layer address is being used to
identify it, and one that is used when some DHCP option that the
DHCP client has sent is being used to identify it.
-
+
DISCUSSION:
Implementors should note that the actual identifying data is
@@ -444,7 +444,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
allow the client to convey its FQDN to the server this document
defines a new DHCP option, called "Client FQDN". The FQDN Option
also contains Flags and RCode fields which DHCP servers can use to
- convey information about DNS updates to clients.
+ convey information about DNS updates to clients.
Clients MAY send the FQDN option, setting appropriate Flags values,
in both their DISCOVER and REQUEST messages. If a client sends the
@@ -456,7 +456,7 @@ Stapp & Rekhter Expires September 2000 [Page 8]
Internet-Draft Interaction between DHCP and DNS March 2000
- subsequent REQUEST messages.
+ subsequent REQUEST messages.
The code for this option is 81. Its minimum length is 4.
@@ -481,12 +481,12 @@ Internet-Draft Interaction between DHCP and DNS March 2000
indicate that it will not perform any Dynamic DNS updates, and that
it expects the DHCP server to perform any FQDN-to-IP (the A RR) DNS
update on its behalf. If this bit is clear, the client indicates
- that it intends to maintain its own FQDN-to-IP mapping update.
+ that it intends to maintain its own FQDN-to-IP mapping update.
If a DHCP server intends to take responsibility for the A RR update
whether or not the client sending the FQDN option has set the "S"
bit, it sets both the "O" bit and the "S" bit, and sends the FQDN
- option in its DHCPOFFER and/or DHCPACK messages.
+ option in its DHCPOFFER and/or DHCPACK messages.
The data in the Domain Name field may appear in one of two formats:
ASCII, or DNS-style binary encoding (without compression, of
@@ -497,12 +497,12 @@ Internet-Draft Interaction between DHCP and DNS March 2000
reply, it MUST use the same encoding that the client used. The DNS
encoding is recommended. The use of ASCII-encoded domain-names is
fragile, and the use of ASCII encoding in this option should be
- considered deprecated.
+ considered deprecated.
The remaining bits in the Flags field are reserved for future
assignment. DHCP clients and servers which send the FQDN option MUST
set the MBZ bits to 0, and they MUST ignore values in the part of
- the field labelled "MBZ".
+ the field labelled "MBZ".
@@ -670,7 +670,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
described in Section 8. The server MAY originate the update before
the server sends the DHCPACK message to the client. In this case the
RCODE from the update [RFC2136] MUST be carried to the client in the
- RCODE2 field of the Client FQDN option in the DHCPACK message.
+ RCODE2 field of the Client FQDN option in the DHCPACK message.
Alternatively the server MAY send the DHCPACK message to the client
without waiting for the update to be completed. In this case the
@@ -794,7 +794,7 @@ Internet-Draft Interaction between DHCP and DNS March 2000
existing A RR and the existing DHCID RR, adding A and DHCID RRs that
represent the IP address and client-identity of the new client.
-
+
DISCUSSION:
The updating entity may be configured to allow the existing DNS
diff --git a/doc/draft/draft-ietf-dnsext-zone-status-02.txt b/doc/draft/draft-ietf-dnsext-zone-status-02.txt
index dc0836b113..6cb4128760 100644
--- a/doc/draft/draft-ietf-dnsext-zone-status-02.txt
+++ b/doc/draft/draft-ietf-dnsext-zone-status-02.txt
@@ -36,10 +36,10 @@ Copyright (C) The Internet Society (1999, 2000). All rights reserved.
Abstract
-The definition of a secured zone is presented, updating RFC 2535.
+The definition of a secured zone is presented, updating RFC 2535.
After discussion on the mailing list and other working group
consideration, removed from earlier editions of this draft are a new
-interpretation of the NXT record and a proposal to obsolete NULL
+interpretation of the NXT record and a proposal to obsolete NULL
keys. Deprecation of "experimentally secure" remains.
1 Introduction
@@ -93,9 +93,9 @@ secured.
1.2 Islands of Security
The goal of DNSSEC is to have each zone secured, from the root zone
-and the top-level domains down the hierarchy to the leaf zones.
+and the top-level domains down the hierarchy to the leaf zones.
Transitioning from an unsecured DNS, as we have now, to a fully
-secured - or "as much as will be secured" - tree will take some time.
+secured - or "as much as will be secured" - tree will take some time.
During this time, DNSSEC will be applied in various locations in the
tree, not necessarily "top down."
@@ -313,7 +313,7 @@ migration from an unsecured zone to a secured zone. This distinction
is dropped.
The objective of facilitating the migration can be achieved without a
-special designation of an experimentally secure status.
+special designation of an experimentally secure status.
Experimentally secured is a special case of privately secured. A zone
administrator can achieve this by publishing a zone with signatures
and configuring a set of test resolvers with the corresponding public
diff --git a/doc/draft/draft-ietf-enum-rqmts-01.txt b/doc/draft/draft-ietf-enum-rqmts-01.txt
index ce6f235830..ad453c4f21 100644
--- a/doc/draft/draft-ietf-enum-rqmts-01.txt
+++ b/doc/draft/draft-ietf-enum-rqmts-01.txt
@@ -2,318 +2,319 @@
Telephone Number Mapping A. Brown
Internet Draft Nortel Networks
Document: June 2000
-Category: Informational
-
-
- ENUM Requirements
-
-
-Status of this Memo
-
- This document is an Internet-Draft and is in full conformance with
- all provisions of Section 10 of RFC2026 [1].
-
- Internet-Drafts are working documents of the Internet Engineering
- Task Force (IETF), its areas, and its working groups. Note that
+Category: Informational
+
+
+ ENUM Requirements
+
+
+Status of this Memo
+
+ This document is an Internet-Draft and is in full conformance with
+ all provisions of Section 10 of RFC2026 [1].
+
+ Internet-Drafts are working documents of the Internet Engineering
+ Task Force (IETF), its areas, and its working groups. Note that
other groups may also distribute working documents as Internet-
- Drafts. Internet-Drafts are draft documents valid for a maximum of
- six months and may be updated, replaced, or obsoleted by other
- documents at any time. It is inappropriate to use Internet- Drafts
- as reference material or to cite them other than as "work in
- progress."
-
- The list of current Internet-Drafts can be accessed at
- http://www.ietf.org/ietf/1id-abstracts.txt
- The list of Internet-Draft Shadow Directories can be accessed at
- http://www.ietf.org/shadow.html.
-
-1. Abstract
-
- This paper defines the requirements for a DNS-based architecture and
- protocols for mapping a telephone number to a set of attributes
- (e.g., URLs) that can be used to contact a resource associated with
- that number. There are many possible protocols that can be
- considered for a telephone number mapping service. The purpose of
- this document is to focus discussion on a DNS-based solution. The
- intention is to enumerate the expectations of such a solution and to
- clarify the scope.
-
-2. Conventions used in this document
-
- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
- "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in
- this document are to be interpreted as described in RFC-2119 [2].
-
-3. Requirements
-
-3.1 Endpoint Address Lookup
-
- The system SHALL provide a service for the retrieval of service
- specific endpoint addresses (e.g., email address, IP address, SIP
- address, URL, etc.) or the retrieval of the addresses of servers, if
- available, which may contain this endpoint information.
-
-
- ENUM Requirements June 2000
-
-
-3.2 Capabilities Retrieval/Negotiation
-
- The retrieval or negotiation of capabilities is beyond the scope of
- the system.
-
-3.3 Retrieval of Additional Information and Capabilities
-
- The retrieval of additional, application-specific information (e.g.,
- spoken name for verification purposes) is beyond the scope of the
- system. The system MUST provide a service for the retrieval of
- protocol and service information if available.
-
- The system SHOULD provide access to capabilities relevant to the
- telephone number in question. The retrieval or negotiation of
- capabilities will depend on the outcome of the rescap work or work
- done in other groups.
-
-3.4 Qualification of the Request
-
- The system is not required to enable the qualification of a request
- by a user, for the purposes of filtering for reducing returned
- information or for traffic reduction.
-
-3.5 Provisioning
-
- The architecture and protocol MAY support at least the existing
- administrative model as the current E.164 telephone number
- delegation system. The protocol SHOULD also provide the ability to
- support corporate numbering plan or competitive directory service
- providers under separate root domains. It SHOULD NOT require an
- additional centralized administrator beyond that required for the
- existing telephone number system.
-
- The distribution of telephone numbers is a national affair by ITU
- treaty and different telephone number distribution schemes may
- require different delegation models. How nations choose to
- administer the ENUM space within their borders is a national issue.
- In any case, the subscriber or enterprise is the ultimate authority
- for service provisioning.
-
- Further, it must be possible for the authority to which a telephone
- number has been delegated to redirect the query to a different
- entity that provides service-specific information for that number.
-
-3.6 Propagation of Changes
-
- Propagation of Changes If multiple copies of the data are
- distributed in different areas, their update should be incorporated
- almost simultaneously depending on the application of DNS to
- services.
-
+ Drafts. Internet-Drafts are draft documents valid for a maximum of
+ six months and may be updated, replaced, or obsoleted by other
+ documents at any time. It is inappropriate to use Internet- Drafts
+ as reference material or to cite them other than as "work in
+ progress."
+
+ The list of current Internet-Drafts can be accessed at
+ http://www.ietf.org/ietf/1id-abstracts.txt
+ The list of Internet-Draft Shadow Directories can be accessed at
+ http://www.ietf.org/shadow.html.
+
+1. Abstract
+
+ This paper defines the requirements for a DNS-based architecture and
+ protocols for mapping a telephone number to a set of attributes
+ (e.g., URLs) that can be used to contact a resource associated with
+ that number. There are many possible protocols that can be
+ considered for a telephone number mapping service. The purpose of
+ this document is to focus discussion on a DNS-based solution. The
+ intention is to enumerate the expectations of such a solution and to
+ clarify the scope.
+
+2. Conventions used in this document
+
+ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
+ "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in
+ this document are to be interpreted as described in RFC-2119 [2].
+
+3. Requirements
+
+3.1 Endpoint Address Lookup
+
+ The system SHALL provide a service for the retrieval of service
+ specific endpoint addresses (e.g., email address, IP address, SIP
+ address, URL, etc.) or the retrieval of the addresses of servers, if
+ available, which may contain this endpoint information.
-
- ENUM Requirements June 2000
-
-
- When a numbering plan change is made in a country or network, the
- update of relevant E.164 number data in DNS needs to be coordinated
- with the change.
-
-3.7 Response Timeout
-
- The system SHALL have a defined timeout mechanism.
-
-3.8 Global Number Portability
-
- The system MUST support existing local number portability
- mechanisms, where applicable. It is RECOMMENDED that the system not
- be designed in such as way as to impede future global number
- portability.
-
-3.9 Scalability
-
- The system MUST scale to handle quantities of telephone numbers and
- queries comparable to current and expected future PSTN usage.
-
- It must be possible to operate the system based on telephone number
+ ENUM Requirements June 2000
+
+
+3.2 Capabilities Retrieval/Negotiation
+
+ The retrieval or negotiation of capabilities is beyond the scope of
+ the system.
+
+3.3 Retrieval of Additional Information and Capabilities
+
+ The retrieval of additional, application-specific information (e.g.,
+ spoken name for verification purposes) is beyond the scope of the
+ system. The system MUST provide a service for the retrieval of
+ protocol and service information if available.
+
+ The system SHOULD provide access to capabilities relevant to the
+ telephone number in question. The retrieval or negotiation of
+ capabilities will depend on the outcome of the rescap work or work
+ done in other groups.
+
+3.4 Qualification of the Request
+
+ The system is not required to enable the qualification of a request
+ by a user, for the purposes of filtering for reducing returned
+ information or for traffic reduction.
+
+3.5 Provisioning
+
+ The architecture and protocol MAY support at least the existing
+ administrative model as the current E.164 telephone number
+ delegation system. The protocol SHOULD also provide the ability to
+ support corporate numbering plan or competitive directory service
+ providers under separate root domains. It SHOULD NOT require an
+ additional centralized administrator beyond that required for the
+ existing telephone number system.
+
+ The distribution of telephone numbers is a national affair by ITU
+ treaty and different telephone number distribution schemes may
+ require different delegation models. How nations choose to
+ administer the ENUM space within their borders is a national issue.
+ In any case, the subscriber or enterprise is the ultimate authority
+ for service provisioning.
+
+ Further, it must be possible for the authority to which a telephone
+ number has been delegated to redirect the query to a different
+ entity that provides service-specific information for that number.
+
+3.6 Propagation of Changes
+
+ Propagation of Changes If multiple copies of the data are
+ distributed in different areas, their update should be incorporated
+ almost simultaneously depending on the application of DNS to
+ services.
+
+
+
+
+ ENUM Requirements June 2000
+
+
+ When a numbering plan change is made in a country or network, the
+ update of relevant E.164 number data in DNS needs to be coordinated
+ with the change.
+
+3.7 Response Timeout
+
+ The system SHALL have a defined timeout mechanism.
+
+3.8 Global Number Portability
+
+ The system MUST support existing local number portability
+ mechanisms, where applicable. It is RECOMMENDED that the system not
+ be designed in such as way as to impede future global number
+ portability.
+
+3.9 Scalability
+
+ The system MUST scale to handle quantities of telephone numbers and
+ queries comparable to current and expected future PSTN usage.
+
+ It must be possible to operate the system based on telephone number
blocks defined at the digit boundaries as well as explicit per-
- number configuration.
-
-3.10 Query Performance
-
- It SHOULD be possible to administer the ENUM service using the
- selected protocols and structures such that the current user
- expectations for latency in telecommunications services can be met.
- In particular, it SHOULD be possible to operate the system in such a
- manner that an ENUM query for a service-specific record can be
- satisfied within one second 95% of the time and that within two
- seconds, the query can be satisfied 99% of the time.
-
-3.11 Other PSTN Numbering Services
-
- E.164 numbers, short codes, service codes and prefixes are
- categorized in dialing plans. A prefix is an indicator consisting
- of one or more digits that allows the selection of different types
- of number formats, networks and/or services. Prefixes are not part
- of the number and are part of a dialing plan. The uses and the
- formats of prefixes are a national matter. Short codes, e.g.
- emergency, or service codes may be used based on the national
- numbering plan. Those codes are not universal and typically valid
- only within a numbering domain identified with the same country code
- or country code + network identification code.
-
- PSTN type numbering services such as Emergency 911, directory
- assistance 411, and other carrier codes for services accessible via
- non-E164 (or subset) telephone number service access codes are
- outside the scope of ENUM.
-
-3.12 Privacy
-
- ENUM Requirements June 2000
-
-
-
- The system MUST allow the owner of the telephone number to control
- the information which prospective callers may receive.
-
-3.13 Competition
-
- The solution MUST permit competing service providers to offer
- telecommunications service for a given number. Competing
- telecommunications services MUST be enabled where the ENUM entry is
- administered by the single entity to which the number is delegated.
- Who that single entity is, is beyond the scope of ENUM.
-
-3.14 Authorization of Requests and Responses
-
- The system SHALL enable the authorization of requests and responses.
-
-3.15 Privacy and Integrity of Requests and Responses
-
- The system SHALL enable the privacy and integrity of requests and
- responses.
-
-3.16 Call Routing
-
- The system is not required to provide a service for routing calls or
- locating gateways to a specific service.
-
-3.17 Service Logic
-
- The system is not responsible for employing service logic for the
- intelligent retrieval of information.
-
-3.18 E.164 Numbers
-
- The system is not responsible for returning information on private
- numbering plans and non-E.164 numbers. The system is responsible
- for returning information on 1-800 and other legitimate E.164
- numbers.
-
-3.19 Application Specific Use of ENUM
-
- The ENUM service MUST be application agnostic. It is expected that
- various other IETF work groups will develop ENUM specific usage
- profiles for their specific application. ENUM will not mandate the
- use of any specific DNS Resource Record for any particular
- application.
-
-4. Security Considerations
-
- This document specifies several security requirements including
- privacy of information, and authorization, privacy and integrity or
- requests and responses.
-
+ number configuration.
+
+3.10 Query Performance
+
+ It SHOULD be possible to administer the ENUM service using the
+ selected protocols and structures such that the current user
+ expectations for latency in telecommunications services can be met.
+ In particular, it SHOULD be possible to operate the system in such a
+ manner that an ENUM query for a service-specific record can be
+ satisfied within one second 95% of the time and that within two
+ seconds, the query can be satisfied 99% of the time.
+
+3.11 Other PSTN Numbering Services
+
+ E.164 numbers, short codes, service codes and prefixes are
+ categorized in dialing plans. A prefix is an indicator consisting
+ of one or more digits that allows the selection of different types
+ of number formats, networks and/or services. Prefixes are not part
+ of the number and are part of a dialing plan. The uses and the
+ formats of prefixes are a national matter. Short codes, e.g.
+ emergency, or service codes may be used based on the national
+ numbering plan. Those codes are not universal and typically valid
+ only within a numbering domain identified with the same country code
+ or country code + network identification code.
+
+ PSTN type numbering services such as Emergency 911, directory
+ assistance 411, and other carrier codes for services accessible via
+ non-E164 (or subset) telephone number service access codes are
+ outside the scope of ENUM.
+
+3.12 Privacy
+
+ ENUM Requirements June 2000
+
+
+
+ The system MUST allow the owner of the telephone number to control
+ the information which prospective callers may receive.
+
+3.13 Competition
+
+ The solution MUST permit competing service providers to offer
+ telecommunications service for a given number. Competing
+ telecommunications services MUST be enabled where the ENUM entry is
+ administered by the single entity to which the number is delegated.
+ Who that single entity is, is beyond the scope of ENUM.
+
+3.14 Authorization of Requests and Responses
+
+ The system SHALL enable the authorization of requests and responses.
+
+3.15 Privacy and Integrity of Requests and Responses
+
+ The system SHALL enable the privacy and integrity of requests and
+ responses.
+
+3.16 Call Routing
+
+ The system is not required to provide a service for routing calls or
+ locating gateways to a specific service.
+
+3.17 Service Logic
+
+ The system is not responsible for employing service logic for the
+ intelligent retrieval of information.
+
+3.18 E.164 Numbers
+
+ The system is not responsible for returning information on private
+ numbering plans and non-E.164 numbers. The system is responsible
+ for returning information on 1-800 and other legitimate E.164
+ numbers.
+
+3.19 Application Specific Use of ENUM
+
+ The ENUM service MUST be application agnostic. It is expected that
+ various other IETF work groups will develop ENUM specific usage
+ profiles for their specific application. ENUM will not mandate the
+ use of any specific DNS Resource Record for any particular
+ application.
+
+4. Security Considerations
+
+ This document specifies several security requirements including
+ privacy of information, and authorization, privacy and integrity or
+ requests and responses.
+
+
+
+ ENUM Requirements June 2000
+
+
+ The system will be designed to retrieve information required to
+ initiate an Internet telephony session. Each of these session types
+ will have their own security threats, which should be addressed in
+ the groups responsible for those services.
+
+5. References
+
+
+ 1 Bradner, S., "The Internet Standards Process -- Revision 3", BCP
+ 9, RFC 2026, October 1996.
+
+ 2 Bradner, S., "Key words for use in RFCs to Indicate Requirement
+ Levels", BCP 14, RFC 2119, March 1997
+
+6. Acknowledgements
+
+ This document is based on discussions from the ENUM working group.
+
+7. Author's Addresses
+
+ Anne Brown
+ Nortel Networks
+ P.O. Box 3511, Station C
+ K1Y 4H7
+ Phone: +1 613 765 5274
+ Email: arbrown@nortelnetworks.com
+
+8. Changes From draft-enum-rqmts-00.txt
+
+ Based on WG discussions and input documents from the SG2 workshop,
+ the following changes have been made since the previous version of
+ this draft:
+
+ 3.1 Endpoint Address Lookup
+ Major - URLs are not the only response
+ 3.3 Retrieval of Additional Information and Capabilities
+ Renamed from "Retrieval of Additional Information"
+ Minor - Added paragraph on capabilities
+ 3.5 Provisioning
+ Major - New text involving change of ENUM scope
+ 3.6 Propagation of Changes
+ New section
+ Major - New section based on nnar-e164-dns-iw-info.txt
+ 3.9 Scalability
+ Renumbered from 3.8
+ Major - New paragraph on handling of both blocks and
+ individual telephone numbers.
+ 3.10 Query Performance
+ Renumbered from 3.9
+ Major - Upgraded to support PSTN performance
+ expectations
+ 3.11 Other PSTN Numbering Services
+ Renumbered from 3.10
+
+ ENUM Requirements June 2000
+
+
+ Renamed from "Other PSTN Services"
+ Minor - Changes for clarification based on WG
+ discussions and nnar-e164-dns-iw-info.txt
+
+ 3.13 Competition
+ Renumbered from 3.12
+ Major - Telephone number MUST be able to be
+ administered by a single entity
+
+ 3.19 Application Specific Use of ENUM
+ New Section
+ Major - For clarification
+
+Full Copyright Statement
+
+ "Copyright (C) The Internet Society (date). All Rights Reserved.
+ This document and translations of it may be copied and furnished to
+ others, and derivative works that comment on or otherwise explain it
+ or assist in its implmentation may be prepared, copied, published
+ and distributed, in whole or in part, without restriction of any
+ kind, provided that the above copyright notice and this paragraph
+ are included on all such copies and derivative works. However, this
+ document itself may not be modified in any way, such as by removing
+ the copyright notice or references to the Internet Society or other
+ Internet organizations, except as needed for the purpose of
+ developing Internet standards in which case the procedures for
+ copyrights defined in the Internet Standards process must be
+ followed, or as required to translate it into
+
-
- ENUM Requirements June 2000
-
-
- The system will be designed to retrieve information required to
- initiate an Internet telephony session. Each of these session types
- will have their own security threats, which should be addressed in
- the groups responsible for those services.
-
-5. References
-
-
- 1 Bradner, S., "The Internet Standards Process -- Revision 3", BCP
- 9, RFC 2026, October 1996.
-
- 2 Bradner, S., "Key words for use in RFCs to Indicate Requirement
- Levels", BCP 14, RFC 2119, March 1997
-
-6. Acknowledgements
-
- This document is based on discussions from the ENUM working group.
-
-7. Author's Addresses
-
- Anne Brown
- Nortel Networks
- P.O. Box 3511, Station C
- K1Y 4H7
- Phone: +1 613 765 5274
- Email: arbrown@nortelnetworks.com
-
-8. Changes From draft-enum-rqmts-00.txt
-
- Based on WG discussions and input documents from the SG2 workshop,
- the following changes have been made since the previous version of
- this draft:
-
- 3.1 Endpoint Address Lookup
- Major - URLs are not the only response
- 3.3 Retrieval of Additional Information and Capabilities
- Renamed from "Retrieval of Additional Information"
- Minor - Added paragraph on capabilities
- 3.5 Provisioning
- Major - New text involving change of ENUM scope
- 3.6 Propagation of Changes
- New section
- Major - New section based on nnar-e164-dns-iw-info.txt
- 3.9 Scalability
- Renumbered from 3.8
- Major - New paragraph on handling of both blocks and
- individual telephone numbers.
- 3.10 Query Performance
- Renumbered from 3.9
- Major - Upgraded to support PSTN performance
- expectations
- 3.11 Other PSTN Numbering Services
- Renumbered from 3.10
-
- ENUM Requirements June 2000
-
-
- Renamed from "Other PSTN Services"
- Minor - Changes for clarification based on WG
- discussions and nnar-e164-dns-iw-info.txt
-
- 3.13 Competition
- Renumbered from 3.12
- Major - Telephone number MUST be able to be
- administered by a single entity
-
- 3.19 Application Specific Use of ENUM
- New Section
- Major - For clarification
-
-Full Copyright Statement
-
- "Copyright (C) The Internet Society (date). All Rights Reserved.
- This document and translations of it may be copied and furnished to
- others, and derivative works that comment on or otherwise explain it
- or assist in its implmentation may be prepared, copied, published
- and distributed, in whole or in part, without restriction of any
- kind, provided that the above copyright notice and this paragraph
- are included on all such copies and derivative works. However, this
- document itself may not be modified in any way, such as by removing
- the copyright notice or references to the Internet Society or other
- Internet organizations, except as needed for the purpose of
- developing Internet standards in which case the procedures for
- copyrights defined in the Internet Standards process must be
- followed, or as required to translate it into
-
@@ -338,5 +339,4 @@ Full Copyright Statement
-
diff --git a/doc/draft/draft-ietf-ipngwg-default-addr-select-00.txt b/doc/draft/draft-ietf-ipngwg-default-addr-select-00.txt
index f62bd8d558..93d81bc63b 100644
--- a/doc/draft/draft-ietf-ipngwg-default-addr-select-00.txt
+++ b/doc/draft/draft-ietf-ipngwg-default-addr-select-00.txt
@@ -1,561 +1,561 @@
-IPng Working Group R. Draves
-Internet Draft Microsoft Research
-Document: draft-ietf-ipngwg-default-addr-select-00.txt October 22, 1999
-Category: Standards Track
-
- Default Address Selection for IPv6
+IPng Working Group R. Draves
+Internet Draft Microsoft Research
+Document: draft-ietf-ipngwg-default-addr-select-00.txt October 22, 1999
+Category: Standards Track
-Status of this Memo
+ Default Address Selection for IPv6
- This document is an Internet-Draft and is in full conformance with
- all provisions of Section 10 of RFC 2026 [1].
+Status of this Memo
- Internet-Drafts are working documents of the Internet Engineering
- Task Force (IETF), its areas, and its working groups. Note that
+ This document is an Internet-Draft and is in full conformance with
+ all provisions of Section 10 of RFC 2026 [1].
+
+ Internet-Drafts are working documents of the Internet Engineering
+ Task Force (IETF), its areas, and its working groups. Note that
other groups may also distribute working documents as Internet-
- Drafts.
+ Drafts.
- Internet-Drafts are draft documents valid for a maximum of six
- months and may be updated, replaced, or obsoleted by other documents
- at any time. It is inappropriate to use Internet-Drafts as reference
- material or to cite them other than as "work in progress."
+ Internet-Drafts are draft documents valid for a maximum of six
+ months and may be updated, replaced, or obsoleted by other documents
+ at any time. It is inappropriate to use Internet-Drafts as reference
+ material or to cite them other than as "work in progress."
- The list of current Internet-Drafts can be accessed at
- http://www.ietf.org/ietf/1id-abstracts.txt.
+ The list of current Internet-Drafts can be accessed at
+ http://www.ietf.org/ietf/1id-abstracts.txt.
- The list of Internet-Draft Shadow Directories can be accessed at
- http://www.ietf.org/shadow.html.
+ The list of Internet-Draft Shadow Directories can be accessed at
+ http://www.ietf.org/shadow.html.
-Abstract
+Abstract
- This document describes two algorithms, for destination address
- ordering and for source address selection. The algorithms specify
- default behavior for all IPv6 implementations. They do not override
- choices made by applications or upper-layer protocols, nor do they
- preclude the development of more advanced mechanisms for address
- selection. The two algorithms share a common framework, including an
- optional mechanism for allowing administrators to provide policy
- that can override the default behavior.
+ This document describes two algorithms, for destination address
+ ordering and for source address selection. The algorithms specify
+ default behavior for all IPv6 implementations. They do not override
+ choices made by applications or upper-layer protocols, nor do they
+ preclude the development of more advanced mechanisms for address
+ selection. The two algorithms share a common framework, including an
+ optional mechanism for allowing administrators to provide policy
+ that can override the default behavior.
-1. Introduction
+1. Introduction
- The IPv6 addressing architecture [2] allows multiple unicast
- addresses to be assigned to interfaces. These addresses may have
- different reachability scopes (link-local, site-local, or global).
- These addresses may be "preferred" or "deprecated" [3]. In addition,
- multi-homing situations will result in more addresses per node. For
- example, a node may have multiple interfaces, some of them tunnels
- or virtual interfaces, or a site may have multiple ISP attachments.
+ The IPv6 addressing architecture [2] allows multiple unicast
+ addresses to be assigned to interfaces. These addresses may have
+ different reachability scopes (link-local, site-local, or global).
+ These addresses may be "preferred" or "deprecated" [3]. In addition,
+ multi-homing situations will result in more addresses per node. For
+ example, a node may have multiple interfaces, some of them tunnels
+ or virtual interfaces, or a site may have multiple ISP attachments.
- The end result is that IPv6 implementations will very often be faced
- with multiple possible source and destination addresses when
- initiating communication. It is desirable to have simple default
- algorithms, common across all implementations, for selecting source
-
-Draves Standards Track - Expires May 2000 1
+ The end result is that IPv6 implementations will very often be faced
+ with multiple possible source and destination addresses when
+ initiating communication. It is desirable to have simple default
+ algorithms, common across all implementations, for selecting source
+
+Draves Standards Track - Expires May 2000 1
-Default Address Selection for IPv6 October 22, 1999
-
-
- and destination addresses so that developers and administrators can
- reason about and predict the behavior of their systems.
+Default Address Selection for IPv6 October 22, 1999
- This document specifies source address selection and destination
- address selection separately, but using a common framework so that
- together the two algorithms yield useful results. The algorithms
- attempt to choose source and destination addresses of appropriate
- scope and configuration status (preferred or deprecated).
- Furthermore, this document suggests a preferred method, longest
- matching prefix, for choosing among otherwise equivalent addresses
- in the absence of better information.
- The framework also has policy hooks to allow administrative override
- of the default behavior. For example, using these hooks an
- administrator can specify a preferred source prefix for use with a
- destination prefix, or prefer destination addresses with one prefix
- over addresses with another prefix. These hooks give an
- administrator flexibility in dealing with some multi-homing and
- transition scenarios, but they are certainly not a panacea.
+ and destination addresses so that developers and administrators can
+ reason about and predict the behavior of their systems.
- The rules specified in this document MUST NOT be construed to
- override an application or upper-layer's explicit choice of
- destination or source address.
+ This document specifies source address selection and destination
+ address selection separately, but using a common framework so that
+ together the two algorithms yield useful results. The algorithms
+ attempt to choose source and destination addresses of appropriate
+ scope and configuration status (preferred or deprecated).
+ Furthermore, this document suggests a preferred method, longest
+ matching prefix, for choosing among otherwise equivalent addresses
+ in the absence of better information.
-1.1. Conventions used in this document
+ The framework also has policy hooks to allow administrative override
+ of the default behavior. For example, using these hooks an
+ administrator can specify a preferred source prefix for use with a
+ destination prefix, or prefer destination addresses with one prefix
+ over addresses with another prefix. These hooks give an
+ administrator flexibility in dealing with some multi-homing and
+ transition scenarios, but they are certainly not a panacea.
- The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
- "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in
- this document are to be interpreted as described in RFC-2119 [4].
+ The rules specified in this document MUST NOT be construed to
+ override an application or upper-layer's explicit choice of
+ destination or source address.
-2. Framework
+1.1. Conventions used in this document
- Our framework for address selection derives from the most common
- implementation architecture, which separates the choice of
- destination address from the choice of source address. Consequently,
- the framework specifies two separate algorithms for these tasks. The
- algorithms are designed to work well together and they share a
- mechanism for administrative policy override.
+ The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
+ "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in
+ this document are to be interpreted as described in RFC-2119 [4].
- In this implementation architecture, applications use APIs [5] like
- getipnodebyname() and getaddrinfo() that return a list of addresses
- to the application. The application then passes a destination
- address to the IPv6 layer with connect() or sendto(). The
- application might just use the first address in the list, or it
- might loop over the list of addresses to find a working address. In
- any case, the IPv6 network layer is never in a position where it
- needs to choose a destination address from several alternatives. The
- application might also specify a source address with bind(), but
- often the source address is left unspecified. Therefore the IPv6
- layer does often choose a source address from several alternatives.
+2. Framework
- As a consequence, we intend that implementations of
- getipnodebyname() and getaddrinfo() will use the destination address
-
-Draves Standards Track - Expires May 2000 2
+ Our framework for address selection derives from the most common
+ implementation architecture, which separates the choice of
+ destination address from the choice of source address. Consequently,
+ the framework specifies two separate algorithms for these tasks. The
+ algorithms are designed to work well together and they share a
+ mechanism for administrative policy override.
+
+ In this implementation architecture, applications use APIs [5] like
+ getipnodebyname() and getaddrinfo() that return a list of addresses
+ to the application. The application then passes a destination
+ address to the IPv6 layer with connect() or sendto(). The
+ application might just use the first address in the list, or it
+ might loop over the list of addresses to find a working address. In
+ any case, the IPv6 network layer is never in a position where it
+ needs to choose a destination address from several alternatives. The
+ application might also specify a source address with bind(), but
+ often the source address is left unspecified. Therefore the IPv6
+ layer does often choose a source address from several alternatives.
+
+ As a consequence, we intend that implementations of
+ getipnodebyname() and getaddrinfo() will use the destination address
+
+Draves Standards Track - Expires May 2000 2
-Default Address Selection for IPv6 October 22, 1999
-
-
- ordering algorithm specified here to sort the list of addresses that
- they return. Separately, the IPv6 network layer will use the source
- address selection algorithm when an application or upper-layer has
- not specified a source address.
+Default Address Selection for IPv6 October 22, 1999
- The algorithms use several criteria in making their decisions. The
- combined effect is to prefer destination/source address pairs for
- which the two addresses are of equal scope or type, prefer smaller
+
+ ordering algorithm specified here to sort the list of addresses that
+ they return. Separately, the IPv6 network layer will use the source
+ address selection algorithm when an application or upper-layer has
+ not specified a source address.
+
+ The algorithms use several criteria in making their decisions. The
+ combined effect is to prefer destination/source address pairs for
+ which the two addresses are of equal scope or type, prefer smaller
scopes over larger scopes for the destination address, prefer non-
- deprecated source addresses of sufficient scope to reach the
- destination, avoid the use of transitional addresses when native
- addresses are available, and all else being equal prefer address
- pairs having the longest possible common prefix.
+ deprecated source addresses of sufficient scope to reach the
+ destination, avoid the use of transitional addresses when native
+ addresses are available, and all else being equal prefer address
+ pairs having the longest possible common prefix.
- The framework optionally allows for the possibility of
- administrative configuration of policy that can override the default
- behavior of the algorithms. The policy override takes the form of a
- configurable table that provides precedence values and preferred
- source prefixes for destination prefixes. If an implementation is
- not configurable, or if an implementation has not been configured,
- then the default policy table specified in this document MUST be
- used.
+ The framework optionally allows for the possibility of
+ administrative configuration of policy that can override the default
+ behavior of the algorithms. The policy override takes the form of a
+ configurable table that provides precedence values and preferred
+ source prefixes for destination prefixes. If an implementation is
+ not configurable, or if an implementation has not been configured,
+ then the default policy table specified in this document MUST be
+ used.
-2.1. Scope Comparisons
+2.1. Scope Comparisons
- Multicast destination addresses have a 4-bit scope field that
- controls the propagation of the multicast packet. The IPv6
- addressing architecture defines scope field values for node-local
- (0x1), link-local (0x2), site-local (0x5), organization-local (0x8),
- and global (0xE) scopes.
+ Multicast destination addresses have a 4-bit scope field that
+ controls the propagation of the multicast packet. The IPv6
+ addressing architecture defines scope field values for node-local
+ (0x1), link-local (0x2), site-local (0x5), organization-local (0x8),
+ and global (0xE) scopes.
- Application of the address selection algorithms in the presence of
- multicast destination addresses requires the comparison of a unicast
+ Application of the address selection algorithms in the presence of
+ multicast destination addresses requires the comparison of a unicast
address scope with a multicast address scope. We map unicast link-
local to multicast link-local, unicast site-local to multicast site-
- local, and unicast global scope to multicast global scope. For
- example, unicast site-local is equal to multicast site-local, which
- is smaller than multicast organization-local, which is smaller than
- unicast global, which is equal to multicast global.
+ local, and unicast global scope to multicast global scope. For
+ example, unicast site-local is equal to multicast site-local, which
+ is smaller than multicast organization-local, which is smaller than
+ unicast global, which is equal to multicast global.
- We write Scope(A) to mean the scope of address A. For example, if A
- is a link-local unicast address and B is a site-local multicast
- address, then Scope(A) < Scope(B).
+ We write Scope(A) to mean the scope of address A. For example, if A
+ is a link-local unicast address and B is a site-local multicast
+ address, then Scope(A) < Scope(B).
- This mapping implicitly conflates unicast site boundaries and
- multicast site boundaries.
+ This mapping implicitly conflates unicast site boundaries and
+ multicast site boundaries.
-2.2. IPv4-Compatible Addresses and Other Format Prefixes
+2.2. IPv4-Compatible Addresses and Other Format Prefixes
- For the purposes of this document, IPv4-compatible addresses have
- global scope and "preferred" configuration status.
+ For the purposes of this document, IPv4-compatible addresses have
+ global scope and "preferred" configuration status.
-
-Draves Standards Track - Expires May 2000 3
+
+Draves Standards Track - Expires May 2000 3
-Default Address Selection for IPv6 October 22, 1999
-
-
+Default Address Selection for IPv6 October 22, 1999
+
+
Similarly, NSAP addresses, IPX addresses, or addresses with as-yet-
- undefined format prefixes should be treated as having global scope
- and "preferred" configuration status. Later standards may supercede
- this treatment.
+ undefined format prefixes should be treated as having global scope
+ and "preferred" configuration status. Later standards may supercede
+ this treatment.
- The loopback address should be treated as having link-local scope
- and "preferred" configuration status.
+ The loopback address should be treated as having link-local scope
+ and "preferred" configuration status.
-2.3. Policy Table
+2.3. Policy Table
- The policy table is a longest-matching-prefix lookup table, like a
- routing table. Given an address A, a lookup in the policy table
- produces three values: a precedence value Precedence(A), a
- classification or label Label(A), and a second label
- MatchSrcLabel(A).
+ The policy table is a longest-matching-prefix lookup table, like a
+ routing table. Given an address A, a lookup in the policy table
+ produces three values: a precedence value Precedence(A), a
+ classification or label Label(A), and a second label
+ MatchSrcLabel(A).
- The precedence value Precedence(A) is used for sorting destination
- addresses. If Precedence(A) > Precedence(B), we say that address A
- has higher precedence than address B, meaning that our algorithm
- will prefer to sort destination address A before destination address
- B.
+ The precedence value Precedence(A) is used for sorting destination
+ addresses. If Precedence(A) > Precedence(B), we say that address A
+ has higher precedence than address B, meaning that our algorithm
+ will prefer to sort destination address A before destination address
+ B.
- The labels Label(A) and MatchSrcLabel(A) allow for policies that
- prefer a particular source address prefix for use with a destination
- address prefix. The algorithms prefer to use a source address S with
- a destination address D if Label(S) = MatchSrcLabel(D).
+ The labels Label(A) and MatchSrcLabel(A) allow for policies that
+ prefer a particular source address prefix for use with a destination
+ address prefix. The algorithms prefer to use a source address S with
+ a destination address D if Label(S) = MatchSrcLabel(D).
- IPv6 implementations SHOULD support configurable address selection
- via a mechanism at least as powerful as the policy tables defined
- here. If an implementation is not configurable or has not been
- configured, then it MUST operate according to the algorithms
- specified here in conjunction with the following default policy
- table:
+ IPv6 implementations SHOULD support configurable address selection
+ via a mechanism at least as powerful as the policy tables defined
+ here. If an implementation is not configurable or has not been
+ configured, then it MUST operate according to the algorithms
+ specified here in conjunction with the following default policy
+ table:
- Prefix Precedence Label MatchSrcLabel
- fe80::/10 40 1 1
- fec0::/10 30 2 2
- ::/0 20 3 3
- 2002::/16 10 4 4
- ::/96 10 5 5
-
- One effect of the default policy table is to prefer using native
- source addresses with native destination addresses, 6to4 source
- addresses with 6to4 destination addresses, and v4-compatible source
- addresses with v4-compatible destination addresses. Another effect
- of the default policy table is to prefer communication using native
- addresses to communication using either 6to4 or v4-compatible
- addresses, but not to express a preference for 6to4 addresses over
- v4-compatible addresses or vice-versa.
+ Prefix Precedence Label MatchSrcLabel
+ fe80::/10 40 1 1
+ fec0::/10 30 2 2
+ ::/0 20 3 3
+ 2002::/16 10 4 4
+ ::/96 10 5 5
+
+ One effect of the default policy table is to prefer using native
+ source addresses with native destination addresses, 6to4 source
+ addresses with 6to4 destination addresses, and v4-compatible source
+ addresses with v4-compatible destination addresses. Another effect
+ of the default policy table is to prefer communication using native
+ addresses to communication using either 6to4 or v4-compatible
+ addresses, but not to express a preference for 6to4 addresses over
+ v4-compatible addresses or vice-versa.
-
-Draves Standards Track - Expires May 2000 4
+
+Draves Standards Track - Expires May 2000 4
-Default Address Selection for IPv6 October 22, 1999
-
-
-2.4. Candidate Source Addresses
+Default Address Selection for IPv6 October 22, 1999
- Both the destination address ordering algorithm and the source
- address selection algorithm use the concept of a "candidate set" of
- potential source addresses for a given destination address.
- We write CandidateSrc(A) to denote the candidate set for the address
- A. In some cases the destination address A may be qualified with a
- scope-id or other information that will constrain the candidate set.
+2.4. Candidate Source Addresses
+
+ Both the destination address ordering algorithm and the source
+ address selection algorithm use the concept of a "candidate set" of
+ potential source addresses for a given destination address.
+
+ We write CandidateSrc(A) to denote the candidate set for the address
+ A. In some cases the destination address A may be qualified with a
+ scope-id or other information that will constrain the candidate set.
We write PreferSrc(A) to denote the subset of preferred (non-
- deprecated) addresses in CandidateSrc(A) We write MatchSrc(A) to
- denote the subset of addresses S in PreferSrc(A) for which Label(S)
- = MatchSrcLabel(A).
+ deprecated) addresses in CandidateSrc(A) We write MatchSrc(A) to
+ denote the subset of addresses S in PreferSrc(A) for which Label(S)
+ = MatchSrcLabel(A).
- The destination address ordering algorithm and the source address
- selection algorithm specify somewhat different definitions for
- CandidateSrc(A). This is because the two algorithms operate in
- different environments. The source address selection algorithm
- assumes that an outgoing interface for a packet has already been
- selected, while the destination address ordering algorithm does not
- assume that knowledge. Therefore the destination address ordering
- algorithm uses a broader or more-inclusive definition of
- CandidateSrc(A).
+ The destination address ordering algorithm and the source address
+ selection algorithm specify somewhat different definitions for
+ CandidateSrc(A). This is because the two algorithms operate in
+ different environments. The source address selection algorithm
+ assumes that an outgoing interface for a packet has already been
+ selected, while the destination address ordering algorithm does not
+ assume that knowledge. Therefore the destination address ordering
+ algorithm uses a broader or more-inclusive definition of
+ CandidateSrc(A).
- In any case, anycast addresses, multicast addresses, and the
- unspecified address MUST NOT be included in a candidate set.
+ In any case, anycast addresses, multicast addresses, and the
+ unspecified address MUST NOT be included in a candidate set.
-2.5. Common Prefix Length
+2.5. Common Prefix Length
- We define the common prefix length CommonPrefixLen(A, B) of two
- addresses A and B as the length of the longest prefix that the two
- addresses have in common. It ranges from 0 to 128.
+ We define the common prefix length CommonPrefixLen(A, B) of two
+ addresses A and B as the length of the longest prefix that the two
+ addresses have in common. It ranges from 0 to 128.
- We define the maximum common prefix length MaxCommonPrefixLen(A, X)
- of an address A and a non-empty set of addresses X as the maximum of
- CommonPrefixLen(A, B) for addresses B in the set X.
+ We define the maximum common prefix length MaxCommonPrefixLen(A, X)
+ of an address A and a non-empty set of addresses X as the maximum of
+ CommonPrefixLen(A, B) for addresses B in the set X.
-3. Destination Address Ordering
+3. Destination Address Ordering
- The destination address ordering algorithm takes a list of
- destination addresses and sorts the addresses to produce a new list.
- It is specified here in terms of the pair-wise comparison of
- addresses DA and DB, where DA appears before DB in the original
- list.
+ The destination address ordering algorithm takes a list of
+ destination addresses and sorts the addresses to produce a new list.
+ It is specified here in terms of the pair-wise comparison of
+ addresses DA and DB, where DA appears before DB in the original
+ list.
- The pair-wise comparison consists of four rules, which MUST be
- applied in order. If a rule determines a result, then the remaining
- rules are not relevant and MUST be ignored. Subsequent rules act as
- tie-breakers for earlier rules.
+ The pair-wise comparison consists of four rules, which MUST be
+ applied in order. If a rule determines a result, then the remaining
+ rules are not relevant and MUST be ignored. Subsequent rules act as
+ tie-breakers for earlier rules.
- Rule 1: If MatchSrc(DA) is non-empty and MatchSrc(DB) is empty, then
- sort DA before DB. Similarly, if MatchSrc(DA) is empty and
- MatchSrc(DB) is non-empty, then sort DB before DA.
-
-Draves Standards Track - Expires May 2000 5
+ Rule 1: If MatchSrc(DA) is non-empty and MatchSrc(DB) is empty, then
+ sort DA before DB. Similarly, if MatchSrc(DA) is empty and
+ MatchSrc(DB) is non-empty, then sort DB before DA.
+
+Draves Standards Track - Expires May 2000 5
-Default Address Selection for IPv6 October 22, 1999
-
-
- Rule 2: If Precedence(A) > Precedence(B), then sort DA before DB.
- Similarly, if Precedence(B) > Precedence(A), then sort DB before DA.
-
- Rule 3: If MatchSrc(DA) and MatchSrc(DB) are both non-empty. If
- MaxCommonPrefixLen(DA, MatchSrc(DA)) > MaxCommonPrefixLen(DB,
- MatchSrc(DB)), then sort DA before DB. Similarly, if
- MaxCommonPrefixLen(DB, MatchSrc(DB)) > MaxCommonPrefixLen(DA,
- MatchSrc(DA)), then sort DB before DA.
-
- Rule 4: Sort DA before DB.
-
- The third and fourth rules MAY be superceded if the implementation
- has other means of sorting destination addresses. For example, if
- the implementation somehow knows which destination addresses will
- result in the "best" communications performance.
-
-3.1. Candidate Source Addresses
-
- For the purposes of destination address ordering, the candidate set
- of source addresses CandidateSrc(D) for a destination address D
- SHOULD contain all and only the unicast addresses assigned to
- interfaces that might be used to send to the destination D.
-
- For example, if the address D is a link-local unicast address that
- is qualified with a scope-id value specifying a particular
- interface, then CandidateSrc(D) SHOULD contain all and only the
- unicast addresses assigned to that interface.
-
- For example, if the address D is a global scope unicast address,
- then CandidateSrc(D) MAY contain every unicast address assigned to
- all interfaces. However if the implementation wishes to consult a
- routing table and determine a likely outgoing interface, then
- CandidateSrc(D) MAY contain only unicast addresses assigned to that
- outgoing interface.
-
-4. Source Address Selection
-
- The source address selection algorithm chooses a source address for
- use with a destination address D. It is specified here in terms of
- the pair-wise comparison of addresses SA and SB. The pair-wise
- comparison can be used to select an address from the set
- CandidateSrc(D).
-
- The pair-wise comparison consists of six rules, which MUST be
- applied in order. If a rule chooses an address, then the remaining
- rules are not relevant and MUST be ignored. Subsequent rules act as
- tie-breakers for earlier rules. If the six rules fail to choose an
- address, some unspecified tie-breaker MUST be used.
-
- Rule 1: If SA is in MatchSrc(D) and SB is not, then choose SA.
- Similarly, if SB is in MatchSrc(D) and SA is not, then choose SB.
+Default Address Selection for IPv6 October 22, 1999
-
-Draves Standards Track - Expires May 2000 6
+ Rule 2: If Precedence(A) > Precedence(B), then sort DA before DB.
+ Similarly, if Precedence(B) > Precedence(A), then sort DB before DA.
+
+ Rule 3: If MatchSrc(DA) and MatchSrc(DB) are both non-empty. If
+ MaxCommonPrefixLen(DA, MatchSrc(DA)) > MaxCommonPrefixLen(DB,
+ MatchSrc(DB)), then sort DA before DB. Similarly, if
+ MaxCommonPrefixLen(DB, MatchSrc(DB)) > MaxCommonPrefixLen(DA,
+ MatchSrc(DA)), then sort DB before DA.
+
+ Rule 4: Sort DA before DB.
+
+ The third and fourth rules MAY be superceded if the implementation
+ has other means of sorting destination addresses. For example, if
+ the implementation somehow knows which destination addresses will
+ result in the "best" communications performance.
+
+3.1. Candidate Source Addresses
+
+ For the purposes of destination address ordering, the candidate set
+ of source addresses CandidateSrc(D) for a destination address D
+ SHOULD contain all and only the unicast addresses assigned to
+ interfaces that might be used to send to the destination D.
+
+ For example, if the address D is a link-local unicast address that
+ is qualified with a scope-id value specifying a particular
+ interface, then CandidateSrc(D) SHOULD contain all and only the
+ unicast addresses assigned to that interface.
+
+ For example, if the address D is a global scope unicast address,
+ then CandidateSrc(D) MAY contain every unicast address assigned to
+ all interfaces. However if the implementation wishes to consult a
+ routing table and determine a likely outgoing interface, then
+ CandidateSrc(D) MAY contain only unicast addresses assigned to that
+ outgoing interface.
+
+4. Source Address Selection
+
+ The source address selection algorithm chooses a source address for
+ use with a destination address D. It is specified here in terms of
+ the pair-wise comparison of addresses SA and SB. The pair-wise
+ comparison can be used to select an address from the set
+ CandidateSrc(D).
+
+ The pair-wise comparison consists of six rules, which MUST be
+ applied in order. If a rule chooses an address, then the remaining
+ rules are not relevant and MUST be ignored. Subsequent rules act as
+ tie-breakers for earlier rules. If the six rules fail to choose an
+ address, some unspecified tie-breaker MUST be used.
+
+ Rule 1: If SA is in MatchSrc(D) and SB is not, then choose SA.
+ Similarly, if SB is in MatchSrc(D) and SA is not, then choose SB.
+
+
+
+Draves Standards Track - Expires May 2000 6
-Default Address Selection for IPv6 October 22, 1999
-
-
- Rule 2: If SA is equal to D, then choose SA. Similarly, if SB is
- equal to D, then choose SB.
+Default Address Selection for IPv6 October 22, 1999
- Rule 3a: If Scope(SA) < Scope(SB). If Scope(SA) < Scope(D), then
- choose SB. Otherwise, if one of the source addresses is "preferred"
- and one of them is "deprecated", then choose the "preferred"
- address. Otherwise, choose SA.
- Rule 3b: Similarly, if Scope(SB) < Scope(SA). If Scope(SB) <
- Scope(D), then choose SA. Otherwise, if one of the source addresses
- is "preferred" and one of them is "deprecated", then choose the
- "preferred" address. Otherwise, choose SB.
+ Rule 2: If SA is equal to D, then choose SA. Similarly, if SB is
+ equal to D, then choose SB.
- Rule 4: The addresses SA and SB have the same scope. If one of the
- source addresses is "preferred" and one of them is "deprecated", an
- implementation MUST choose the one that is preferred.
+ Rule 3a: If Scope(SA) < Scope(SB). If Scope(SA) < Scope(D), then
+ choose SB. Otherwise, if one of the source addresses is "preferred"
+ and one of them is "deprecated", then choose the "preferred"
+ address. Otherwise, choose SA.
- Rule 5: If Label(SA) = MatchSrcLabel(D) and Label(SB) <>
- MatchSrcLabel(D), then choose SA. Similarly, if Label(SA) <>
- MatchSrcLabel(D) and Label(SB) = MatchSrcLabel(D), then choose SB.
- (Note that this rule will apply only when both SA and SB are
- deprecated.)
+ Rule 3b: Similarly, if Scope(SB) < Scope(SA). If Scope(SB) <
+ Scope(D), then choose SA. Otherwise, if one of the source addresses
+ is "preferred" and one of them is "deprecated", then choose the
+ "preferred" address. Otherwise, choose SB.
- Rule 6: If CommonPrefixLen(SA, D) > CommonPrefixLen(SB, D), then
- choose SA. Similarly, if CommonPrefixLen(SB, D) >
- CommonPrefixLen(SA, D), then choose SB.
+ Rule 4: The addresses SA and SB have the same scope. If one of the
+ source addresses is "preferred" and one of them is "deprecated", an
+ implementation MUST choose the one that is preferred.
- The sixth rule MAY be superceded if the implementation has other
- means of choosing among source addresses. For example, if the
- implementation somehow knows which source address will result in the
- "best" communications performance.
+ Rule 5: If Label(SA) = MatchSrcLabel(D) and Label(SB) <>
+ MatchSrcLabel(D), then choose SA. Similarly, if Label(SA) <>
+ MatchSrcLabel(D) and Label(SB) = MatchSrcLabel(D), then choose SB.
+ (Note that this rule will apply only when both SA and SB are
+ deprecated.)
-4.1. Candidate Source Addresses
+ Rule 6: If CommonPrefixLen(SA, D) > CommonPrefixLen(SB, D), then
+ choose SA. Similarly, if CommonPrefixLen(SB, D) >
+ CommonPrefixLen(SA, D), then choose SB.
- For the purposes of source address selection, the candidate set of
- source addresses CandidateSrc(D) for a destination address D MUST
- contain all and only the unicast addresses assigned to the interface
- that will be used to send to the destination D.
+ The sixth rule MAY be superceded if the implementation has other
+ means of choosing among source addresses. For example, if the
+ implementation somehow knows which source address will result in the
+ "best" communications performance.
-5. Interactions with Routing
+4.1. Candidate Source Addresses
- All IPv6 nodes, including both hosts and routers, MUST conform to
- this specification.
+ For the purposes of source address selection, the candidate set of
+ source addresses CandidateSrc(D) for a destination address D MUST
+ contain all and only the unicast addresses assigned to the interface
+ that will be used to send to the destination D.
- This specification of source address selection implies that routing
- (more precisely, selecting an outgoing interface on a node with
- multiple interfaces) is done before source address selection.
- However, implementations MAY use source address considerations as a
- tiebreaker when choosing among otherwise equivalent routes.
+5. Interactions with Routing
- For example, suppose a node has interfaces on two different links,
- with both links having a working default router. One of the
- interfaces has a preferred global address and the other interface
-
-Draves Standards Track - Expires May 2000 7
+ All IPv6 nodes, including both hosts and routers, MUST conform to
+ this specification.
+
+ This specification of source address selection implies that routing
+ (more precisely, selecting an outgoing interface on a node with
+ multiple interfaces) is done before source address selection.
+ However, implementations MAY use source address considerations as a
+ tiebreaker when choosing among otherwise equivalent routes.
+
+ For example, suppose a node has interfaces on two different links,
+ with both links having a working default router. One of the
+ interfaces has a preferred global address and the other interface
+
+Draves Standards Track - Expires May 2000 7
-Default Address Selection for IPv6 October 22, 1999
-
-
- only has a deprecated global address. When sending to a global
- destination address, if there's no routing reason to prefer one
- interface over the other, then an implementation MAY preferentially
- choose the outgoing interface that will allow it to use the
- preferred global source address.
+Default Address Selection for IPv6 October 22, 1999
-6. Interactions with Mobility
- TBD
+ only has a deprecated global address. When sending to a global
+ destination address, if there's no routing reason to prefer one
+ interface over the other, then an implementation MAY preferentially
+ choose the outgoing interface that will allow it to use the
+ preferred global source address.
-7. Implementation Considerations
+6. Interactions with Mobility
- The destination address ordering algorithm needs information about
- potential source addresses. One possible implementation strategy is
- for getipnodebyname() and getaddrinfo() to call down to the IPv6
- network layer with a list of destination addresses, sort the list in
- the network layer with full current knowledge of available source
- addresses, and return the sorted list to getipnodebyname() or
- getaddrinfo(). This is simple but it introduces overhead.
+ TBD
- Another implementation strategy is to call down to the network layer
- to retrieve source address information and then sort the list of
- addresses directly in the context of getipnodebyname() or
- getaddrinfo(). To reduce overhead in this approach, the source
- address information SHOULD be cached, amortizing the overhead of
- retrieving it across multiple calls to getipnodebyname() and
- getaddrinfo(). If an implementation uses cached and possibly stale
- source address information in its implementation of destination
- address ordering, then it MUST ensure that the source address
- information is no more than one second out of date.
+7. Implementation Considerations
-8. Security Considerations
+ The destination address ordering algorithm needs information about
+ potential source addresses. One possible implementation strategy is
+ for getipnodebyname() and getaddrinfo() to call down to the IPv6
+ network layer with a list of destination addresses, sort the list in
+ the network layer with full current knowledge of available source
+ addresses, and return the sorted list to getipnodebyname() or
+ getaddrinfo(). This is simple but it introduces overhead.
- This document has no direct impact on Internet infrastructure
- security.
+ Another implementation strategy is to call down to the network layer
+ to retrieve source address information and then sort the list of
+ addresses directly in the context of getipnodebyname() or
+ getaddrinfo(). To reduce overhead in this approach, the source
+ address information SHOULD be cached, amortizing the overhead of
+ retrieving it across multiple calls to getipnodebyname() and
+ getaddrinfo(). If an implementation uses cached and possibly stale
+ source address information in its implementation of destination
+ address ordering, then it MUST ensure that the source address
+ information is no more than one second out of date.
-References
-
- 1 S. Bradner, "The Internet Standards Process -- Revision 3", BCP
- 9, RFC 2026, October 1996.
+8. Security Considerations
- 2 R. Hinden, S. Deering, "IP Version 6 Addressing Architecture",
- RFC 2373, July 1998.
+ This document has no direct impact on Internet infrastructure
+ security.
- 3 S. Thompson, T. Narten, "IPv6 Stateless Address
- Autoconfiguration", RFC 2462 , December 1998.
+References
- 4 S. Bradner, "Key words for use in RFCs to Indicate Requirement
- Levels", BCP 14, RFC 2119, March 1997.
+ 1 S. Bradner, "The Internet Standards Process -- Revision 3", BCP
+ 9, RFC 2026, October 1996.
- 5 R. Gilligan, S. Thomson, J. Bound, W. Stevens, "Basic Socket
- Interface Extensions for IPv6", RFC 2553, March 1999.
+ 2 R. Hinden, S. Deering, "IP Version 6 Addressing Architecture",
+ RFC 2373, July 1998.
-
-Draves Standards Track - Expires May 2000 8
+ 3 S. Thompson, T. Narten, "IPv6 Stateless Address
+ Autoconfiguration", RFC 2462 , December 1998.
+
+ 4 S. Bradner, "Key words for use in RFCs to Indicate Requirement
+ Levels", BCP 14, RFC 2119, March 1997.
+
+ 5 R. Gilligan, S. Thomson, J. Bound, W. Stevens, "Basic Socket
+ Interface Extensions for IPv6", RFC 2553, March 1999.
+
+
+Draves Standards Track - Expires May 2000 8
-Acknowledgments
+Acknowledgments
- The author would like to acknowledge the contributions of the IPng
- Working Group.
+ The author would like to acknowledge the contributions of the IPng
+ Working Group.
-Author's Address
+Author's Address
- Richard Draves
- Microsoft Research
- One Microsoft Way
- Redmond, WA 98052
- Email: richdr@microsoft.com
+ Richard Draves
+ Microsoft Research
+ One Microsoft Way
+ Redmond, WA 98052
+ Email: richdr@microsoft.com
-Revision History
+Revision History
-Changes from draft-draves-ipngw-simple-srcaddr-01
+Changes from draft-draves-ipngw-simple-srcaddr-01
- Added framework discussion.
+ Added framework discussion.
- Added algorithm for destination address ordering.
+ Added algorithm for destination address ordering.
- Added mechanism to allow the specification of administrative policy
- that can override the default behavior.
+ Added mechanism to allow the specification of administrative policy
+ that can override the default behavior.
- Added section on routing interactions and TBD section on mobility
- interactions.
+ Added section on routing interactions and TBD section on mobility
+ interactions.
- Changed the candidate set definition for source address selection,
- so that only addresses assigned to the outgoing interface are
- allowed.
+ Changed the candidate set definition for source address selection,
+ so that only addresses assigned to the outgoing interface are
+ allowed.
- Changed the loopback address treatment to link-local scope.
+ Changed the loopback address treatment to link-local scope.
-Changes from draft-draves-ipngw-simple-srcaddr-00
+Changes from draft-draves-ipngw-simple-srcaddr-00
- Minor wording changes because DHCPv6 also supports "preferred" and
- "deprecated" addresses.
+ Minor wording changes because DHCPv6 also supports "preferred" and
+ "deprecated" addresses.
- Specified treatment of other format prefixes; now they are
- considered global scope, "preferred" addresses.
+ Specified treatment of other format prefixes; now they are
+ considered global scope, "preferred" addresses.
- Reiterated that anycast and multicast addresses are not allowed as
- source addresses.
+ Reiterated that anycast and multicast addresses are not allowed as
+ source addresses.
- Recommended that source addresses be taken from the outgoing
- interface. Required this for multicast destinations. Added analogous
- requirements for link-local and site-local destinations.
+ Recommended that source addresses be taken from the outgoing
+ interface. Required this for multicast destinations. Added analogous
+ requirements for link-local and site-local destinations.
- Specified treatment of the loopback address.
+ Specified treatment of the loopback address.
- Changed the second selection rule so that if both candidate source
- addresses have scope greater or equal than the destination address
- and only of them is preferred, the preferred address is chosen.
+ Changed the second selection rule so that if both candidate source
+ addresses have scope greater or equal than the destination address
+ and only of them is preferred, the preferred address is chosen.
-
-Draves Standards Track - Expires May 2000 9
+
+Draves Standards Track - Expires May 2000 9
-Default Address Selection for IPv6 October 22, 1999
-
-
- Full Copyright Statement
+Default Address Selection for IPv6 October 22, 1999
- Copyright (C) The Internet Society (1999). All Rights Reserved.
- This document and translations of it may be copied and furnished to
- others, and derivative works that comment on or otherwise explain it
- or assist in its implementation may be prepared, copied, published
- and distributed, in whole or in part, without restriction of any
- kind, provided that the above copyright notice and this paragraph
- are included on all such copies and derivative works. However, this
- document itself may not be modified in any way, such as by removing
- the copyright notice or references to the Internet Society or other
- Internet organizations, except as needed for the purpose of
- developing Internet standards in which case the procedures for
- copyrights defined in the Internet Standards process must be
- followed, or as required to translate it into languages other than
- English.
+ Full Copyright Statement
- The limited permissions granted above are perpetual and will not be
- revoked by the Internet Society or its successors or assigns.
+ Copyright (C) The Internet Society (1999). All Rights Reserved.
- This document and the information contained herein is provided on an
- "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
- TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
- BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
- HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
- MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+ This document and translations of it may be copied and furnished to
+ others, and derivative works that comment on or otherwise explain it
+ or assist in its implementation may be prepared, copied, published
+ and distributed, in whole or in part, without restriction of any
+ kind, provided that the above copyright notice and this paragraph
+ are included on all such copies and derivative works. However, this
+ document itself may not be modified in any way, such as by removing
+ the copyright notice or references to the Internet Society or other
+ Internet organizations, except as needed for the purpose of
+ developing Internet standards in which case the procedures for
+ copyrights defined in the Internet Standards process must be
+ followed, or as required to translate it into languages other than
+ English.
+
+ The limited permissions granted above are perpetual and will not be
+ revoked by the Internet Society or its successors or assigns.
+
+ This document and the information contained herein is provided on an
+ "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
+ TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
+ BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
+ HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
+ MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
@@ -582,6 +582,6 @@ Default Address Selection for IPv6 October 22, 1999
-
-Draves Standards Track - Expires May 2000 10
+
+Draves Standards Track - Expires May 2000 10
diff --git a/doc/draft/draft-skwan-gss-tsig-05.txt b/doc/draft/draft-skwan-gss-tsig-05.txt
index 8535e96fb8..0dc51507ca 100644
--- a/doc/draft/draft-skwan-gss-tsig-05.txt
+++ b/doc/draft/draft-skwan-gss-tsig-05.txt
@@ -576,7 +576,7 @@ The procedure for sending a signature-protected message is specified
in [TSIG]. The data to be passed to the signature routine includes
the whole DNS message with specific TSIG variables appended. For the
exact format, see [TSIG]. For this protocol, use the following
-TSIG variable values:
+TSIG variable values:
TSIG Record
NAME = key_name that identifies this context
diff --git a/doc/draft/draft-skwan-utf8-dns-03.txt b/doc/draft/draft-skwan-utf8-dns-03.txt
index 3d7cdbc6b8..54378038a2 100644
--- a/doc/draft/draft-skwan-utf8-dns-03.txt
+++ b/doc/draft/draft-skwan-utf8-dns-03.txt
@@ -34,8 +34,8 @@ http://www.ietf.org/shadow.html.
Abstract
-The Domain Name System standard specifies that names are represented
-using the ASCII character encoding. This document expands that
+The Domain Name System standard specifies that names are represented
+using the ASCII character encoding. This document expands that
specification to allow the use of the UTF-8 character encoding, a
superset of ASCII and a translation of the UCS-2 character encoding.
@@ -152,7 +152,7 @@ containing UTF-8 names to a non-UTF-8-aware DNS server.
4. Security Considerations
The choice of character encoding for names does not impact the
-security of the DNS protocol.
+security of the DNS protocol.
5. Acknowledgements
@@ -174,7 +174,7 @@ INTERNET-DRAFT UTF-8 DNS February 2000
[RFC1035] P.V. Mockapetris, "Domain Names - Implementation and
Specification," RFC 1035, ISI, Nov 1987.
-[RFC2044] F. Yergeau, "UTF-8, a transformation format of Unicode
+[RFC2044] F. Yergeau, "UTF-8, a transformation format of Unicode
and ISO 10646," RFC 2044, Alis Technologies, Oct 1996.
[RFC1958] B. Carpenter, "Architectural Principles of the
@@ -183,11 +183,11 @@ INTERNET-DRAFT UTF-8 DNS February 2000
[RFC1123] R. Braden, "Requirements for Internet Hosts -
Application and Support," STD 3, RFC 1123, January 1989.
-[RFC2130] C. Weider et. al., "The Report of the IAB Character
+[RFC2130] C. Weider et. al., "The Report of the IAB Character
Set Workshop held 29 February - 1 March 1996",
RFC 2130, Apr 1997.
-[RFC2181] R. Elz and R. Bush, "Clarifications to the DNS
+[RFC2181] R. Elz and R. Bush, "Clarifications to the DNS
Specification," RFC 2181, University of Melbourne and
RGnet Inc, July 1997.
diff --git a/doc/draft/draft-whr-dnsext-secure-online-update-00.txt b/doc/draft/draft-whr-dnsext-secure-online-update-00.txt
index 8d941bee47..6833196c3d 100644
--- a/doc/draft/draft-whr-dnsext-secure-online-update-00.txt
+++ b/doc/draft/draft-whr-dnsext-secure-online-update-00.txt
@@ -20,7 +20,7 @@ Status of this Memo
Drafts.
Internet-Drafts are draft documents valid for a maximum of six
- months and may be updated, replaced, or obsoleted by other
+ months and may be updated, replaced, or obsoleted by other
documents at any time. It is inappropriate to use Internet-Drafts
as reference material or to cite them other than as ``work in
progress.''
@@ -55,8 +55,8 @@ INTERNET-DRAFT Secure Online DNS Dynamic Update June 2000
to enable a DNS zone to provide online dynamic update and at the
same time, maintain the zone's security including role separation
- and intrusion tolerance against insider and outsider attacks.
- Threshold digital signature is used to implement the proposed
+ and intrusion tolerance against insider and outsider attacks.
+ Threshold digital signature is used to implement the proposed
architecture.
1 - Introduction
@@ -67,7 +67,7 @@ INTERNET-DRAFT Secure Online DNS Dynamic Update June 2000
distinguishes itself in that it provides high security
for a zone when allowing it support online dynamic update.
- Familiarity with the DNS system [RFC1034, RFC1035], DNS
+ Familiarity with the DNS system [RFC1034, RFC1035], DNS
Security Extension [RFC2535], dynamic update [RFC2136] and
secure dynamic update [RFC2137] is helpful and is assumed by
this document.
@@ -110,7 +110,7 @@ INTERNET-DRAFT Secure Online DNS Dynamic Update June 2000
has been pointed out that DNS dynamic updates, which enable
real-time changes (that is, add, delete, or update) in
name/address bindings, are useful under many circumstances
- [Liu99,RFC2136]. (For example, such an update allows a
+ [Liu99,RFC2136]. (For example, such an update allows a
Wang, Huang & Rine [Page 2]
@@ -124,7 +124,7 @@ INTERNET-DRAFT June 2000
be computed online. It is worthwhile to note that although
a DNS dynamic update requestor is communicating with a name
server, the name server itself has no rights to update the
- zone data. Instead, it is the zone private key, instead of
+ zone data. Instead, it is the zone private key, instead of
the name server's private key, that is needed in the dynamic
update.
@@ -135,7 +135,7 @@ INTERNET-DRAFT June 2000
private key is not kept online, zone transfer security is
not automatically provided for dynamically added RRs, where
they could be omitted, and authorization is not provided for
- the server denial of the existence of a dynamically added
+ the server denial of the existence of a dynamically added
type [RFC2137]. In this sense, this mode is not a genuine
DNS dynamic update. In mode B, on the other hand, the zone
private key is kept online at the zone primary name server;
@@ -156,13 +156,13 @@ INTERNET-DRAFT June 2000
principle and making it possible for the name server
administrator to abuse his/her power. (The importance of fending
off insider attacks has been emphasized by the security
- community [RFC2196].)
+ community [RFC2196].)
2 - The Secure On-line DNS Dynamic Update Architecture
2.1 - Background: Threshold Cryptography
- Threshold cryptography is a branch of cryptography that
+ Threshold cryptography is a branch of cryptography that
enables a group of n members, 1,2, ..., n, to act as a single
communication party, using one pair of public and private keys
[Des87,Des94,Des97]. Similar to the traditional public key
@@ -178,7 +178,7 @@ Wang, Huang & Rine [Page 3]
INTERNET-DRAFT June 2000
- a corresponding key sharing mechanism must be devised.) To
+ a corresponding key sharing mechanism must be devised.) To
perform a cryptographic computation (such as decryption, signing,
identification, etc.) on message m with key K_private, b,
b <= n , group members will be required. Each member will compute
@@ -186,7 +186,7 @@ INTERNET-DRAFT June 2000
to produce the final result. The combiner is not necessarily to
be trusted. Note that during this whole process the shared
private key, K_private, is never reconstructed. Further,
- threshold cryptography requires that the shared private key
+ threshold cryptography requires that the shared private key
cannot be reconstructed from any t < b group members.
Practical threshold cryptography for RSA and DSS have been
@@ -219,19 +219,19 @@ INTERNET-DRAFT June 2000
| Name Server |
+-----------------+
- In the above proposed architecture, we assume that there exist
- (n-1), n >= 2, machines in a given DNS zone that are under the
- control of the zone manager, but not under the control of the
- name server administrators. These machines are called the
+ In the above proposed architecture, we assume that there exist
+ (n-1), n >= 2, machines in a given DNS zone that are under the
+ control of the zone manager, but not under the control of the
+ name server administrators. These machines are called the
zone-security servers.
Using a threshold cryptography scheme with n > t >= 1, the
zone private key is shared among the (n-1) zone-security servers
and the primary name server. To update zone's data dynamically,
some of the servers will be needed. Let b > t be the number of
- zone private key shares needed in the computation of the
+ zone private key shares needed in the computation of the
signature of an RR. Since b >= 2, any change to the zone data
- will need the cooperation of at least one zone-security server;
+ will need the cooperation of at least one zone-security server;
Wang, Huang & Rine [Page 4]
@@ -239,54 +239,54 @@ Wang, Huang & Rine [Page 4]
INTERNET-DRAFT June 2000
- the name server administrator will have no way to modify the
+ the name server administrator will have no way to modify the
digitally signed zone data. Thus, the role separation principle
holds. Moreover, the above architecture enhances intrusion
tolerance of DNS.
A DNS system is said to be k-intrusion-tolerant against an
- entity, E, if breaking into k servers (including the
- zone-security servers and the DNS name servers, if applicable)
- that are outside E's control will not help E gain any knowledge
- of the zone private key. A DNS system is said to be intrusion
- tolerant against an outsider (insider) if it is at least
- 1-intrusion-tolerant against the outsider (insider). The
- architecture proposed in this document can be configured to be
+ entity, E, if breaking into k servers (including the
+ zone-security servers and the DNS name servers, if applicable)
+ that are outside E's control will not help E gain any knowledge
+ of the zone private key. A DNS system is said to be intrusion
+ tolerant against an outsider (insider) if it is at least
+ 1-intrusion-tolerant against the outsider (insider). The
+ architecture proposed in this document can be configured to be
intrusion tolerant against outside and inside attackers.
Intrusion tolerance against outsider attacks. In the
architecture, the zone private key cannot be recovered from
- any single location, thus, making the system intrusion
+ any single location, thus, making the system intrusion
tolerant against an outside attacker. That is, even when an
outside attacker manages to corrupt l, l <= t, of relevant
servers (including the name servers and the zone-security
- servers), secrecy of the zone private key is still
+ servers), secrecy of the zone private key is still
maintained.
Intrusion tolerance against insider attacks. The presence of
zone security servers and the necessity of their involvement
- in signature computations constitute a defense line
- against insider attacks, in particular, attacks from name
- server administrators. Clearly, a hostile name server
- administrator must break into at least t zone security
- servers (to get access to the respective key shares) in
+ in signature computations constitute a defense line
+ against insider attacks, in particular, attacks from name
+ server administrators. Clearly, a hostile name server
+ administrator must break into at least t zone security
+ servers (to get access to the respective key shares) in
order to perform unauthorized RR signature computations.
3 - Implementation Details
[RFC2535] defines two types of SIG records, the DSA SIG and
- the RSA/MD5 SIG. The important configuration and implementation
- aspects of our proposed architecture with respect to these two types
+ the RSA/MD5 SIG. The important configuration and implementation
+ aspects of our proposed architecture with respect to these two types
of SIGs are given next. In the following statement,
the primary name server will be referred to as server 0 and the
- (n-1) zone-security servers will be referred to as servers
+ (n-1) zone-security servers will be referred to as servers
1, 2, ... , (n-1).
3.1 - Example Configurations
- The following table gives some representative configurations, in
- terms of t and n, to achieve the above security levels in
- different application cases.
+ The following table gives some representative configurations, in
+ terms of t and n, to achieve the above security levels in
+ different application cases.
Wang, Huang & Rine [Page 5]
@@ -296,7 +296,7 @@ INTERNET-DRAFT June 2000
+----------------------------+----------------------------+
| | RSA/MD5 SIG | DSA SIG |
- | SECURITY LEVEL +-------------+--------------+
+ | SECURITY LEVEL +-------------+--------------+
| | 1-2 | 2-4 | 1-3 | 2-5 |
+----------------------------+-----+-------+-------+------+
|Intrusion tolerant against | | | | |
@@ -310,9 +310,9 @@ INTERNET-DRAFT June 2000
Assume that, in RSA, the zone's private key is d and its
public key is (e, N). Phi(N) is the Euler function of N, i.e.,
- phi(N) = (p-1)(q-1) where N = p * q. We use the threshold
+ phi(N) = (p-1)(q-1) where N = p * q. We use the threshold
digital signature scheme given in [DDB94] and now give
- how the zone private key is shared and how to generate a
+ how the zone private key is shared and how to generate a
RSA/MD5 SIG RR online.
The 1-2 case. In this case, the zone manager generates a random,
@@ -355,11 +355,11 @@ INTERNET-DRAFT June 2000
To generate a RSA/MD5 SIG, any 3 of the 4 servers will be
- needed. For example, if the primary name server and the
+ needed. For example, if the primary name server and the
zone-security servers 1 and 2 are present (the (0,1,2) case in
- the above table), the three servers will compute m^d1 mod N,
+ the above table), the three servers will compute m^d1 mod N,
m^d2 mod N, and m^d3 mod N respectively. After that any one of
- them can combine the partial results to produce
+ them can combine the partial results to produce
m^d1 * m^d2 * m^d3 mod N = m^d mod N, the digital signature of
m by the zone private key. Other possibilities of computing
the signature of m are summarized in the above table.
@@ -375,7 +375,7 @@ INTERNET-DRAFT June 2000
5 - Security considerations
- This document proposes an architecture to allow a DNS zone to
+ This document proposes an architecture to allow a DNS zone to
provide secure online DNS dynamic update. It uses threshold
digital signature to maintain the role separation principle and can
also provide intrusion tolerance against both outside attackers
@@ -393,18 +393,18 @@ INTERNET-DRAFT June 2000
7 - References
- [DDB94] Y. Desmedt, G. Di Crescenzo, and M. Burmester.
+ [DDB94] Y. Desmedt, G. Di Crescenzo, and M. Burmester.
``Multiplicative nonabelian sharing schemes and their
- application to threshold cryptography''. In J. Pieprzyk
+ application to threshold cryptography''. In J. Pieprzyk
and R. SafaviNaini, editors, Advances in Cryptology -
- Asiacrypt '94, volume 917 of Lecture Notes in Computer
- Science, pages 21--32, Wollongong, Australia,
- November/December 1994. Springer-Verlag.
+ Asiacrypt '94, volume 917 of Lecture Notes in Computer
+ Science, pages 21--32, Wollongong, Australia,
+ November/December 1994. Springer-Verlag.
- [Des87] Y. Desmedt. ``Society and group oriented cryptography:
+ [Des87] Y. Desmedt. ``Society and group oriented cryptography:
a new concept''. In C. Pomerance, editor, Advances in
- Cryptology, Proc. of Crypto '87, volume 293 of Lecture
- Notes in Computer Science, pages 120--127, Santa Barbara,
+ Cryptology, Proc. of Crypto '87, volume 293 of Lecture
+ Notes in Computer Science, pages 120--127, Santa Barbara,
California, U.S.A., August 16--20, 1988. Springer-Verlag.
@@ -416,55 +416,55 @@ INTERNET-DRAFT June 2000
[Des94] Y. Desmedt. ``Threshold cryptography''. European Trans.
on Telecommunications, 5(4):449--457, July-August 1994.
- [Des97] Y. Desmedt. ``Some recent research aspects of threshold
- cryptography''. In E. Okamoto, G. Davida, and M. Mambo,
- editors, Information Security, volume 1396 of Lecture
- Notes in Computer Science, pages 158--173, Tatsunokuchi,
- Ishikawa, Japan, September 1997. Springer-Verlag.
+ [Des97] Y. Desmedt. ``Some recent research aspects of threshold
+ cryptography''. In E. Okamoto, G. Davida, and M. Mambo,
+ editors, Information Security, volume 1396 of Lecture
+ Notes in Computer Science, pages 158--173, Tatsunokuchi,
+ Ishikawa, Japan, September 1997. Springer-Verlag.
- [DSA2] National Institute for Standards and Technology.
- ``Digital signature standard (DSS)'', February 2000.
+ [DSA2] National Institute for Standards and Technology.
+ ``Digital signature standard (DSS)'', February 2000.
- [GJKR96b] R. Gennaro, S. Jarecki, H. Krawczyk, and T. Rabin.
+ [GJKR96b] R. Gennaro, S. Jarecki, H. Krawczyk, and T. Rabin.
``Robust threshold DSS signatures''. In U. Maurer,
- editor, Advances in Cryptology - Eurocrypt '96,
- volume 1070 of Lecture Notes in Computer Science,
- pages 354-371, Zaragoza, Spain, May 12--16 1996.
- Springer-Verlag.
+ editor, Advances in Cryptology - Eurocrypt '96,
+ volume 1070 of Lecture Notes in Computer Science,
+ pages 354-371, Zaragoza, Spain, May 12--16 1996.
+ Springer-Verlag.
- [GMP] T. Granlund. ``GNU MP''. Source code available from
- http://www.gnu.org/manual/gmp/index.html.
+ [GMP] T. Granlund. ``GNU MP''. Source code available from
+ http://www.gnu.org/manual/gmp/index.html.
- [Liu99] C. Liu. ``Securing an Internet name server''.
- Presentation, 1999. Available at
+ [Liu99] C. Liu. ``Securing an Internet name server''.
+ Presentation, 1999. Available at
http://www.acmebw.com/papers/securing.pdf.
- [RFC1034] P. Mockapetris, ``Domain Names - Concepts and
+ [RFC1034] P. Mockapetris, ``Domain Names - Concepts and
Facilities,'' RFC 1034, ISI, November 1987.
[RFC1035] P. Mockapetris, ``Domain Names - Implementation and
Specification,'' RFC 1035, ISI, November 1987.
[RFC2136] P. Vixie (Ed.), S. Thomson, Y. Rekhter, J. Bound ``Dynamic
- Updates in the Domain Name System,'' RFC 2136, ISC &
+ Updates in the Domain Name System,'' RFC 2136, ISC &
Bellcore & Cisco & DEC, April 1997.
- [RFC2137] D. Eastlake ``Secure Domain Name System Dynamic Update,''
+ [RFC2137] D. Eastlake ``Secure Domain Name System Dynamic Update,''
RFC 2137, CyberCash, April 1997.
[RFC2196] B. Fraser. ``Site Security Handbook,'' RFC2196, September
1997.
- [RFC2535] D. Eastlake, ``Domain Name System Security Extensions,''
+ [RFC2535] D. Eastlake, ``Domain Name System Security Extensions,''
RFC 2535, IBM, March 1999.
- [SBM99] R. Sandhu, V. Bhamidipati, and Q. Munawer. ``The ARBAC97
- model for role-based administration of roles''. ACM
+ [SBM99] R. Sandhu, V. Bhamidipati, and Q. Munawer. ``The ARBAC97
+ model for role-based administration of roles''. ACM
Transactions on Information System Security, 2(1):105-
135, February 1999.
- [Sha79] A. Shamir. ``How to share a secret''. Commun. ACM,
- 22:612-613, November 1979.
+ [Sha79] A. Shamir. ``How to share a secret''. Commun. ACM,
+ 22:612-613, November 1979.
Wang, Huang & Rine [Page 8]
@@ -473,7 +473,7 @@ INTERNET-DRAFT June 2000
8 - Author's Address
-
+
A postscript of this document is available from
http://www.cs.gmu.edu/~xwang4/dnssecureonline.ps
@@ -489,7 +489,7 @@ INTERNET-DRAFT June 2000
Fax: +1-703-993-1710
EMail: xwang4@cs.gmu.edu
- Yih Huang
+ Yih Huang
Department of Computer Science
George Mason University
Fairfax, VA 22030-4444
@@ -499,7 +499,7 @@ INTERNET-DRAFT June 2000
Fax: +1-703-993-1710
EMail: hyangyih@cs.gmu.edu
- David Rine
+ David Rine
Department of Computer Science
George Mason University
Fairfax, VA 22030-4444
@@ -516,12 +516,12 @@ INTERNET-DRAFT June 2000
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain
- it or assist in its implementation may be prepared, copied,
+ it or assist in its implementation may be prepared, copied,
published and distributed, in whole or in part, without restriction
of any kind, provided that the above copyright notice and this
- paragraph are included on all such copies and derivative works.
- However, this document itself may not be modified in any way,
- such as by removing the copyright notice or references to the
+ paragraph are included on all such copies and derivative works.
+ However, this document itself may not be modified in any way,
+ such as by removing the copyright notice or references to the
Wang, Huang & Rine [Page 9]
diff --git a/doc/expired/draft-ietf-dnsind-binary-labels-05.txt b/doc/expired/draft-ietf-dnsind-binary-labels-05.txt
index b95dfb6244..93a8de5b7f 100644
--- a/doc/expired/draft-ietf-dnsind-binary-labels-05.txt
+++ b/doc/expired/draft-ietf-dnsind-binary-labels-05.txt
@@ -26,7 +26,7 @@ Status of this Memo
The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html.
-
+
1. Introduction and Terminology
diff --git a/doc/expired/draft-ietf-dnsind-rollover-00.txt b/doc/expired/draft-ietf-dnsind-rollover-00.txt
index 8d8cef1cfc..fb2e231c01 100644
--- a/doc/expired/draft-ietf-dnsind-rollover-00.txt
+++ b/doc/expired/draft-ietf-dnsind-rollover-00.txt
@@ -30,7 +30,7 @@ Status of This Document
other documents at any time. It is not appropriate to use Internet-
Drafts as reference material or to cite them other than as a
``working draft'' or ``work in progress.''
-
+
The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt
diff --git a/doc/man/bin/host.1 b/doc/man/bin/host.1
index 487d37ed52..c9f2477575 100644
--- a/doc/man/bin/host.1
+++ b/doc/man/bin/host.1
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: host.1,v 1.2 2000/07/27 09:42:26 tale Exp $
-.\"
+.\"
+.\" $Id: host.1,v 1.3 2000/08/01 01:18:42 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt HOST 1
.Os BIND9 9
@@ -42,7 +42,7 @@ prints a short summary of its command line arguments and options.
.Pp
.Ar name
is the domain name that is to be looked up.
-It can also be a dotted-decimal string representing an IPv4 address,
+It can also be a dotted-decimal string representing an IPv4 address,
in which case
.Nm host
will by default perform a reverse lookup for that address.
@@ -57,7 +57,7 @@ The
.Fl a
(all) option is equivalent to setting the
.Fl v
-option and asking
+option and asking
.Nm host
to make a query of type ANY.
.Pp
@@ -96,7 +96,7 @@ enabled verbose output.
List mode is selected by the
.Fl l
option.
-This makes
+This makes
.Nm host
perform a zone transfer for zone
.Ar name .
@@ -115,7 +115,7 @@ the BIND9 implementation does not append domain names from the
.Dv domain
or
.Dv search
-directives in
+directives in
.Pa /etc/resolv.conf .
Therefore
.Ar name
@@ -166,7 +166,7 @@ The
option is used to select the query type.
.Ar type
can be any recognised query type: CNAME, NS, SOA, SIG, KEY, AXFR, etc.
-When no query type is specified,
+When no query type is specified,
.Nm host
automatically selects an appropriate query type.
By default it looks for A records unless the
@@ -187,7 +187,7 @@ The
.Fl W
option makes
.Nm host
-wait for
+wait for
.Ar wait
seconds.
If
diff --git a/doc/man/bin/lwresd.8 b/doc/man/bin/lwresd.8
index 0da2cb857d..c1f69472d5 100644
--- a/doc/man/bin/lwresd.8
+++ b/doc/man/bin/lwresd.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwresd.8,v 1.5 2000/07/27 09:42:28 tale Exp $
-.\"
+.\"
+.\" $Id: lwresd.8,v 1.6 2000/08/01 01:18:43 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRESD 8
.Os BIND9 9
@@ -38,11 +38,11 @@
is the daemon providing name lookup services to clients that use
the BIND 9 lightweight resolver library.
It is essentially a stripped-down, caching-only name server that
-answers queries using the BIND 9 lightweight resolver protocol
+answers queries using the BIND 9 lightweight resolver protocol
rather than the DNS protocol.
.Pp
.Nm lwresd
-listens for resolver queries on a UDP port on the IPv4 loopback
+listens for resolver queries on a UDP port on the IPv4 loopback
interface, 127.0.0.1.
This means that
.Nm lwresd
@@ -71,8 +71,8 @@ server. If no
.Sy nameserver
entries are present, or if forwarding fails,
.Nm lwresd
-resolves the queries autonomously starting at the
-root name servers, using a compiled-in list of root
+resolves the queries autonomously starting at the
+root name servers, using a compiled-in list of root
servers hints.
.Pp
The options to
@@ -104,7 +104,7 @@ write the daemon's process id to
.Ar pid-file
instead of the default pathname.
.It Fl n
-create
+create
.Ar #cpus
worker threads to take advantage of multiple CPUs.
If no option is given,
diff --git a/doc/man/bin/named.8 b/doc/man/bin/named.8
index 0e42a5f600..de9b387449 100644
--- a/doc/man/bin/named.8
+++ b/doc/man/bin/named.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: named.8,v 1.4 2000/07/27 09:42:29 tale Exp $
-.\"
+.\"
+.\" $Id: named.8,v 1.5 2000/08/01 01:18:44 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt NAMED 8
.Os BIND9 9
@@ -55,12 +55,12 @@ However when operating as a lightweight resolver server,
.Nm named
is functionally and logically distinct from a
conventional name server.
-More information can be found in
+More information can be found in
.Xr lwresd 8 .
.Pp
Although some command-line options can be used with
.Nm named ,
-the name server's behaviour is mainly controlled by its configuration file,
+the name server's behaviour is mainly controlled by its configuration file,
.Pa /etc/named.conf .
Refer to the BIND9 Administrator Reference Manual for further details.
.Pp
@@ -89,7 +89,7 @@ run
in the foreground and force all logging to
.Dv stderr .
.It Fl n
-create
+create
.Ar #cpus
worker threads to take advantage of multiple CPUs.
If no option is given,
@@ -122,7 +122,7 @@ as UID
.Ar user-id .
.Nm named
will change its UID after it has
-carried out any privileged operations, such as
+carried out any privileged operations, such as
creating sockets that listen on privileged ports.
.It Fl x
load data from
diff --git a/doc/man/bin/nsupdate.8 b/doc/man/bin/nsupdate.8
index fc953806b8..5c37905de0 100644
--- a/doc/man/bin/nsupdate.8
+++ b/doc/man/bin/nsupdate.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: nsupdate.8,v 1.3 2000/07/27 09:42:30 tale Exp $
-.\"
+.\"
+.\" $Id: nsupdate.8,v 1.4 2000/08/01 01:18:45 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt NSUPDATE 8
.Os BIND9 9
@@ -67,7 +67,7 @@ These use the TSIG resource record type described in RFC2845.
The signatures rely on a shared secret that should only be known to
.Nm nsupdate
and the name server.
-Currently, the only supported encryption algorithm for TSIG is
+Currently, the only supported encryption algorithm for TSIG is
HMAC-MD5, which is defined in RFC 2104.
Once other algorithms are defined for TSIG, applications will need to
ensure they select the appropriate algorithm as well as the key when
@@ -141,7 +141,7 @@ Updates will be rejected if the tests for the prerequisite conditions fail.
Every update request consists of zero or more prerequisites
and one or more updates.
This allows a suitably authenticated update request to proceed if some
-specified resource records are present or missing from the zone.
+specified resource records are present or missing from the zone.
A blank input line causes the accumulated commands to be sent as one Dynamic
DNS update request to the name server.
.Pp
@@ -259,7 +259,7 @@ could be used to insert and delete resource records from the
zone.
Notice that the input in each example contains a trailing blank line so that
a group of commands are sent as one dynamic update request to the
-master name server for
+master name server for
.Dv example.com .
.Bd -literal -offset indent
# nsupdate
@@ -272,10 +272,10 @@ Any A records for
.Dv oldhost.example.com
are deleted.
and an A record for
-.Dv newhost.example.com
+.Dv newhost.example.com
it IP address 172.16.1.1 is added.
The newly-added record has a 1 day TTL (86400 seconds)
-.Bd -literal -offset indent
+.Bd -literal -offset indent
# nsupdate
> prereq nxdomain nickname.example.com
> update add nickname.example.com CNAME somehost.example.com
@@ -312,7 +312,7 @@ name server configuration file
.It Pa K{name}.+157.+{random}.key
base-64 encoding of HMAC-MD5 key created by
.Xr dnssec-keygen 8 .
-.It Pa K{name}.+157.+{random}.private
+.It Pa K{name}.+157.+{random}.private
base-64 encoding of HMAC-MD5 key created by
.Xr dnssec-keygen 8 .
.El
@@ -325,7 +325,7 @@ base-64 encoding of HMAC-MD5 key created by
.Xr RFC2535 ,
.Xr named 8 ,
.Xr dnssec-keygen 8 .
-.Sh BUGS
+.Sh BUGS
The
.Fl D
and
@@ -333,4 +333,4 @@ and
options are not documented apart from this self-referential paragraph.
They provide additional debugging information which is primarily of interest
to the BIND9 developers.
-These options might be changed or removed in future releases.
+These options might be changed or removed in future releases.
diff --git a/doc/man/bin/rndc.8 b/doc/man/bin/rndc.8
index 80b0c771b5..a8c5381505 100644
--- a/doc/man/bin/rndc.8
+++ b/doc/man/bin/rndc.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: rndc.8,v 1.7 2000/07/27 23:49:40 tale Exp $
-.\"
+.\"
+.\" $Id: rndc.8,v 1.8 2000/08/01 01:18:46 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt RDNC 8
.Os BIND9 9
@@ -31,7 +31,7 @@
.Op Fl s Ar server
.Op Fl v
.Op Fl y Ar key_id
-.Ar command ....
+.Ar command ....
.Sh DESCRIPTION
This command allows the system administrator to control the operation
of a name server.
@@ -45,16 +45,16 @@ prints a short summary of the supported commands and the available
options and their arguments.
.Pp
.Nm rndc
-communicates with the name server over a TCP connection,
-sending commands authenticated with digital signatures.
+communicates with the name server over a TCP connection,
+sending commands authenticated with digital signatures.
In the current versions of
.Nm rndc
-and
+and
.Xr named 8
the only supported encryption algorithm is HMAC-MD5, which uses a
shared secret on each end of the connection.
This provides TSIG-style authentication for the command request
-and the name server's response.
+and the name server's response.
All commands sent over the channel
must be signed by a key_id known to the server.
.Pp
@@ -86,7 +86,7 @@ option can be used to make
.Nm rndc
send commands to TCP port number
.Ar port#
-on the system running the name server instead of BIND 9's
+on the system running the name server instead of BIND 9's
default control channel port of 953.
.Pp
The
@@ -103,7 +103,7 @@ If no
.Fl y
option is provided,
.Nm rndc
-will first look for a
+will first look for a
.Dv key
clause in the
.Dv server{}
@@ -148,7 +148,7 @@ offers at least as many management capabilities as the old
.Xr ndc
utility.
.Pp
-There is currently no way to provide the shared secret for a key_id
+There is currently no way to provide the shared secret for a key_id
without using the configuration file.
.Pp
Several error messages could be clearer.
diff --git a/doc/man/bin/rndc.conf.5 b/doc/man/bin/rndc.conf.5
index 93066a59d0..dcf25eae1a 100644
--- a/doc/man/bin/rndc.conf.5
+++ b/doc/man/bin/rndc.conf.5
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: rndc.conf.5,v 1.5 2000/07/27 09:42:31 tale Exp $
-.\"
+.\"
+.\" $Id: rndc.conf.5,v 1.6 2000/08/01 01:18:48 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt RDNC.CONF 5
.Os BIND9 9
@@ -24,7 +24,7 @@
.Nd rdnc configuration file
.Sh SYNOPSIS
.Nm rdnc.conf
-.Sh DESCRIPTION
+.Sh DESCRIPTION
The BIND9 utility for controlling the name server,
.Nm rndc ,
has its own configuration file
@@ -65,13 +65,13 @@ be used when no name server is given as an argument to
The
.Dv default-key
clause
-is followed by the name of a key which is identified by a
+is followed by the name of a key which is identified by a
.Dv key{}
statement.
-If no
+If no
.Fl y
option is provided on the
-.Xr rndc
+.Xr rndc
command line, and no
.Dv key
clause is found in a a matching
@@ -81,7 +81,7 @@ commands and responses.
.Pp
After the keyword
.Dv server ,
-the
+the
.Dv server{}
statement is followed by a string which is the hostname or address for a
name server.
@@ -99,7 +99,7 @@ The statement has two clauses.
identifies the encryption algorithm for
.Nm rndc
to use; currently only HMAC-MD5 is supported.
-This is followed by a
+This is followed by a
.Dv secret
clause which contains the base-64 encoding of the
algorithm's encryption key.
@@ -161,9 +161,9 @@ To generate a random secret with
$ dnssec-keygen -a hmac-md5 -b 128 -n user rndc
.Ed
.Pp
-The base-64 string will appear in two files,
+The base-64 string will appear in two files,
.Pa Krndc.+157.+{random}.key
-and
+and
.Pa Krndc.+157.+{random}.private .
After extracting the key to be
placed in the
diff --git a/doc/man/ctoman b/doc/man/ctoman
index e4fa8fae45..44b24dae33 100755
--- a/doc/man/ctoman
+++ b/doc/man/ctoman
@@ -1,11 +1,11 @@
#!/usr/bin/gawk -f
#
# Copyright (C) 2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: ctoman,v 1.4 2000/07/27 09:42:25 tale Exp $
+# $Id: ctoman,v 1.5 2000/08/01 01:18:40 tale Exp $
#
# ctoman - an awk program that makes a passable job of
# converting ISC BIND9 C files into template
@@ -67,7 +67,7 @@ END {
print ".Nd XXX"
print ".Sh SYNOPSIS"
for (i = 1; i < inc; i++)
- print ".Fd", inclist[i]
+ print ".Fd", inclist[i]
for (i = 1; i < fnc; i++ ) {
print ".Ft", functypes[i]
print ".Fo", funclist[i]
diff --git a/doc/man/dnssec/dnssec-keygen.8 b/doc/man/dnssec/dnssec-keygen.8
index b151d80b84..d8d8cd52e3 100644
--- a/doc/man/dnssec/dnssec-keygen.8
+++ b/doc/man/dnssec/dnssec-keygen.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: dnssec-keygen.8,v 1.6 2000/07/27 09:42:32 tale Exp $
-.\"
+.\"
+.\" $Id: dnssec-keygen.8,v 1.7 2000/08/01 01:18:49 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt DNSSEC-KEYGEN 8
.Os BIND9 9
@@ -96,7 +96,7 @@ option specifies how the generated key will be used.
.Ar nametype
can be either
.Dv ZONE ,
-.Dv HOST ,
+.Dv HOST ,
.Dv ENTITY ,
or
.Dv USER
@@ -124,7 +124,7 @@ that is to be used.
The only supported values value of
.Ar generator
are 2 and 5.
-If no Diffie-Hellman generator is supplied, a known prime
+If no Diffie-Hellman generator is supplied, a known prime
from RFC2539 will be used if possible; otherwise 2 will be used as the
generator.
.Pp
@@ -133,7 +133,7 @@ The
option sets the protocol value for the generated key to
.Ar protocol-value .
The default is 2 (email) for keys of type
-.Dv USER
+.Dv USER
and 3 (DNSSEC) for all other key types.
Other possible values for this argument are listed in RFC2535 and its
successors.
@@ -149,7 +149,7 @@ will prompt for keyboard input and use the time intervals between
keystrokes to provide randomness.
The
.Fl r
-option overrides this behaviour, making
+option overrides this behaviour, making
.Nm dnssec-keygen
use
.Ar randomdev
@@ -173,16 +173,16 @@ confidentiality.
can be one of
.Dv AUTHCONF ,
.Dv NOAUTHCONF ,
-.Dv NOAUTH
+.Dv NOAUTH
or
.Dv NOCONF .
The default is
.Dv AUTHCONF .
If type is
-.Dv AUTHCONF
+.Dv AUTHCONF
the key can be used for authentication and confidentialty.
Setting
-.Ar type
+.Ar type
to
.Dv NOAUTHCONF
indicates that the key cannot be used for authentication or confidentialty.
@@ -195,14 +195,14 @@ Similarly,
defines that the key cannot be used for confidentiality though it can
be used for authentication.
.Pp
-The
+The
.Fl v
option can be used to make
.Nm dnssec-keygen
more verbose.
As the debugging/tracing level
.Ar level
-increases,
+increases,
.Nm dnssec-keygen
generates increasingly detailed reports about what it is doing.
The default level is zero.
@@ -245,7 +245,7 @@ key(s) for generating or validating signatures.
The
.Ar .key
file contains a KEY resource record that can be inserted into a zone file
-with a
+with a
.Dv $INCLUDE
statement.
The private part of the key is in the
@@ -259,7 +259,7 @@ The private part of the key is used by
.Xr dnssec-signzone 8
to generate signatures and the public part is used to verify the
signatures.
-Both
+Both
.Ar .key
and
.Ar .private
@@ -278,13 +278,13 @@ has printed the key identification string
.Dv Kexample.com.+003+26160 ,
indicating a DSA key with identifier 26160.
It will also have created the files
-.Pa Kexample.com.+003+26160.key
+.Pa Kexample.com.+003+26160.key
and
.Pa Kexample.com.+003+26160.private
containing respectively the public and private keys for the generated
DSA key.
.Sh FILES
-.Pa /dev/random
+.Pa /dev/random
.Sh SEE ALSO
.Xr RFC2535,
.Xr RFC2845,
@@ -296,7 +296,7 @@ DSA key.
The naming convention for the public and private key files is a little
clumsy.
It won't work for domain names that are longer than 236 characters
-because of the
+because of the
.Ar .+aaa+iiiii.private
suffix results in filenames that are too long for most
.Ux
diff --git a/doc/man/dnssec/dnssec-makekeyset.8 b/doc/man/dnssec/dnssec-makekeyset.8
index c24de1706f..081e036cee 100644
--- a/doc/man/dnssec/dnssec-makekeyset.8
+++ b/doc/man/dnssec/dnssec-makekeyset.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: dnssec-makekeyset.8,v 1.7 2000/07/31 19:39:38 bwelling Exp $
-.\"
+.\"
+.\" $Id: dnssec-makekeyset.8,v 1.8 2000/08/01 01:18:50 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt DNSSEC-MAKEKEYSET 8
.Os BIND9 9
@@ -70,7 +70,7 @@ A relative start time is supplied when
.Ar start-time
is given as +N: N seconds from the current time.
If no
-.Fl s
+.Fl s
option is supplied, the current date and time is used for the start
time of the SIG records.
.Pp
@@ -145,7 +145,7 @@ As the debugging/tracing level
increases,
.Nm dnssec-makekeyset
generates increasingly detailed reports about what it is doing.
-The default level is zero.
+The default level is zero.
.Pp
The
.Fl h
@@ -177,7 +177,7 @@ The backslash is for typographic reasons and would not be provided on
the command line when running
.Nm dnssec-makekeyset .
.nf
-.Dl # dnssec-makekeyset -t 86400 -s 20000701120000 \e\p
+.Dl # dnssec-makekeyset -t 86400 -s 20000701120000 \e\p
.Dl -e +2592000 Kexample.com.+003+26160
.fi
.Pp
@@ -198,7 +198,7 @@ to the DNS administrator for
.Dv .com
so that they could sign the resource records in the file.
This assumes that the
-.Dv .com
+.Dv .com
zone is DNSSEC-aware and the administrators of the two zones have some
mechanism for authenticating each other and exchanging the keys and
signatures securely.
diff --git a/doc/man/dnssec/dnssec-signkey.8 b/doc/man/dnssec/dnssec-signkey.8
index 676b121eea..2723aeae7b 100644
--- a/doc/man/dnssec/dnssec-signkey.8
+++ b/doc/man/dnssec/dnssec-signkey.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: dnssec-signkey.8,v 1.8 2000/07/31 19:39:39 bwelling Exp $
-.\"
+.\"
+.\" $Id: dnssec-signkey.8,v 1.9 2000/08/01 01:18:51 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt DNSSEC-SIGNKEY 8
.Os BIND9 9
@@ -33,7 +33,7 @@
.Sh DESCRIPTION
.Nm dnssec-signkey
is used to sign a key set for a child zone.
-Typically this would be provided by a
+Typically this would be provided by a
.Ar keyset
file generated by
.Xr dnssec-makekeyset 8 .
@@ -50,7 +50,7 @@ Each
argument will be a key identification string as reported by
.Xr dnssec-keygen 8
for the parent zone.
-This allows the child's keys to be signed by more than one
+This allows the child's keys to be signed by more than one
parent zone key.
.Pp
The
diff --git a/doc/man/dnssec/dnssec-signzone.8 b/doc/man/dnssec/dnssec-signzone.8
index e274494af4..6898596462 100644
--- a/doc/man/dnssec/dnssec-signzone.8
+++ b/doc/man/dnssec/dnssec-signzone.8
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: dnssec-signzone.8,v 1.10 2000/07/31 19:39:42 bwelling Exp $
-.\"
+.\"
+.\" $Id: dnssec-signzone.8,v 1.11 2000/08/01 01:18:52 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt DNSSEC-SIGNZONE 8
.Os BIND9 9
@@ -77,7 +77,7 @@ If there is a
.Ar signedkey
file from the zone's parent, the parent's signatures will be
incorporated into the generated signed zone file.
-The security status of delegations from the the signed zone
+The security status of delegations from the the signed zone
- i.e. whether the child zones are DNSSEC-aware or not - is
set according to the presence or absence of a
.Ar signedkey
@@ -112,7 +112,7 @@ A relative start time is supplied when
.Ar start-time
is given as +N: N seconds from the current time.
If no
-.Fl s
+.Fl s
option is supplied, the current date and time is used for the start
time of the SIG records.
.Pp
@@ -152,9 +152,9 @@ Otherwise, it is considered to be expiring soon, and
will remove it and generate a new SIG record to replace it.
.Pp
The default cycle period is one quarter of the difference between the
-specified signature end and start dates. So if the
+specified signature end and start dates. So if the
.Fl e
-and
+and
.Fl s
options are not specified,
.Nm dnssec-signzone
@@ -223,12 +223,12 @@ which is the same as the origin, so there is no need to use the
.Fl o
option to set the origin.
The zone's keys were either appended to the zone file or
-incorporated using a
-.Dv $INCLUDE
+incorporated using a
+.Dv $INCLUDE
statement.
If there was a
.Ar signedkey
-file from the parent zone - i.e.
+file from the parent zone - i.e.
.Dv signedkey-example.com.
- it should be present in the current directory.
This allows the parent zone's signature to be included in the signed
diff --git a/doc/man/isc/isc__errno2result.3 b/doc/man/isc/isc__errno2result.3
index af9cc5af6d..d6c8a943ee 100644
--- a/doc/man/isc/isc__errno2result.3
+++ b/doc/man/isc/isc__errno2result.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc__errno2result.3,v 1.2 2000/07/27 09:42:37 tale Exp $
-.\"
+.\"
+.\" $Id: isc__errno2result.3,v 1.3 2000/08/01 01:18:54 tale Exp $
+.\"
.so isc_error.3
diff --git a/doc/man/isc/isc_app.3 b/doc/man/isc/isc_app.3
index b2e056212b..9f7d114d97 100644
--- a/doc/man/isc/isc_app.3
+++ b/doc/man/isc/isc_app.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app.3,v 1.3 2000/07/27 09:42:38 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app.3,v 1.4 2000/08/01 01:18:55 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_APP 3
.Os BIND9 9
@@ -25,20 +25,20 @@
.Nm isc_app_run ,
.Nm isc_app_shutdown ,
.Nm isc_app_reload ,
-.Nm isc_app_finish
+.Nm isc_app_finish
.Nd application management functions
.Sh SYNOPSIS
.Fd #include
-
+
.Fd #include
-
+
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
.fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
@@ -46,7 +46,7 @@
.Fd #include
.Fd #include
.Fd #include
-
+
.Ft isc_result_t
.Fo isc_app_start
.Fa void
@@ -82,10 +82,10 @@ Applications which use the BIND9 library should begin by calling
.Fn isc_app_start .
It sets up a signal handler to ignore
.Dv SIGPIPE .
-.Fn isc_app_start
+.Fn isc_app_start
blocks signals
.Dv SIGHUP ,
-.Dv SIGINT
+.Dv SIGINT
and
.Dv SIGTERM
This ensures that all subsequent threads will have these signals blocked by
@@ -96,15 +96,15 @@ arrange its own signal handlers for them.
then initialises a queue of runnable tasks for the application.
Calls to
.Fn isc_app_start
-should be made before any other BIND9 library call, ideally as
+should be made before any other BIND9 library call, ideally as
close to the beginning of the application as possible.
-.Pp
+.Pp
.Fn isc_app_onrun
arranges for delivery of an event to an application when it is executing.
This function should only be invoked after
.Fn isc_app_start
has been called.
-It creates an
+It creates an
.Ft isc_event_t
structure from memory context
.Fa mctx
@@ -113,7 +113,7 @@ for task
.Fa arg
is a pointer to some structure that can be referenced by the event
handler
-.Fa action
+.Fa action
which is invoked when the application takes delivery of a shutdown
event
.Dv ISC_APPEVENT_SHUTDOWN .
@@ -143,7 +143,7 @@ It can only be invoked after
has been called.
.Fn isc_app_shutdown
sends a
-.Dv SIGTERM
+.Dv SIGTERM
signal to the current process.
Multiple calls to
.Fn isc_app_shutdown
@@ -152,7 +152,7 @@ Only one shutdown attempt will be carried out.
.Pp
The reload signal
.Dv SIGHUP
-is sent to the process by
+is sent to the process by
.Fn isc_app_reload .
The function returns
.Er ISC_R_SUCCESS
@@ -176,7 +176,7 @@ was called earlier in the application.
.Sh RETURN VALUES
A successful call to
.Fn handle_signal
-returns
+returns
.Er ISC_R_SUCCESS
and
.Er ISC_R_UNEXPECTED
@@ -194,7 +194,7 @@ or not.
returns
.Er ISC_R_SUCCESS
unless it was not possible to create the event structure
-.Ft isc_event_t
+.Ft isc_event_t
in which case it returns
.Er ISC_R_NOMEMORY .
.Pp
@@ -210,7 +210,7 @@ is returned by
when attempts to set or reset signal handlers fail.
.Pp
.Er ISC_R_UNEXPECTED
-is returned by
+is returned by
.Fn isc_app_shutdown
if the signal was not sent successfully.
Otherwise
diff --git a/doc/man/isc/isc_app_finish.3 b/doc/man/isc/isc_app_finish.3
index c6d6bf5379..8dfb6fec3c 100644
--- a/doc/man/isc/isc_app_finish.3
+++ b/doc/man/isc/isc_app_finish.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_finish.3,v 1.2 2000/07/27 09:42:39 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_finish.3,v 1.3 2000/08/01 01:18:56 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_app_onrun.3 b/doc/man/isc/isc_app_onrun.3
index a9103a995b..2ec0900dbb 100644
--- a/doc/man/isc/isc_app_onrun.3
+++ b/doc/man/isc/isc_app_onrun.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_onrun.3,v 1.2 2000/07/27 09:42:40 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_onrun.3,v 1.3 2000/08/01 01:18:57 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_app_reload.3 b/doc/man/isc/isc_app_reload.3
index 2f86cec99b..bf164addda 100644
--- a/doc/man/isc/isc_app_reload.3
+++ b/doc/man/isc/isc_app_reload.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_reload.3,v 1.2 2000/07/27 09:42:41 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_reload.3,v 1.3 2000/08/01 01:18:58 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_app_run.3 b/doc/man/isc/isc_app_run.3
index c4efee26d4..649c5ad26d 100644
--- a/doc/man/isc/isc_app_run.3
+++ b/doc/man/isc/isc_app_run.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_run.3,v 1.2 2000/07/27 09:42:42 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_run.3,v 1.3 2000/08/01 01:18:59 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_app_shutdown.3 b/doc/man/isc/isc_app_shutdown.3
index d8b9cd99ae..8cdf642492 100644
--- a/doc/man/isc/isc_app_shutdown.3
+++ b/doc/man/isc/isc_app_shutdown.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_shutdown.3,v 1.2 2000/07/27 09:42:43 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_shutdown.3,v 1.3 2000/08/01 01:19:01 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_app_start.3 b/doc/man/isc/isc_app_start.3
index 33b5b2534a..a2bdfddbfc 100644
--- a/doc/man/isc/isc_app_start.3
+++ b/doc/man/isc/isc_app_start.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_app_start.3,v 1.2 2000/07/27 09:42:44 tale Exp $
-.\"
+.\"
+.\" $Id: isc_app_start.3,v 1.3 2000/08/01 01:19:02 tale Exp $
+.\"
.so isc_app.3
diff --git a/doc/man/isc/isc_dir.3 b/doc/man/isc/isc_dir.3
index efc2066c1e..5f1befc0fc 100644
--- a/doc/man/isc/isc_dir.3
+++ b/doc/man/isc/isc_dir.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,31 +12,31 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir.3,v 1.2 2000/07/27 09:42:45 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir.3,v 1.3 2000/08/01 01:19:03 tale Exp $
+.\"
.Dd Jun 30, 2000
-.Dt ISC_DIR 3
+.Dt ISC_DIR 3
.Os BIND9 9
.ds vT BIND9 Programmer's Manual
.Sh NAME
.Nm isc_dir_init ,
.Nm isc_dir_open ,
.Nm isc_dir_read ,
-.Nm isc_dir_close ,
+.Nm isc_dir_close ,
.Nm isc_dir_reset ,
-.Nm isc_dir_chdir
+.Nm isc_dir_chdir
.Nd file system directory operations
.Sh SYNOPSIS
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include \*qerrno2result.h\*q
.Ft void
.Fo isc_dir_init
@@ -65,11 +65,11 @@ directories by the name server.
They are intended to isolate BIND9 from the semantics of the underlying
directory access routines provided by the operating system,
BIND9 uses an internal structure of type
-.Fa isc_dir_t
+.Fa isc_dir_t
to reference a directory.
The contents of this structure are OS-specific.
.Fn isc_dir_init
-initialises the directory structure pointed at
+initialises the directory structure pointed at
.Fa dir .
All functions taking a
.Fa dir
@@ -79,11 +79,11 @@ this parameter points at a valid
structure.
.Pp
.Fn isc_dir_open
-opens the directory named by
+opens the directory named by
.Fa dirname .
.Pp
.Fn isc_dir_read
-retrieves the next entry from the file descriptor associated with directory
+retrieves the next entry from the file descriptor associated with directory
.Fa dir .
The name of that entry and the length of its name are copied to
.Fa dir .
@@ -101,21 +101,21 @@ closes the file descriptor associated with
.Fa dir .
.Pp
.Fn isc_dir_reset
-repositions
+repositions
.Fa dir
to the start of the directory.
.Pp
The name server's current directory is changed to
.Fa dirname
by
-.Fn isc_dir_chdir .
+.Fn isc_dir_chdir .
.Pp
.Sh RETURN VALUES
Successful calls to
.Fn isc_dir_open ,
.Fn isc_dir_read ,
.Fn isc_dir_reset ,
-.Fn isc_dir_read
+.Fn isc_dir_read
and
.Fn isc_dir_chdir
return
@@ -129,18 +129,18 @@ is returned if the name of the next directory entry is too big
to fit in the
.Fa isc_dir_t
structure.
-If
+If
.Fn isc_dir_chdir
-fails,
+fails,
.Er ISC_R_INVALIDFILE
is returned if
.Fa dirname
-is not a directory, or
+is not a directory, or
.Er ISC_R_NOPERM
if access permission is denied or
.Er ISC_R_IOERROR
if an I/O error occurs.
-The WinNT version of
+The WinNT version of
.Fn isc_dir_chdir
returns
.Er ISC_R_NOTIMPLEMENTED
@@ -156,8 +156,8 @@ can be returned in the WinNT versions of
and
.Fn isc_dir_reset .
.Sh SEE ALSO
-.Xr opendir 3 ,
+.Xr opendir 3 ,
.Xr readdir 3 ,
-.Xr closedir 3 ,
+.Xr closedir 3 ,
.Xr rewinddir 3 ,
.Xr chdir 2
diff --git a/doc/man/isc/isc_dir_chdir.3 b/doc/man/isc/isc_dir_chdir.3
index 5e38718a06..53a9efd349 100644
--- a/doc/man/isc/isc_dir_chdir.3
+++ b/doc/man/isc/isc_dir_chdir.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_chdir.3,v 1.2 2000/07/27 09:42:47 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_chdir.3,v 1.3 2000/08/01 01:19:04 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_dir_close.3 b/doc/man/isc/isc_dir_close.3
index fa0a08910d..0c0ddaca4d 100644
--- a/doc/man/isc/isc_dir_close.3
+++ b/doc/man/isc/isc_dir_close.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_close.3,v 1.2 2000/07/27 09:42:48 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_close.3,v 1.3 2000/08/01 01:19:05 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_dir_init.3 b/doc/man/isc/isc_dir_init.3
index 743b59d269..c082a457de 100644
--- a/doc/man/isc/isc_dir_init.3
+++ b/doc/man/isc/isc_dir_init.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_init.3,v 1.2 2000/07/27 09:42:49 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_init.3,v 1.3 2000/08/01 01:19:06 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_dir_open.3 b/doc/man/isc/isc_dir_open.3
index 730cfa1e9d..c6e941751f 100644
--- a/doc/man/isc/isc_dir_open.3
+++ b/doc/man/isc/isc_dir_open.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_open.3,v 1.2 2000/07/27 09:42:50 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_open.3,v 1.3 2000/08/01 01:19:07 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_dir_read.3 b/doc/man/isc/isc_dir_read.3
index e7a95d0482..6351dabde4 100644
--- a/doc/man/isc/isc_dir_read.3
+++ b/doc/man/isc/isc_dir_read.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_read.3,v 1.2 2000/07/27 09:42:51 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_read.3,v 1.3 2000/08/01 01:19:09 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_dir_reset.3 b/doc/man/isc/isc_dir_reset.3
index 8a699a8a71..c937e1f6f1 100644
--- a/doc/man/isc/isc_dir_reset.3
+++ b/doc/man/isc/isc_dir_reset.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_dir_reset.3,v 1.2 2000/07/27 09:42:52 tale Exp $
-.\"
+.\"
+.\" $Id: isc_dir_reset.3,v 1.3 2000/08/01 01:19:10 tale Exp $
+.\"
.so isc_dir.3
diff --git a/doc/man/isc/isc_error.3 b/doc/man/isc/isc_error.3
index e524847a3b..1d64ad60dd 100644
--- a/doc/man/isc/isc_error.3
+++ b/doc/man/isc/isc_error.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_error.3,v 1.2 2000/07/27 09:42:53 tale Exp $
-.\"
+.\"
+.\" $Id: isc_error.3,v 1.3 2000/08/01 01:19:11 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt error 3
.Os BIND9 9
@@ -24,11 +24,11 @@
.Nd map POSIX error codes to BIND9 error codes
.Sh SYNOPSIS
.Fd #include
-
+
.Fd #include
-
+
.Fd #include
-
+
.Fd #include "errno2result.h"
.Ft isc_result_t
.Fo isc__errno2result
@@ -45,8 +45,8 @@ The function is documented here to indicate how POSIX error codes
are mapped to their ISC equivalents.
.Pp
.Sh RETURN VALUES
-When
-.Fa posixerrno
+When
+.Fa posixerrno
is set to the POSIX error codes
.Er ENOTDIR ,
.Er ELOOP ,
@@ -54,12 +54,12 @@ is set to the POSIX error codes
.Er ENAMETOOLONG ,
and
.Er EBADF ,
-.Fn isc__errno2result
+.Fn isc__errno2result
returns
.Er ISC_R_INVALIDFILE .
.Er ISC_R_FILENOTFOUND
is returned when
-.Fa posixerrno
+.Fa posixerrno
is set to
.Er ENOENT .
A retun value of
@@ -72,19 +72,19 @@ is set to
.Er EIO
.Fn isc__errno2result
returns
-.Er ISC_R_IOERROR
+.Er ISC_R_IOERROR
and if the error code is
.Er ENOMEM ,
-.Er ISC_R_NOMEMORY
+.Er ISC_R_NOMEMORY
is returned.
For all other values of
.Fa posixerrno ,
.Fn isc__errno2result
-returns
+returns
.Er ISC_R_UNEXPECTED .
.Sh SEE ALSO
.Xr errno 2 ,
-.Xr perror 3
+.Xr perror 3
.Sh BUGS
Returning
.Er ISC_R_UNEXPECTED
diff --git a/doc/man/isc/isc_file.3 b/doc/man/isc/isc_file.3
index 3502abbc1d..6d44723b93 100644
--- a/doc/man/isc/isc_file.3
+++ b/doc/man/isc/isc_file.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file.3,v 1.3 2000/07/27 09:42:54 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file.3,v 1.4 2000/08/01 01:19:12 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_FILE 3
.Os BIND9 9
@@ -32,15 +32,15 @@
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include \*qerrno2result.h\*q
.Ft isc_result_t
@@ -81,23 +81,23 @@ is a pointer to an
structure which contains the file's modification date.
.Pp
.Fn isc_file_settime
-sets the access and modification times of the file named
+sets the access and modification times of the file named
.Fa file
to the value of the timestamp supplied in
.Fa time .
.Pp
Pathnames for temporary files are created with
.Fn isc_file_mktemplate .
-It copies the pathname in
+It copies the pathname in
.Fa path
up to the last \*q/\*q character, if any, in
.Fa buf .
The 14-character string \*qtmp-XXXXXXXXXX\*q is then appended to that
buffer.
.Fa buflen
-indicates the size of buffer
+indicates the size of buffer
.Fa buf .
-Calls to
+Calls to
.Fn isc_file_mktemplate
fail if the buffer is too small to hold for the newly-created pathname.
.Pp
@@ -106,27 +106,27 @@ creates a unique file name with access permissions 0600 and opens the
file for reading and writing.
The name of the unique file is returned in
.Fa templet
-and a pointer to a pointer to a
+and a pointer to a pointer to a
.Dv stdio stream
associated with the opened file is returned in
.Fa fp .
The file name template
.Fa templet
-should be generated by calling
+should be generated by calling
.Fn isc_file_mktemplate .
This ensures the last 10 characters of the template are the letter \*qX\*q
-so that these can be overwritten by
+so that these can be overwritten by
.Fn mkstemp
to generate a unique file name.
.Pp
Files are deleted with
.Fn isc_file_remove .
-It unlinks the file named
+It unlinks the file named
.Fa filename .
.Sh RETURN VALUES
Successful calls to these functions all return
.Er ISC_R_SUCCESS .
-Apart from the exceptions listed below, failed calls return
+Apart from the exceptions listed below, failed calls return
a BIND9 error code by mapping the corresponding POSIX error code using\p
.Fn isc__errno2result .
.Fn file_stats ,
diff --git a/doc/man/isc/isc_file_getmodtime.3 b/doc/man/isc/isc_file_getmodtime.3
index a695b8f63e..132660df69 100644
--- a/doc/man/isc/isc_file_getmodtime.3
+++ b/doc/man/isc/isc_file_getmodtime.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file_getmodtime.3,v 1.2 2000/07/27 09:42:55 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file_getmodtime.3,v 1.3 2000/08/01 01:19:14 tale Exp $
+.\"
.so isc_file.3
diff --git a/doc/man/isc/isc_file_mktemplate.3 b/doc/man/isc/isc_file_mktemplate.3
index 1fd96a1fc8..296b2a51f7 100644
--- a/doc/man/isc/isc_file_mktemplate.3
+++ b/doc/man/isc/isc_file_mktemplate.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file_mktemplate.3,v 1.2 2000/07/27 09:42:56 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file_mktemplate.3,v 1.3 2000/08/01 01:19:15 tale Exp $
+.\"
.so isc_file.3
diff --git a/doc/man/isc/isc_file_openunique.3 b/doc/man/isc/isc_file_openunique.3
index 8037bbb46b..2333656e6c 100644
--- a/doc/man/isc/isc_file_openunique.3
+++ b/doc/man/isc/isc_file_openunique.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file_openunique.3,v 1.2 2000/07/27 09:42:58 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file_openunique.3,v 1.3 2000/08/01 01:19:16 tale Exp $
+.\"
.so isc_file.3
diff --git a/doc/man/isc/isc_file_remove.3 b/doc/man/isc/isc_file_remove.3
index abe3359080..5da1566397 100644
--- a/doc/man/isc/isc_file_remove.3
+++ b/doc/man/isc/isc_file_remove.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file_remove.3,v 1.2 2000/07/27 09:42:59 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file_remove.3,v 1.3 2000/08/01 01:19:17 tale Exp $
+.\"
.so isc_file.3
diff --git a/doc/man/isc/isc_file_settime.3 b/doc/man/isc/isc_file_settime.3
index 11c01372bb..a29f8b75ab 100644
--- a/doc/man/isc/isc_file_settime.3
+++ b/doc/man/isc/isc_file_settime.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_file_settime.3,v 1.2 2000/07/27 09:43:00 tale Exp $
-.\"
+.\"
+.\" $Id: isc_file_settime.3,v 1.3 2000/08/01 01:19:18 tale Exp $
+.\"
.so isc_file.3
diff --git a/doc/man/isc/isc_interfaceiter_create.3 b/doc/man/isc/isc_interfaceiter_create.3
index 431c089bcc..fc32f9c486 100644
--- a/doc/man/isc/isc_interfaceiter_create.3
+++ b/doc/man/isc/isc_interfaceiter_create.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interfaceiter_create.3,v 1.2 2000/07/27 09:43:01 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interfaceiter_create.3,v 1.3 2000/08/01 01:19:19 tale Exp $
+.\"
.so isc_netif.3
diff --git a/doc/man/isc/isc_interfaceiter_current.3 b/doc/man/isc/isc_interfaceiter_current.3
index de395cab9c..f75fc247fa 100644
--- a/doc/man/isc/isc_interfaceiter_current.3
+++ b/doc/man/isc/isc_interfaceiter_current.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interfaceiter_current.3,v 1.2 2000/07/27 09:43:02 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interfaceiter_current.3,v 1.3 2000/08/01 01:19:20 tale Exp $
+.\"
.so isc_netif.3
diff --git a/doc/man/isc/isc_interfaceiter_destroy.3 b/doc/man/isc/isc_interfaceiter_destroy.3
index 8370398616..c415dee2d5 100644
--- a/doc/man/isc/isc_interfaceiter_destroy.3
+++ b/doc/man/isc/isc_interfaceiter_destroy.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interfaceiter_destroy.3,v 1.2 2000/07/27 09:43:03 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interfaceiter_destroy.3,v 1.3 2000/08/01 01:19:22 tale Exp $
+.\"
.so isc_netif.3
diff --git a/doc/man/isc/isc_interfaceiter_first.3 b/doc/man/isc/isc_interfaceiter_first.3
index e83a85ca5a..c6912c0699 100644
--- a/doc/man/isc/isc_interfaceiter_first.3
+++ b/doc/man/isc/isc_interfaceiter_first.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interfaceiter_first.3,v 1.2 2000/07/27 09:43:04 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interfaceiter_first.3,v 1.3 2000/08/01 01:19:23 tale Exp $
+.\"
.so isc_netif.3
diff --git a/doc/man/isc/isc_interfaceiter_next.3 b/doc/man/isc/isc_interfaceiter_next.3
index 2dddb98849..07d29143f1 100644
--- a/doc/man/isc/isc_interfaceiter_next.3
+++ b/doc/man/isc/isc_interfaceiter_next.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interfaceiter_next.3,v 1.2 2000/07/27 09:43:05 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interfaceiter_next.3,v 1.3 2000/08/01 01:19:24 tale Exp $
+.\"
.so isc_netif.3
diff --git a/doc/man/isc/isc_interval_iszero.3 b/doc/man/isc/isc_interval_iszero.3
index 819edee76f..5cf65c7ba8 100644
--- a/doc/man/isc/isc_interval_iszero.3
+++ b/doc/man/isc/isc_interval_iszero.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_interval_iszero.3,v 1.2 2000/07/27 09:43:06 tale Exp $
-.\"
+.\"
+.\" $Id: isc_interval_iszero.3,v 1.3 2000/08/01 01:19:25 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_ipproto.3 b/doc/man/isc/isc_ipproto.3
index 5ee0fec049..a8caf83543 100644
--- a/doc/man/isc/isc_ipproto.3
+++ b/doc/man/isc/isc_ipproto.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_ipproto.3,v 1.3 2000/07/27 09:43:07 tale Exp $
-.\"
+.\"
+.\" $Id: isc_ipproto.3,v 1.4 2000/08/01 01:19:26 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_IPPROTO 3
.Os BIND9 9
@@ -25,14 +25,14 @@
.Nd protocol probe functions
.Sh SYNOPSIS
.Fd #include
-
+
.Fd #include
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
-.Fd #include
+.Fd #include
.Fo isc_net_probeipv4
.Fa void
@@ -49,12 +49,12 @@ check that the operating system support the IPv4 and IPv6 protocols
respectively.
.Sh RETURN VALUES
.Fn isc_net_probeipv4
-returns
+returns
.Er ISC_R_SUCCESS
if the IPv4 protocol is supported by the kernel and
.Fn isc_net_probeipv6
returns
-.Er ISC_R_SUCCESS
+.Er ISC_R_SUCCESS
if the operating system supports IPv6.
.Fn try_proto
returns
diff --git a/doc/man/isc/isc_net_probeipv4.3 b/doc/man/isc/isc_net_probeipv4.3
index ca3c376881..19417e00d5 100644
--- a/doc/man/isc/isc_net_probeipv4.3
+++ b/doc/man/isc/isc_net_probeipv4.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_net_probeipv4.3,v 1.2 2000/07/27 09:43:08 tale Exp $
-.\"
+.\"
+.\" $Id: isc_net_probeipv4.3,v 1.3 2000/08/01 01:19:28 tale Exp $
+.\"
.so isc_ipproto.3
diff --git a/doc/man/isc/isc_net_probeipv6.3 b/doc/man/isc/isc_net_probeipv6.3
index 1aed85155a..28da28bebe 100644
--- a/doc/man/isc/isc_net_probeipv6.3
+++ b/doc/man/isc/isc_net_probeipv6.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_net_probeipv6.3,v 1.2 2000/07/27 09:43:09 tale Exp $
-.\"
+.\"
+.\" $Id: isc_net_probeipv6.3,v 1.3 2000/08/01 01:19:29 tale Exp $
+.\"
.so isc_ipproto.3
diff --git a/doc/man/isc/isc_netif.3 b/doc/man/isc/isc_netif.3
index 8f8c50fc75..e577f05d97 100644
--- a/doc/man/isc/isc_netif.3
+++ b/doc/man/isc/isc_netif.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_netif.3,v 1.2 2000/07/27 09:43:11 tale Exp $
-.\"
+.\"
+.\" $Id: isc_netif.3,v 1.3 2000/08/01 01:19:30 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_NETIF 3
.Os BIND9 9
@@ -32,18 +32,18 @@
.Nd network interface management
.Sh SYNOPSIS
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #ifdef HAVE_SYS_SOCKIO_H
.Fd #include /* Required for ifiter_ioctl.c. */
.Fd #endif
-
+
.Fd #include
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
@@ -51,7 +51,7 @@
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include /* Must follow . */
.Ft isc_result_t
@@ -69,7 +69,7 @@
.\" .Fo internal_destroy
.\" .Fc
.\" .Ft static void
-.\" .Fo get_addr
+.\" .Fo get_addr
.\" .Fa "unsigned int family"
.\" .Fa "isc_netaddr_t *dst"
.\" .Fa "struct sockaddr *src"
@@ -94,14 +94,14 @@
Details of the system's network interfaces can be retrieved with
.Fn isc_interfaceiter_create .
It uses
-.Xr sysctl 3
+.Xr sysctl 3
or an
.Dv SIOCGLIFCONF
.Xr ioctl 2
to get the information from the kernel.
Configuration details of the system's network interfaces - IP addresses, network
mask, status, MAC address, etc. - is stored in a buffer which is
-accessed through
+accessed through
.Fa iterp .
Memory is allocated from the memory context
.Fa mctx
@@ -126,7 +126,7 @@ Information from the
.Dv isc_interfaceiter_t
can be accessed using
.Fn isc_interfaceiter_current ,
-.Fn isc_interfaceiter_first
+.Fn isc_interfaceiter_first
and
.Fn isc_interfaceiter_next .
.\" which use the internal functions
@@ -136,7 +136,7 @@ and
.\" .Pp
.\" .Fn internal_current
.\" gets information for the current network interface from
-.\" .Fa iter .
+.\" .Fa iter .
.\" .Fn internal_current
.\" sets
.\" .Dv iter->current
@@ -159,7 +159,7 @@ and
.\" .Xr isc_interfaceiter_destroy 3 .
.\" .Pp
.\" .Fn get_addr
-.\" extracts the network address part of the
+.\" extracts the network address part of the
.\" .Dv sockaddr
.\" struct referenced by
.\" .Fa src
@@ -168,7 +168,7 @@ and
.\" .Fa family
.\" indicates the address family \*-
.\" .Dv AF_INET
-.\" or
+.\" or
.\" .Dv AF_INET6 .
.\" The address family is given explicitly because the network address might
.\" contain a netmask obtained by an
@@ -178,7 +178,7 @@ and
.\" .Dv src->sa_family .
.Pp
.Fn isc_interfaceiter_current
-copies the configuration details of
+copies the configuration details of
.Fa iter 's
current network interface to
.Fa ifdata .
@@ -190,7 +190,7 @@ which has an address in a supported address family: i.e. an IPv4 or
IPv6 address.
.Fn isc_interfaceiter_next
find the next network interface in the list referenced by
-.Fa iter
+.Fa iter
that has an IPv4 or IPv6 address.
.Pp
The
@@ -199,7 +199,7 @@ structure referenced by
.Fa iterp
is discarded by calling
.Fn isc_interfaceiter_destroy .
-Any memory associated with
+Any memory associated with
.Fa iterp is freed.
.Sh RETURN VALUES
Successful calls to
@@ -236,9 +236,9 @@ if it was not possible to obtain a list of network interfaces.
.Fn isc_interfaceiter_current
always returns
.Er ISC_R_SUCCESS
-if
+if
.Fa iter
-points to a valid
+points to a valid
.Dv isc_interfaceiter_t
structure.
.Pp
diff --git a/doc/man/isc/isc_socket.3 b/doc/man/isc/isc_socket.3
index 6a268c94f6..6dc986fc02 100644
--- a/doc/man/isc/isc_socket.3
+++ b/doc/man/isc/isc_socket.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket.3,v 1.2 2000/07/27 09:43:12 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket.3,v 1.3 2000/08/01 01:19:31 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_SOCKET 3
.Os BIND9 9
@@ -45,20 +45,20 @@
.Nd name server network I/O
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Fd #include
.Fd #include
.Fd #include
.Fd #include
.Fd #include
-.Fd
+.Fd
.Fd #include
.Fd #include
.Fd #include
.Fd #include
.Fd #include
.Fd #include
-.Fd
+.Fd
.Fd #include
.Fd #include
.Fd #include
@@ -72,7 +72,7 @@
.Fd #include
.Fd #include
.Fd #include
-.Fd
+.Fd
.Ft isc_result_t
.Fo isc_socket_create
.Fa "isc_socketmgr_t *manager"
@@ -85,7 +85,7 @@
.Fa "isc_socket_t *sock"
.Fa "isc_socket_t **socketp"
.Fc
-.Ft void
+.Ft void
.Fo isc_socket_detach
.Fa "isc_socket_t **socketp"
.Fc
@@ -234,18 +234,18 @@ struct isc_socket {
isc_socketmgr_t *manager;
isc_mutex_t lock;
isc_sockettype_t type;
-
+
/* Locked by socket lock. */
unsigned int references;
int fd;
isc_result_t recv_result;
isc_result_t send_result;
-
+
ISC_LIST(isc_socketevent_t) send_list;
ISC_LIST(isc_socketevent_t) recv_list;
ISC_LIST(isc_socket_newconnev_t) accept_list;
isc_socket_connev_t *connect_ev;
-
+
/*
* Internal events. Posted when a descriptor is readable or
* writable. These are statically allocated and never freed.
@@ -253,9 +253,9 @@ struct isc_socket {
*/
intev_t readable_ev;
intev_t writable_ev;
-
+
isc_sockaddr_t address; /* remote address */
-
+
unsigned int pending_recv : 1,
pending_send : 1,
pending_accept : 1,
@@ -263,7 +263,7 @@ struct isc_socket {
connected : 1,
connecting : 1, /* connect pending */
bound : 1; /* bound to local addr */
-
+
#ifdef ISC_NET_RECVOVERFLOW
unsigned char overflow; /* used for MSG_TRUNC fake */
#endif
@@ -298,7 +298,7 @@ typedef struct isc_socketmgr isc_socketmgr_t;
.Pp
.Fn isc_socket_create
creates a new socket of protocol family
-.Fa pf
+.Fa pf
which is either
.Dv PF_INET
or
@@ -359,7 +359,7 @@ by
If the caller uses this manager to hold any socket references, it will
deadlock itself.
Therefore those sockets should be detached by calling
-.Xr isc_socket_detach 3
+.Xr isc_socket_detach 3
before invoking
.Fn isc_socketmgr_destroy .
.Pp
@@ -413,7 +413,7 @@ or any data they refer to
should not be modified by the caller until the completion event has
been received.
When a successful call to
-.Fn isc_socket_recvv
+.Fn isc_socket_recvv
completes,
.Fa *buflist
will be empty.
@@ -450,7 +450,7 @@ The functions
.Fn isc_socket_send ,
.Fn isc_socket_sendto ,
.Fn isc_socket_sendv
-and
+and
.Fn isc_socket_sendtov
are used to send data to the peer for socket
.Fa sock .
@@ -476,7 +476,7 @@ when the data have been sent.
If
.Fa action
is NULL, no completion event is posted.
-.Pp
+.Pp
For
.Fn isc_socket_sendto
and
@@ -578,7 +578,7 @@ is zero, a reasonable system default is used, typically
.Dv SOMAXCONN .
The value of
.Fa backlog
-may be ignored on other operating systems.
+may be ignored on other operating systems.
.Pp
.Fn isc_socket_accept
is used to queue an accept event when an incoming connection request
@@ -636,7 +636,7 @@ gets the name of socket
and copies it to
.Fa addressp .
Both functions have assertion checks to ensure that
-.Fa sock
+.Fa sock
is a valid socket
and that
.Fa *addressp
@@ -648,14 +648,14 @@ Socket events that hav been queued for some task can be cancelled using
and
.Fa task
are a valid socket and task pointers respectively.
-.Fa how
+.Fa how
is a bitmask of the events that are to be cancelled.
Possible values for
.Fa how
are any combination of
.Dv ISC_SOCKCANCEL_RECV ,
.Dv ISC_SOCKCANCEL_SEND ,
-.Dv ISC_SOCKCANCEL_ACCEPT
+.Dv ISC_SOCKCANCEL_ACCEPT
and
.Dv ISC_SOCKCANCEL_CONNECT .
When the events are cancelled,
@@ -686,7 +686,7 @@ are a valid socket, task and action respectively.
.Pp
When the event handler returns, its
.Dv result
-member can sometimes contain useful information.
+member can sometimes contain useful information.
Depending on the marker type, the event's
.Dv result member
will contain the same error that the last
@@ -751,7 +751,7 @@ socket event handler.
The handler that is invoked for
the
.Dv ISC_SOCKEVENT_RECVDONE
-when the socket read
+when the socket read
completes will return
.Er ISC_R_SUCCESS
on success or
@@ -761,14 +761,14 @@ if it encounters an error.
The functions
.Fn isc_socket_sendto ,
.Fn isc_socket_sendtov ,
-.Fn isc_socket_send
+.Fn isc_socket_send
and
-.Fn isc_socket_sendv
+.Fn isc_socket_sendv
all return
.Er ISC_R_SUCCESS
on success.
If these four functions are unable to allocate memory when setting up
-an event handler, they return
+an event handler, they return
.Er ISC_R_NOMEMORY .
The event handler that is invoked when a
.Dv ISC_SOCKEVENT_SENDDONE
@@ -791,7 +791,7 @@ does no have sufficient permission to access it.
.Er ISC_R_ADDRNOTAVAIL
is returned if the specified address is not available.
.Fn isc_socket_bind
-returns
+returns
.Er ISC_R_ADDRINUSE
if the address is already in use and
.Er ISC_R_BOUND
@@ -799,12 +799,12 @@ if
.Fa sock had already been bound to an address.
.Er ISC_R_UNEXPECTED
is returned for any other error conditions that are reported by
-.Xr bind 2
+.Xr bind 2
and an error message printed on
.Dv stderr .
.Pp
.Fn isc_socket_listen
-returns
+returns
.Er ISC_R_SUCCESS
on success.
.Er ISC_R_UNEXPECTED
@@ -837,10 +837,10 @@ The event handler returns
.Er ISC_R_SUCCESS
when the connection attempt completes successfully.
It returns
-.Er ISC_R_TIMEDOUT
+.Er ISC_R_TIMEDOUT
when the connection attempt times out or
.Er ISC_R_CONNREFUSED
-if the peer
+if the peer
.Fa addr
refused the connection.
An error of
diff --git a/doc/man/isc/isc_socket_accept.3 b/doc/man/isc/isc_socket_accept.3
index 9a366280a6..3872da33d0 100644
--- a/doc/man/isc/isc_socket_accept.3
+++ b/doc/man/isc/isc_socket_accept.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_accept.3,v 1.2 2000/07/27 09:43:13 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_accept.3,v 1.3 2000/08/01 01:19:33 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_attach.3 b/doc/man/isc/isc_socket_attach.3
index ed5f742803..8ed92ab640 100644
--- a/doc/man/isc/isc_socket_attach.3
+++ b/doc/man/isc/isc_socket_attach.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_attach.3,v 1.2 2000/07/27 09:43:14 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_attach.3,v 1.3 2000/08/01 01:19:34 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_bind.3 b/doc/man/isc/isc_socket_bind.3
index 306c2b27d4..440df7a0e8 100644
--- a/doc/man/isc/isc_socket_bind.3
+++ b/doc/man/isc/isc_socket_bind.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_bind.3,v 1.2 2000/07/27 09:43:15 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_bind.3,v 1.3 2000/08/01 01:19:35 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_cancel.3 b/doc/man/isc/isc_socket_cancel.3
index 3c53b6659f..4bb99e12e9 100644
--- a/doc/man/isc/isc_socket_cancel.3
+++ b/doc/man/isc/isc_socket_cancel.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_cancel.3,v 1.2 2000/07/27 09:43:16 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_cancel.3,v 1.3 2000/08/01 01:19:36 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_connect.3 b/doc/man/isc/isc_socket_connect.3
index 493c483e03..5f190dbca4 100644
--- a/doc/man/isc/isc_socket_connect.3
+++ b/doc/man/isc/isc_socket_connect.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_connect.3,v 1.2 2000/07/27 09:43:17 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_connect.3,v 1.3 2000/08/01 01:19:37 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_create.3 b/doc/man/isc/isc_socket_create.3
index ca9cce469f..c4cfa18ede 100644
--- a/doc/man/isc/isc_socket_create.3
+++ b/doc/man/isc/isc_socket_create.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_create.3,v 1.2 2000/07/27 09:43:18 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_create.3,v 1.3 2000/08/01 01:19:38 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_detach.3 b/doc/man/isc/isc_socket_detach.3
index c197cbce3b..6da84e5b23 100644
--- a/doc/man/isc/isc_socket_detach.3
+++ b/doc/man/isc/isc_socket_detach.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_detach.3,v 1.2 2000/07/27 09:43:19 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_detach.3,v 1.3 2000/08/01 01:19:40 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_getpeername.3 b/doc/man/isc/isc_socket_getpeername.3
index 028d737e83..f5bfd8662b 100644
--- a/doc/man/isc/isc_socket_getpeername.3
+++ b/doc/man/isc/isc_socket_getpeername.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_getpeername.3,v 1.2 2000/07/27 09:43:20 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_getpeername.3,v 1.3 2000/08/01 01:19:41 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_getsockname.3 b/doc/man/isc/isc_socket_getsockname.3
index 474e7032a5..d263cfcd2e 100644
--- a/doc/man/isc/isc_socket_getsockname.3
+++ b/doc/man/isc/isc_socket_getsockname.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_getsockname.3,v 1.2 2000/07/27 09:43:21 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_getsockname.3,v 1.3 2000/08/01 01:19:42 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_gettype.3 b/doc/man/isc/isc_socket_gettype.3
index cb30dd9055..7f0cbfd973 100644
--- a/doc/man/isc/isc_socket_gettype.3
+++ b/doc/man/isc/isc_socket_gettype.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_gettype.3,v 1.2 2000/07/27 09:43:23 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_gettype.3,v 1.3 2000/08/01 01:19:43 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_isbound.3 b/doc/man/isc/isc_socket_isbound.3
index 6813ae2963..bd73fb111a 100644
--- a/doc/man/isc/isc_socket_isbound.3
+++ b/doc/man/isc/isc_socket_isbound.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_isbound.3,v 1.2 2000/07/27 09:43:24 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_isbound.3,v 1.3 2000/08/01 01:19:44 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_listen.3 b/doc/man/isc/isc_socket_listen.3
index 1189ab70d7..eff2a3f479 100644
--- a/doc/man/isc/isc_socket_listen.3
+++ b/doc/man/isc/isc_socket_listen.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_listen.3,v 1.2 2000/07/27 09:43:25 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_listen.3,v 1.3 2000/08/01 01:19:45 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_recv.3 b/doc/man/isc/isc_socket_recv.3
index 0e0e48ed35..6e786af3ea 100644
--- a/doc/man/isc/isc_socket_recv.3
+++ b/doc/man/isc/isc_socket_recv.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_recv.3,v 1.2 2000/07/27 09:43:26 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_recv.3,v 1.3 2000/08/01 01:19:46 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_recvmark.3 b/doc/man/isc/isc_socket_recvmark.3
index 09224cb712..dd8f7eb386 100644
--- a/doc/man/isc/isc_socket_recvmark.3
+++ b/doc/man/isc/isc_socket_recvmark.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_recvmark.3,v 1.2 2000/07/27 09:43:27 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_recvmark.3,v 1.3 2000/08/01 01:19:47 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_recvv.3 b/doc/man/isc/isc_socket_recvv.3
index d9a267e852..609650efb2 100644
--- a/doc/man/isc/isc_socket_recvv.3
+++ b/doc/man/isc/isc_socket_recvv.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_recvv.3,v 1.2 2000/07/27 09:43:28 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_recvv.3,v 1.3 2000/08/01 01:19:48 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_send.3 b/doc/man/isc/isc_socket_send.3
index 064533f7ed..7119799cfe 100644
--- a/doc/man/isc/isc_socket_send.3
+++ b/doc/man/isc/isc_socket_send.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_send.3,v 1.2 2000/07/27 09:43:29 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_send.3,v 1.3 2000/08/01 01:19:50 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_sendmark.3 b/doc/man/isc/isc_socket_sendmark.3
index d0fb12a241..9f9db404a6 100644
--- a/doc/man/isc/isc_socket_sendmark.3
+++ b/doc/man/isc/isc_socket_sendmark.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_sendmark.3,v 1.2 2000/07/27 09:43:30 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_sendmark.3,v 1.3 2000/08/01 01:19:51 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_sendto.3 b/doc/man/isc/isc_socket_sendto.3
index 3a1cd5cfa6..f2cf071240 100644
--- a/doc/man/isc/isc_socket_sendto.3
+++ b/doc/man/isc/isc_socket_sendto.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_sendto.3,v 1.2 2000/07/27 09:43:31 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_sendto.3,v 1.3 2000/08/01 01:19:52 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_sendtov.3 b/doc/man/isc/isc_socket_sendtov.3
index e0f36bede8..ebcd9f31ee 100644
--- a/doc/man/isc/isc_socket_sendtov.3
+++ b/doc/man/isc/isc_socket_sendtov.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_sendtov.3,v 1.2 2000/07/27 09:43:32 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_sendtov.3,v 1.3 2000/08/01 01:19:53 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socket_sendv.3 b/doc/man/isc/isc_socket_sendv.3
index e239351cd3..dd5e728bb4 100644
--- a/doc/man/isc/isc_socket_sendv.3
+++ b/doc/man/isc/isc_socket_sendv.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socket_sendv.3,v 1.2 2000/07/27 09:43:33 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socket_sendv.3,v 1.3 2000/08/01 01:19:54 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socketmgr_create.3 b/doc/man/isc/isc_socketmgr_create.3
index ea5767a169..3aa300fc51 100644
--- a/doc/man/isc/isc_socketmgr_create.3
+++ b/doc/man/isc/isc_socketmgr_create.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socketmgr_create.3,v 1.2 2000/07/27 09:43:34 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socketmgr_create.3,v 1.3 2000/08/01 01:19:55 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_socketmgr_destroy.3 b/doc/man/isc/isc_socketmgr_destroy.3
index a60ee3d189..a0f4f65a94 100644
--- a/doc/man/isc/isc_socketmgr_destroy.3
+++ b/doc/man/isc/isc_socketmgr_destroy.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_socketmgr_destroy.3,v 1.2 2000/07/27 09:43:35 tale Exp $
-.\"
+.\"
+.\" $Id: isc_socketmgr_destroy.3,v 1.3 2000/08/01 01:19:57 tale Exp $
+.\"
.so isc_socket.3
diff --git a/doc/man/isc/isc_stdio.3 b/doc/man/isc/isc_stdio.3
index 5518e65d10..0638ba3a22 100644
--- a/doc/man/isc/isc_stdio.3
+++ b/doc/man/isc/isc_stdio.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio.3,v 1.2 2000/07/27 09:43:37 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio.3,v 1.3 2000/08/01 01:19:58 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_STDIO 3
.Os BIND9 9
@@ -115,13 +115,13 @@ is the
.Dv FILE
pointer and
.Fa offset
-and
+and
.Fa whence
have the usual meanings.
The new position is found by adding
.Fa offset
bytes to the position specified by
-.Fa whence
+.Fa whence
which is set to the values
.Dv SEEK_SET ,
.Dv SEEK_CUR ,
@@ -147,7 +147,7 @@ bytes long, from the stream pointed to by
The objects are stored at the location given by
.Fa ptr .
.Fa isc_stdio_write
-writes
+writes
.Fa nmemb
objects, each
.Fa size
diff --git a/doc/man/isc/isc_stdio_close.3 b/doc/man/isc/isc_stdio_close.3
index 0efa43f6f4..abea711735 100644
--- a/doc/man/isc/isc_stdio_close.3
+++ b/doc/man/isc/isc_stdio_close.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_close.3,v 1.2 2000/07/27 09:43:38 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_close.3,v 1.3 2000/08/01 01:19:59 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_flush.3 b/doc/man/isc/isc_stdio_flush.3
index 5b29c685ce..ab642d4076 100644
--- a/doc/man/isc/isc_stdio_flush.3
+++ b/doc/man/isc/isc_stdio_flush.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_flush.3,v 1.2 2000/07/27 09:43:39 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_flush.3,v 1.3 2000/08/01 01:20:00 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_open.3 b/doc/man/isc/isc_stdio_open.3
index b9be1da8af..bc49e64995 100644
--- a/doc/man/isc/isc_stdio_open.3
+++ b/doc/man/isc/isc_stdio_open.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_open.3,v 1.2 2000/07/27 09:43:40 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_open.3,v 1.3 2000/08/01 01:20:01 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_read.3 b/doc/man/isc/isc_stdio_read.3
index 819a74a15c..6e2ada0a25 100644
--- a/doc/man/isc/isc_stdio_read.3
+++ b/doc/man/isc/isc_stdio_read.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_read.3,v 1.2 2000/07/27 09:43:41 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_read.3,v 1.3 2000/08/01 01:20:03 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_seek.3 b/doc/man/isc/isc_stdio_seek.3
index d4de781294..7032272b2a 100644
--- a/doc/man/isc/isc_stdio_seek.3
+++ b/doc/man/isc/isc_stdio_seek.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_seek.3,v 1.2 2000/07/27 09:43:42 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_seek.3,v 1.3 2000/08/01 01:20:04 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_sync.3 b/doc/man/isc/isc_stdio_sync.3
index 38a83ae01f..bbc5518437 100644
--- a/doc/man/isc/isc_stdio_sync.3
+++ b/doc/man/isc/isc_stdio_sync.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_sync.3,v 1.2 2000/07/27 09:43:43 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_sync.3,v 1.3 2000/08/01 01:20:05 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdio_write.3 b/doc/man/isc/isc_stdio_write.3
index 727561e46a..508a6822b7 100644
--- a/doc/man/isc/isc_stdio_write.3
+++ b/doc/man/isc/isc_stdio_write.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdio_write.3,v 1.2 2000/07/27 09:43:44 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdio_write.3,v 1.3 2000/08/01 01:20:06 tale Exp $
+.\"
.so isc_stdio.3
diff --git a/doc/man/isc/isc_stdtime.3 b/doc/man/isc/isc_stdtime.3
index 6c006faa1b..37d54da214 100644
--- a/doc/man/isc/isc_stdtime.3
+++ b/doc/man/isc/isc_stdtime.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdtime.3,v 1.2 2000/07/27 09:43:45 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdtime.3,v 1.3 2000/08/01 01:20:07 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_STDTIME 3
.Os BIND9 9
@@ -26,9 +26,9 @@
.Fd #include
.Fd #include
-
+
.Fd #include
-.Fd #include
+.Fd #include
.Ft void
.Fo isc_stdtime_get
@@ -39,7 +39,7 @@
sets
.Fa t
to the number of seconds since the UNIX epoch, 00:00:00 UTC, January
-1, 1970.
+1, 1970.
.Sh SEE ALSO
.Xr gettimeofday 2 ,
.Xr isc_time_now 3 .
@@ -52,7 +52,7 @@ the UNIX epoch will overflow a 32-bit signed integer.
This may cause unpredictable behaviour on systems which treat these
timestamps as 32-bit signed quantities.
.Dv isc_stdtime_t
-is defined as a 32-bit unsigned quantity, which means
+is defined as a 32-bit unsigned quantity, which means
.Fn isc_stdtime_get
should be safe until some time in 2106.
Applications that
diff --git a/doc/man/isc/isc_stdtime_get.3 b/doc/man/isc/isc_stdtime_get.3
index a16bb6e3f4..6ee737e652 100644
--- a/doc/man/isc/isc_stdtime_get.3
+++ b/doc/man/isc/isc_stdtime_get.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_stdtime_get.3,v 1.2 2000/07/27 09:43:46 tale Exp $
-.\"
+.\"
+.\" $Id: isc_stdtime_get.3,v 1.3 2000/08/01 01:20:08 tale Exp $
+.\"
.so isc_stdtime.3
diff --git a/doc/man/isc/isc_time.3 b/doc/man/isc/isc_time.3
index ac427789ab..3ba9ca71da 100644
--- a/doc/man/isc/isc_time.3
+++ b/doc/man/isc/isc_time.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time.3,v 1.4 2000/07/27 09:43:47 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time.3,v 1.5 2000/08/01 01:20:09 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt ISC_TIME 3
.Os BIND9 9
@@ -32,17 +32,17 @@
.Nm isc_time_microdiff ,
.Nm isc_time_seconds ,
.Nm isc_time_secondsastimet ,
-.Nm isc_time_nanoseconds
+.Nm isc_time_nanoseconds
.Nd time-related operations
.Sh SYNOPSIS
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
-
+
.Fd #include
-
+
.Fd #include
.Fd #include
.Fd #include
@@ -133,7 +133,7 @@ struct isc_time {
unsigned int nanoseconds;
};
-typedef struct isc_time isc_time_t;
+typedef struct isc_time isc_time_t;
.Ed
The contents of these structures are private
and MUST NOT be accessed by callers directly.
@@ -165,12 +165,12 @@ if
.Fa *i
is the zero interval.
This condition should hold when the desired amount of time until an
-event associated with interval
+event associated with interval
.Fa *i
has elapsed.
.Pp
.Fn isc_time_settoepoch
-sets
+sets
.Fa *t
to the time of the epoch.
On
@@ -195,7 +195,7 @@ On a successful call to this function, the structure pointed at by
is set to the number of seconds and nanoseconds since the epoch.
.Pp
.Fn isc_time_nowplusinterval
-sets
+sets
.Fa *t
to the current time plus the interval specified in
.Fa *i .
@@ -206,7 +206,7 @@ compares the times referenced by
and
.Fa *t2 .
It returns 0 if the two times are equal.
-A value of 1 is returned when
+A value of 1 is returned when
.Fa *t1
is greater than
.Fa *t2 .
@@ -288,7 +288,7 @@ is returned when the functions are successful.
.Pp
Calls to
.Fn isc_time_add ,
-.Fn isc_time_subtract
+.Fn isc_time_subtract
and
.Fn isc_time_secondsastimet
normally return
@@ -301,7 +301,7 @@ if the addition of the time values represented by
and
.Fa i
result in a number of seconds that are too big to fit in a
-.Dv "unsigned int"
+.Dv "unsigned int"
quantity.
If the time value given by
.Fa i
diff --git a/doc/man/isc/isc_time_add.3 b/doc/man/isc/isc_time_add.3
index b021921a57..18b7c44171 100644
--- a/doc/man/isc/isc_time_add.3
+++ b/doc/man/isc/isc_time_add.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_add.3,v 1.2 2000/07/27 09:43:49 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_add.3,v 1.3 2000/08/01 01:20:10 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_compare.3 b/doc/man/isc/isc_time_compare.3
index 27f77cdfa2..f63a76c3e1 100644
--- a/doc/man/isc/isc_time_compare.3
+++ b/doc/man/isc/isc_time_compare.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_compare.3,v 1.2 2000/07/27 09:43:50 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_compare.3,v 1.3 2000/08/01 01:20:11 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_isepoch.3 b/doc/man/isc/isc_time_isepoch.3
index 720f9f46f9..40bed93e89 100644
--- a/doc/man/isc/isc_time_isepoch.3
+++ b/doc/man/isc/isc_time_isepoch.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_isepoch.3,v 1.2 2000/07/27 09:43:51 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_isepoch.3,v 1.3 2000/08/01 01:20:12 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_microdiff.3 b/doc/man/isc/isc_time_microdiff.3
index edc765810b..e104d37c3d 100644
--- a/doc/man/isc/isc_time_microdiff.3
+++ b/doc/man/isc/isc_time_microdiff.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_microdiff.3,v 1.2 2000/07/27 09:43:52 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_microdiff.3,v 1.3 2000/08/01 01:20:14 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_nanoseconds.3 b/doc/man/isc/isc_time_nanoseconds.3
index ca49ab645d..644b3e8df1 100644
--- a/doc/man/isc/isc_time_nanoseconds.3
+++ b/doc/man/isc/isc_time_nanoseconds.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_nanoseconds.3,v 1.2 2000/07/27 09:43:53 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_nanoseconds.3,v 1.3 2000/08/01 01:20:15 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_now.3 b/doc/man/isc/isc_time_now.3
index 2a11a3553a..f0b511b377 100644
--- a/doc/man/isc/isc_time_now.3
+++ b/doc/man/isc/isc_time_now.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_now.3,v 1.2 2000/07/27 09:43:54 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_now.3,v 1.3 2000/08/01 01:20:16 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_nowplusinterval.3 b/doc/man/isc/isc_time_nowplusinterval.3
index 2a04609fab..871d978ee3 100644
--- a/doc/man/isc/isc_time_nowplusinterval.3
+++ b/doc/man/isc/isc_time_nowplusinterval.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_nowplusinterval.3,v 1.2 2000/07/27 09:43:55 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_nowplusinterval.3,v 1.3 2000/08/01 01:20:17 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_seconds.3 b/doc/man/isc/isc_time_seconds.3
index 9d432a596e..b3e911399f 100644
--- a/doc/man/isc/isc_time_seconds.3
+++ b/doc/man/isc/isc_time_seconds.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_seconds.3,v 1.2 2000/07/27 09:43:56 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_seconds.3,v 1.3 2000/08/01 01:20:18 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_secondsastimet.3 b/doc/man/isc/isc_time_secondsastimet.3
index 8cc8b4b079..7a0fecf3d2 100644
--- a/doc/man/isc/isc_time_secondsastimet.3
+++ b/doc/man/isc/isc_time_secondsastimet.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_secondsastimet.3,v 1.2 2000/07/27 09:43:57 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_secondsastimet.3,v 1.3 2000/08/01 01:20:19 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_set.3 b/doc/man/isc/isc_time_set.3
index 880b56a18b..9112c853b9 100644
--- a/doc/man/isc/isc_time_set.3
+++ b/doc/man/isc/isc_time_set.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_set.3,v 1.2 2000/07/27 09:43:58 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_set.3,v 1.3 2000/08/01 01:20:20 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_settoepoch.3 b/doc/man/isc/isc_time_settoepoch.3
index 97a8b0e2da..09c27b9e75 100644
--- a/doc/man/isc/isc_time_settoepoch.3
+++ b/doc/man/isc/isc_time_settoepoch.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_settoepoch.3,v 1.2 2000/07/27 09:43:59 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_settoepoch.3,v 1.3 2000/08/01 01:20:21 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/isc/isc_time_subtract.3 b/doc/man/isc/isc_time_subtract.3
index febe6eb925..0f5d84d5c5 100644
--- a/doc/man/isc/isc_time_subtract.3
+++ b/doc/man/isc/isc_time_subtract.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: isc_time_subtract.3,v 1.2 2000/07/27 09:44:00 tale Exp $
-.\"
+.\"
+.\" $Id: isc_time_subtract.3,v 1.3 2000/08/01 01:20:22 tale Exp $
+.\"
.so isc_time.3
diff --git a/doc/man/lwres/lwres.3 b/doc/man/lwres/lwres.3
index 9f22585a4f..31577c3d2d 100644
--- a/doc/man/lwres/lwres.3
+++ b/doc/man/lwres/lwres.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres.3,v 1.2 2000/07/27 09:44:02 tale Exp $
-.\"
+.\"
+.\" $Id: lwres.3,v 1.3 2000/08/01 01:20:24 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES 3
.Os BIND9 9
@@ -42,9 +42,9 @@ Clients use the functions provided by the lightweight resolver library
to encode requests and decode responses.
The server for the lightweight resolver is
.Nm lwresd .
-In reality this is implemented by the name server,
+In reality this is implemented by the name server,
.Nm named ,
-though when operating as the lightweight resolver server,
+though when operating as the lightweight resolver server,
.Nm lwresd
is functionally and logically distinct from the actual name server.
The protocol consists of a number of opcodes, each of which has a
@@ -97,7 +97,7 @@ character.
This simplifies structure handling and parsing for both the server
receiving a request and the client receiving a reply.
It also eliminates data copying by enabling a mapping structure to
-directly point at data in the actual receive buffer.
+directly point at data in the actual receive buffer.
.Sh OPCODES
.Pp
Every lightweight resolver operation uses a unique opcode.
@@ -105,12 +105,12 @@ Each opcode is assigned a number.
Opcodes in the range 0x00000000 and 0x03ffffff are reserved for use by
the lightweight resolver library.
Opcodes between 0x04000000 and 0xffffffff have been set aside for use by
-applications.
+applications.
.Pp
Three opcodes are currently defined:
.Bl -tag -width LWRES_OPCODE_GETADDRSBYNAME
.It Li LWRES_OPCODE_NOOP
-The no-op opcode is essentially an echo operation, comparable to
+The no-op opcode is essentially an echo operation, comparable to
.Xr ping 1 .
The server simply returns the entire data region that had been sent by
the client.
@@ -165,24 +165,24 @@ function translates from the canonical form to the op-code specific
structure.
Memory allocated to the opcode's request or reply structures is
discarded using the
-.Ar free
+.Ar free
function.
Clients will typically use the op-code specific
.Ar xxx_request_render ,
-.Ar xxx_response_parse
+.Ar xxx_response_parse
and
.Ar xxx_response_free
functions.
The name server will use the
.Ar xxx_request_parse ,
.Ar xxx_response_render
-and
+and
.Ar xxx_request_free
functions.
.Pp
For example, the no-op opcode -
.Dv LWRES_OPCODE_NOOP
-- uses
+- uses
.Dv lwres_nooprequest_t
and
.Dv lwres_noopresponse_t
@@ -214,7 +214,7 @@ releases the memory allocated to the
and
.Dv lwres_noopresponse_t
structures respectively.
-.\"
+.\"
.\" XXXJR
.\" NOT YET.
.\" This is just a placeholder to indicate where the section on the
@@ -251,9 +251,9 @@ primitives on that context structure or else create a context for each
thread.
See
.Xr lwres_context 3 .
-Once the context has been created,
+Once the context has been created,
.Fn lwres_conf_init
-is called to read
+is called to read
.Pa /etc/resolv.conf
so that various options such as sort lists, search lists and so on can
be applied.
@@ -285,6 +285,6 @@ described above.
.Xr lwres_context 3 ,
.Xr lwres_config 3 ,
.Xr resolver 5 ,
-.Xr lwres_getipnode 3
+.Xr lwres_getipnode 3
.Xr lwresd 8 ,
.Xr named 8 .
diff --git a/doc/man/lwres/lwres_addr_parse.3 b/doc/man/lwres/lwres_addr_parse.3
index 6bab942584..11345fbe25 100644
--- a/doc/man/lwres/lwres_addr_parse.3
+++ b/doc/man/lwres/lwres_addr_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_addr_parse.3,v 1.2 2000/07/27 09:44:03 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_addr_parse.3,v 1.3 2000/08/01 01:20:25 tale Exp $
+.\"
.so lwres_resutil.3
diff --git a/doc/man/lwres/lwres_buffer.3 b/doc/man/lwres/lwres_buffer.3
index 401aebe76f..ec69ae6c87 100644
--- a/doc/man/lwres/lwres_buffer.3
+++ b/doc/man/lwres/lwres_buffer.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer.3,v 1.2 2000/07/27 09:44:04 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer.3,v 1.3 2000/08/01 01:20:26 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_BUFFER 3
.Os BIND9 9
@@ -39,7 +39,7 @@
.Nd lightweight resolver buffer management
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft void
.Fo lwres_buffer_init
.Fa "lwres_buffer_t *b"
@@ -132,7 +132,7 @@ struct lwres_buffer {
unsigned int active;
};
.Ed
-The main reason for making the buffer structure public is so that
+The main reason for making the buffer structure public is so that
buffer operations can be implemented using macros.
Applications should not manipulate this structure directly.
They should use the functions listed below.
@@ -166,7 +166,7 @@ It extends from the current offset to an offset in the
remaining region.
Initially, the active region is empty.
If the current offset advances beyond the chosen offset,
-the active region will also be empty.
+the active region will also be empty.
.Pp
Except for
.Fn lwres_buffer_init ,
@@ -193,7 +193,7 @@ The
.Fa *b
is invalidated by
.Fn lwres_buffer_invalidate .
-.Fa *b
+.Fa *b
must be a valid lightweight resolver buffer.
.Pp
The functions
@@ -206,7 +206,7 @@ buffer
by
.Fa n
bytes.
-.Fa *b
+.Fa *b
.Fn lwres_buffer_add
checks for buffer overflow and
.Fn lwres_buffer_subtract
@@ -219,9 +219,9 @@ A lightweight resolver buffer is re-initialised by
.Fn lwres_buffer_clear .
The function sets
.Li b->used ,
-.Li b->current
+.Li b->current
and
-.Li b->active
+.Li b->active
to zero.
.Pp
.Fn lwres_buffer_first
@@ -289,11 +289,11 @@ respectively.
.Fn lwres_buffer_putmem
copies
.Fa length
-bytes of memory at
+bytes of memory at
.Fa base
to
.Fa b.
-Conversely,
+Conversely,
.Fn lwres_buffer_getmem
copies
.Fa length
diff --git a/doc/man/lwres/lwres_buffer_add.3 b/doc/man/lwres/lwres_buffer_add.3
index 00bd2561f1..3694e497ca 100644
--- a/doc/man/lwres/lwres_buffer_add.3
+++ b/doc/man/lwres/lwres_buffer_add.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_add.3,v 1.2 2000/07/27 09:44:05 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_add.3,v 1.3 2000/08/01 01:20:27 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_back.3 b/doc/man/lwres/lwres_buffer_back.3
index 811657e69a..552b635cfe 100644
--- a/doc/man/lwres/lwres_buffer_back.3
+++ b/doc/man/lwres/lwres_buffer_back.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_back.3,v 1.2 2000/07/27 09:44:06 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_back.3,v 1.3 2000/08/01 01:20:28 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_clear.3 b/doc/man/lwres/lwres_buffer_clear.3
index 2737e2475c..6b78222349 100644
--- a/doc/man/lwres/lwres_buffer_clear.3
+++ b/doc/man/lwres/lwres_buffer_clear.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_clear.3,v 1.2 2000/07/27 09:44:07 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_clear.3,v 1.3 2000/08/01 01:20:29 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_first.3 b/doc/man/lwres/lwres_buffer_first.3
index 99f3a466f7..57373d02b4 100644
--- a/doc/man/lwres/lwres_buffer_first.3
+++ b/doc/man/lwres/lwres_buffer_first.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_first.3,v 1.2 2000/07/27 09:44:08 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_first.3,v 1.3 2000/08/01 01:20:30 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_forward.3 b/doc/man/lwres/lwres_buffer_forward.3
index fcebbeb7c8..04bcfe3b98 100644
--- a/doc/man/lwres/lwres_buffer_forward.3
+++ b/doc/man/lwres/lwres_buffer_forward.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_forward.3,v 1.2 2000/07/27 09:44:09 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_forward.3,v 1.3 2000/08/01 01:20:31 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_getmem.3 b/doc/man/lwres/lwres_buffer_getmem.3
index 09e50498c8..c057924444 100644
--- a/doc/man/lwres/lwres_buffer_getmem.3
+++ b/doc/man/lwres/lwres_buffer_getmem.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_getmem.3,v 1.2 2000/07/27 09:44:10 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_getmem.3,v 1.3 2000/08/01 01:20:33 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_getuint16.3 b/doc/man/lwres/lwres_buffer_getuint16.3
index c3a5873a21..b7142d6eb3 100644
--- a/doc/man/lwres/lwres_buffer_getuint16.3
+++ b/doc/man/lwres/lwres_buffer_getuint16.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_getuint16.3,v 1.2 2000/07/27 09:44:12 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_getuint16.3,v 1.3 2000/08/01 01:20:34 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_getuint32.3 b/doc/man/lwres/lwres_buffer_getuint32.3
index eeed1336b3..1cc7564e99 100644
--- a/doc/man/lwres/lwres_buffer_getuint32.3
+++ b/doc/man/lwres/lwres_buffer_getuint32.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_getuint32.3,v 1.2 2000/07/27 09:44:13 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_getuint32.3,v 1.3 2000/08/01 01:20:35 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_getuint8.3 b/doc/man/lwres/lwres_buffer_getuint8.3
index e7633793ad..63f50650ae 100644
--- a/doc/man/lwres/lwres_buffer_getuint8.3
+++ b/doc/man/lwres/lwres_buffer_getuint8.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_getuint8.3,v 1.2 2000/07/27 09:44:14 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_getuint8.3,v 1.3 2000/08/01 01:20:36 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_init.3 b/doc/man/lwres/lwres_buffer_init.3
index ffc200e917..35601e65c7 100644
--- a/doc/man/lwres/lwres_buffer_init.3
+++ b/doc/man/lwres/lwres_buffer_init.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_init.3,v 1.2 2000/07/27 09:44:15 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_init.3,v 1.3 2000/08/01 01:20:37 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_invalidate.3 b/doc/man/lwres/lwres_buffer_invalidate.3
index f281800361..d149f42c58 100644
--- a/doc/man/lwres/lwres_buffer_invalidate.3
+++ b/doc/man/lwres/lwres_buffer_invalidate.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_invalidate.3,v 1.2 2000/07/27 09:44:16 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_invalidate.3,v 1.3 2000/08/01 01:20:38 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_putmem.3 b/doc/man/lwres/lwres_buffer_putmem.3
index c092c0e998..7fabb0f1e5 100644
--- a/doc/man/lwres/lwres_buffer_putmem.3
+++ b/doc/man/lwres/lwres_buffer_putmem.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_putmem.3,v 1.2 2000/07/27 09:44:17 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_putmem.3,v 1.3 2000/08/01 01:20:39 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_putuint16.3 b/doc/man/lwres/lwres_buffer_putuint16.3
index 435a12f82d..c54379c6a4 100644
--- a/doc/man/lwres/lwres_buffer_putuint16.3
+++ b/doc/man/lwres/lwres_buffer_putuint16.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_putuint16.3,v 1.2 2000/07/27 09:44:18 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_putuint16.3,v 1.3 2000/08/01 01:20:40 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_putuint32.3 b/doc/man/lwres/lwres_buffer_putuint32.3
index 5fb450a0d3..01312598e0 100644
--- a/doc/man/lwres/lwres_buffer_putuint32.3
+++ b/doc/man/lwres/lwres_buffer_putuint32.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_putuint32.3,v 1.2 2000/07/27 09:44:19 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_putuint32.3,v 1.3 2000/08/01 01:20:41 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_putuint8.3 b/doc/man/lwres/lwres_buffer_putuint8.3
index 25afe81a25..f6e8c07920 100644
--- a/doc/man/lwres/lwres_buffer_putuint8.3
+++ b/doc/man/lwres/lwres_buffer_putuint8.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_putuint8.3,v 1.2 2000/07/27 09:44:20 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_putuint8.3,v 1.3 2000/08/01 01:20:42 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_buffer_subtract.3 b/doc/man/lwres/lwres_buffer_subtract.3
index f0e2c6df9e..dc4f74d1e8 100644
--- a/doc/man/lwres/lwres_buffer_subtract.3
+++ b/doc/man/lwres/lwres_buffer_subtract.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_buffer_subtract.3,v 1.2 2000/07/27 09:44:21 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_buffer_subtract.3,v 1.3 2000/08/01 01:20:43 tale Exp $
+.\"
.so lwres_buffer.3
diff --git a/doc/man/lwres/lwres_conf_clear.3 b/doc/man/lwres/lwres_conf_clear.3
index debb6f0a58..98cb907f3f 100644
--- a/doc/man/lwres/lwres_conf_clear.3
+++ b/doc/man/lwres/lwres_conf_clear.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_conf_clear.3,v 1.2 2000/07/27 09:44:22 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_conf_clear.3,v 1.3 2000/08/01 01:20:45 tale Exp $
+.\"
.so lwres_config.3
diff --git a/doc/man/lwres/lwres_conf_get.3 b/doc/man/lwres/lwres_conf_get.3
index eec9ddcf47..92b1431bb0 100644
--- a/doc/man/lwres/lwres_conf_get.3
+++ b/doc/man/lwres/lwres_conf_get.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_conf_get.3,v 1.2 2000/07/27 09:44:23 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_conf_get.3,v 1.3 2000/08/01 01:20:46 tale Exp $
+.\"
.so lwres_config.3
diff --git a/doc/man/lwres/lwres_conf_init.3 b/doc/man/lwres/lwres_conf_init.3
index 61c3864e7b..06eba65af2 100644
--- a/doc/man/lwres/lwres_conf_init.3
+++ b/doc/man/lwres/lwres_conf_init.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_conf_init.3,v 1.2 2000/07/27 09:44:25 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_conf_init.3,v 1.3 2000/08/01 01:20:47 tale Exp $
+.\"
.so lwres_config.3
diff --git a/doc/man/lwres/lwres_conf_parse.3 b/doc/man/lwres/lwres_conf_parse.3
index 432efb5de4..c5d3195907 100644
--- a/doc/man/lwres/lwres_conf_parse.3
+++ b/doc/man/lwres/lwres_conf_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_conf_parse.3,v 1.2 2000/07/27 09:44:26 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_conf_parse.3,v 1.3 2000/08/01 01:20:48 tale Exp $
+.\"
.so lwres_config.3
diff --git a/doc/man/lwres/lwres_conf_print.3 b/doc/man/lwres/lwres_conf_print.3
index eddce35786..06a3249329 100644
--- a/doc/man/lwres/lwres_conf_print.3
+++ b/doc/man/lwres/lwres_conf_print.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_conf_print.3,v 1.2 2000/07/27 09:44:27 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_conf_print.3,v 1.3 2000/08/01 01:20:50 tale Exp $
+.\"
.so lwres_config.3
diff --git a/doc/man/lwres/lwres_config.3 b/doc/man/lwres/lwres_config.3
index be18178f3f..dfd89fe705 100644
--- a/doc/man/lwres/lwres_config.3
+++ b/doc/man/lwres/lwres_config.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_config.3,v 1.2 2000/07/27 09:44:28 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_config.3,v 1.3 2000/08/01 01:20:51 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_CONFIG 3
.Os BIND9 9
@@ -59,7 +59,7 @@ structure for lightweight resolver context
.Fa ctx .
.Pp
.Fn lwres_conf_clear
-frees up all the internal memory used by
+frees up all the internal memory used by
that
.Dv lwres_conf_t
structure in resolver context
@@ -83,7 +83,7 @@ to the
.Fa fp.
.Sh RETURN VALUES
.Fn lwres_conf_parse
-returns
+returns
.Er LWRES_R_SUCCESS
if it successfully read and parsed
.Fa filename .
@@ -91,7 +91,7 @@ It returns
.Er LWRES_R_FAILURE
if
.Fa filename
-could not be opened or contained incorrect
+could not be opened or contained incorrect
resolver statements.
.Pp
.Fn lwres_conf_print
diff --git a/doc/man/lwres/lwres_context.3 b/doc/man/lwres/lwres_context.3
index e2437a6662..2ae8205992 100644
--- a/doc/man/lwres/lwres_context.3
+++ b/doc/man/lwres/lwres_context.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context.3,v 1.2 2000/07/27 09:44:29 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context.3,v 1.3 2000/08/01 01:20:52 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_CONTEXT 3
.Os BIND9 9
@@ -30,14 +30,14 @@
.Nd lightweight resolver memory allocation routines
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_context_create
.Fa "lwres_context_t **contextp"
.Fa "void *arg"
.Fa "lwres_malloc_t malloc_function"
.Fa "lwres_free_t free_function"
-.Fc
+.Fc
.Ft lwres_result_t
.Fo lwres_context_destroy
.Fa "lwres_context_t **contextp"
@@ -155,7 +155,7 @@ is not NULL.
.Fn lwres_context_initserial
sets the serial number for context
.Fa *ctx
-to
+to
.Fa serial .
.Fn lwres_context_nextserial
returns the current serial number for the context and increments
@@ -219,7 +219,7 @@ returned in
.Fa *recvd_len .
.Sh RETURN VALUES
.Fn lwres_context_create
-returns
+returns
.Er LWRES_R_NOMEMORY
if memory for the
.Dv "struct lwres_context"
@@ -240,7 +240,7 @@ completes successfully.
is returned if an I/O error occurs and
.Er LWRES_R_TIMEOUT
is returned if the
-.Xr recvfrom 2
+.Xr recvfrom 2
call times out.
.Sh SEE ALSO
.Xr lwres_conf_init 3 ,
diff --git a/doc/man/lwres/lwres_context_allocmem.3 b/doc/man/lwres/lwres_context_allocmem.3
index f139cbaadb..6d4aa2bdfd 100644
--- a/doc/man/lwres/lwres_context_allocmem.3
+++ b/doc/man/lwres/lwres_context_allocmem.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_allocmem.3,v 1.2 2000/07/27 09:44:30 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_allocmem.3,v 1.3 2000/08/01 01:20:53 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_create.3 b/doc/man/lwres/lwres_context_create.3
index 3d19c22703..617ff64f37 100644
--- a/doc/man/lwres/lwres_context_create.3
+++ b/doc/man/lwres/lwres_context_create.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_create.3,v 1.2 2000/07/27 09:44:31 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_create.3,v 1.3 2000/08/01 01:20:54 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_destroy.3 b/doc/man/lwres/lwres_context_destroy.3
index 42f53ef23e..f47ccbcd4b 100644
--- a/doc/man/lwres/lwres_context_destroy.3
+++ b/doc/man/lwres/lwres_context_destroy.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_destroy.3,v 1.2 2000/07/27 09:44:32 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_destroy.3,v 1.3 2000/08/01 01:20:55 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_freemem.3 b/doc/man/lwres/lwres_context_freemem.3
index 52e3e99d9f..1cd987a4e9 100644
--- a/doc/man/lwres/lwres_context_freemem.3
+++ b/doc/man/lwres/lwres_context_freemem.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_freemem.3,v 1.2 2000/07/27 09:44:33 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_freemem.3,v 1.3 2000/08/01 01:20:56 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_initserial.3 b/doc/man/lwres/lwres_context_initserial.3
index ae30577aec..9de6c3edb0 100644
--- a/doc/man/lwres/lwres_context_initserial.3
+++ b/doc/man/lwres/lwres_context_initserial.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_initserial.3,v 1.2 2000/07/27 09:44:34 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_initserial.3,v 1.3 2000/08/01 01:20:57 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_nextserial.3 b/doc/man/lwres/lwres_context_nextserial.3
index 78f751cb4a..82867c3dbc 100644
--- a/doc/man/lwres/lwres_context_nextserial.3
+++ b/doc/man/lwres/lwres_context_nextserial.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_nextserial.3,v 1.2 2000/07/27 09:44:35 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_nextserial.3,v 1.3 2000/08/01 01:20:58 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_context_sendrecv.3 b/doc/man/lwres/lwres_context_sendrecv.3
index 8d2cfb7066..7b94ab584c 100644
--- a/doc/man/lwres/lwres_context_sendrecv.3
+++ b/doc/man/lwres/lwres_context_sendrecv.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_context_sendrecv.3,v 1.2 2000/07/27 09:44:36 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_context_sendrecv.3,v 1.3 2000/08/01 01:20:59 tale Exp $
+.\"
.so lwres_context.3
diff --git a/doc/man/lwres/lwres_endhostent.3 b/doc/man/lwres/lwres_endhostent.3
index 231ab21487..62f7a61def 100644
--- a/doc/man/lwres/lwres_endhostent.3
+++ b/doc/man/lwres/lwres_endhostent.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_endhostent.3,v 1.2 2000/07/27 09:44:38 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_endhostent.3,v 1.3 2000/08/01 01:21:00 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_endhostent_r.3 b/doc/man/lwres/lwres_endhostent_r.3
index 4c5a898e49..a5f651ea21 100644
--- a/doc/man/lwres/lwres_endhostent_r.3
+++ b/doc/man/lwres/lwres_endhostent_r.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_endhostent_r.3,v 1.2 2000/07/27 09:44:39 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_endhostent_r.3,v 1.3 2000/08/01 01:21:01 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_freeaddrinfo.3 b/doc/man/lwres/lwres_freeaddrinfo.3
index 4fd640c5db..5583a99cc3 100644
--- a/doc/man/lwres/lwres_freeaddrinfo.3
+++ b/doc/man/lwres/lwres_freeaddrinfo.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_freeaddrinfo.3,v 1.2 2000/07/27 09:44:40 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_freeaddrinfo.3,v 1.3 2000/08/01 01:21:02 tale Exp $
+.\"
.so lwres_getaddrinfo.3
diff --git a/doc/man/lwres/lwres_freehostent.3 b/doc/man/lwres/lwres_freehostent.3
index 2bfd986665..3b3d8511d2 100644
--- a/doc/man/lwres/lwres_freehostent.3
+++ b/doc/man/lwres/lwres_freehostent.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_freehostent.3,v 1.2 2000/07/27 09:44:41 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_freehostent.3,v 1.3 2000/08/01 01:21:04 tale Exp $
+.\"
.so lwres_getipnode.3
diff --git a/doc/man/lwres/lwres_gabn.3 b/doc/man/lwres/lwres_gabn.3
index 57ddc1f158..4e0b353854 100644
--- a/doc/man/lwres/lwres_gabn.3
+++ b/doc/man/lwres/lwres_gabn.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabn.3,v 1.2 2000/07/27 09:44:42 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabn.3,v 1.3 2000/08/01 01:21:05 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GABN 3
.Os BIND9 9
@@ -29,7 +29,7 @@
.Nd lightweight resolver getaddrbyname functions
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_gabnrequest_render
.Fa "lwres_context_t *ctx"
@@ -91,9 +91,9 @@ These structures are defined in
They are shown below.
.Bd -literal -offset indent
#define LWRES_OPCODE_GETADDRSBYNAME 0x00010001U
-
+
typedef struct lwres_addr lwres_addr_t;
-typedef LWRES_LIST(lwres_addr_t) lwres_addrlist_t;
+typedef LWRES_LIST(lwres_addr_t) lwres_addrlist_t;
typedef struct {
lwres_uint32_t flags;
@@ -140,7 +140,7 @@ uses context
.Fa ctx
to convert the contents of packet
.Fa pkt
-to a
+to a
.Dv lwres_gabnrequest_t
structure.
Buffer
@@ -187,7 +187,7 @@ if memory allocation fails.
is returned if the available space in the buffer
.Fa b
is too small to accommodate the packet header or the
-.Dv lwres_gabnrequest_t
+.Dv lwres_gabnrequest_t
and
.Dv lwres_gabnresponse_t
structures.
@@ -205,4 +205,4 @@ in the packet header structure
.Dv lwres_lwpacket_t
indicate that the packet is not a response to an earlier query.
.Sh SEE ALSO
-.Xr lwres_packet 3
+.Xr lwres_packet 3
diff --git a/doc/man/lwres/lwres_gabnrequest_free.3 b/doc/man/lwres/lwres_gabnrequest_free.3
index 4767669a77..749c5ab1d2 100644
--- a/doc/man/lwres/lwres_gabnrequest_free.3
+++ b/doc/man/lwres/lwres_gabnrequest_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnrequest_free.3,v 1.2 2000/07/27 09:44:43 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnrequest_free.3,v 1.3 2000/08/01 01:21:06 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gabnrequest_parse.3 b/doc/man/lwres/lwres_gabnrequest_parse.3
index bac556421f..537c99b70c 100644
--- a/doc/man/lwres/lwres_gabnrequest_parse.3
+++ b/doc/man/lwres/lwres_gabnrequest_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnrequest_parse.3,v 1.2 2000/07/27 09:44:44 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnrequest_parse.3,v 1.3 2000/08/01 01:21:07 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gabnrequest_render.3 b/doc/man/lwres/lwres_gabnrequest_render.3
index bdbbd58668..15eee1fa06 100644
--- a/doc/man/lwres/lwres_gabnrequest_render.3
+++ b/doc/man/lwres/lwres_gabnrequest_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnrequest_render.3,v 1.2 2000/07/27 09:44:45 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnrequest_render.3,v 1.3 2000/08/01 01:21:08 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gabnresponse_free.3 b/doc/man/lwres/lwres_gabnresponse_free.3
index ce1e7a56b2..59039418d7 100644
--- a/doc/man/lwres/lwres_gabnresponse_free.3
+++ b/doc/man/lwres/lwres_gabnresponse_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnresponse_free.3,v 1.2 2000/07/27 09:44:46 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnresponse_free.3,v 1.3 2000/08/01 01:21:09 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gabnresponse_parse.3 b/doc/man/lwres/lwres_gabnresponse_parse.3
index cc935353ff..001bdb7724 100644
--- a/doc/man/lwres/lwres_gabnresponse_parse.3
+++ b/doc/man/lwres/lwres_gabnresponse_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnresponse_parse.3,v 1.2 2000/07/27 09:44:47 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnresponse_parse.3,v 1.3 2000/08/01 01:21:10 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gabnresponse_render.3 b/doc/man/lwres/lwres_gabnresponse_render.3
index ecb88418cf..45e34be225 100644
--- a/doc/man/lwres/lwres_gabnresponse_render.3
+++ b/doc/man/lwres/lwres_gabnresponse_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gabnresponse_render.3,v 1.2 2000/07/27 09:44:48 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gabnresponse_render.3,v 1.3 2000/08/01 01:21:11 tale Exp $
+.\"
.so lwres_gabn.3
diff --git a/doc/man/lwres/lwres_gai_strerror.3 b/doc/man/lwres/lwres_gai_strerror.3
index 8db5b5528d..d36140f3c0 100644
--- a/doc/man/lwres/lwres_gai_strerror.3
+++ b/doc/man/lwres/lwres_gai_strerror.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gai_strerror.3,v 1.2 2000/07/27 09:44:49 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gai_strerror.3,v 1.3 2000/08/01 01:21:12 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GAI_STRERROR 3
.Os BIND9 9
@@ -24,7 +24,7 @@
.Nd print suitable error string
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft char *
.Fo gai_strerror
.Fa "int ecode"
diff --git a/doc/man/lwres/lwres_getaddrinfo.3 b/doc/man/lwres/lwres_getaddrinfo.3
index 090b7ef6f2..6039a1ff07 100644
--- a/doc/man/lwres/lwres_getaddrinfo.3
+++ b/doc/man/lwres/lwres_getaddrinfo.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getaddrinfo.3,v 1.2 2000/07/27 09:44:50 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getaddrinfo.3,v 1.3 2000/08/01 01:21:13 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GETADDRINFO 3
.Os BIND9 9
@@ -25,7 +25,7 @@
.Nd socket address structure to host and service name
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft int
.Fo lwres_getaddrinfo
.Fa "const char *hostname"
@@ -88,14 +88,14 @@ The caller can supply the following structure elements in
the protocol family that should be used.
When
.Li ai_family
-is set to
+is set to
.Dv PF_UNSPEC ,
it means the caller will accept any protocol family supported by the
operating system.
.It Dv ai_socktype
denotes the type of socket -
.Dv SOCK_STREAM ,
-.Dv SOCK_DGRAM
+.Dv SOCK_DGRAM
or
.Dv SOCK_RAW
- that is wanted.
@@ -139,9 +139,9 @@ does not set the
.Dv AI_PASSIVE
bit, the returned socket address structure will be ready
for use in a call to
-.Xr connect 2
+.Xr connect 2
for a connection-oriented protocol or
-.Xr connect 2 ,
+.Xr connect 2 ,
.Xr sendto 2 ,
or
.Xr sendmsg 2
@@ -153,7 +153,7 @@ is a
.Dv NULL
pointer and
.Dv AI_PASSIVE
-is not set in
+is not set in
.Li ai_flags .
.Pp
If
@@ -161,7 +161,7 @@ If
is set to
.Dv AI_NUMERICHOST
it indicates that
-the
+the
.Dv non-NuLL
.Fa hostname
should be treated as a numeric string defining an IPv4 or IPv6 address.
@@ -177,7 +177,7 @@ passed via
.Fa arg
must be zero.
.Pp
-If
+If
.Fa arg
is not supplied, a
.Dv NULL
@@ -200,7 +200,7 @@ the
.Li ai_next
pointer, until a
.Dv NULL
-pointer is encountered.
+pointer is encountered.
The three members
.Li ai_family ,
ai_socktype,
@@ -237,7 +237,7 @@ is a pointer to a
returns zero on success or one of the error codes listed in
.Xr gai_strerror 3
if an error occurs.
-If both
+If both
.Fa hostname
and
.Fa servname
@@ -253,8 +253,8 @@ returns
.Xr RFC2133 ,
.Xr getservbyname 3 ,
.Xr bind 2
-.Xr connect 2
-.Xr connect 2 ,
+.Xr connect 2
+.Xr connect 2 ,
.Xr sendto 2 ,
.Xr sendmsg 2 ,
.Xr socket 2 .
diff --git a/doc/man/lwres/lwres_getaddrsbyname.3 b/doc/man/lwres/lwres_getaddrsbyname.3
index d248687954..6e6a88f83d 100644
--- a/doc/man/lwres/lwres_getaddrsbyname.3
+++ b/doc/man/lwres/lwres_getaddrsbyname.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getaddrsbyname.3,v 1.2 2000/07/27 09:44:52 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getaddrsbyname.3,v 1.3 2000/08/01 01:21:15 tale Exp $
+.\"
.so lwres_resutil.3
diff --git a/doc/man/lwres/lwres_gethostbyaddr.3 b/doc/man/lwres/lwres_gethostbyaddr.3
index f5c9ae936c..721d18e157 100644
--- a/doc/man/lwres/lwres_gethostbyaddr.3
+++ b/doc/man/lwres/lwres_gethostbyaddr.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostbyaddr.3,v 1.2 2000/07/27 09:44:53 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostbyaddr.3,v 1.3 2000/08/01 01:21:16 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_gethostbyaddr_r.3 b/doc/man/lwres/lwres_gethostbyaddr_r.3
index 93a93f7504..1d36c82e8b 100644
--- a/doc/man/lwres/lwres_gethostbyaddr_r.3
+++ b/doc/man/lwres/lwres_gethostbyaddr_r.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostbyaddr_r.3,v 1.2 2000/07/27 09:44:54 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostbyaddr_r.3,v 1.3 2000/08/01 01:21:17 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_gethostbyname.3 b/doc/man/lwres/lwres_gethostbyname.3
index 8b457e3fd0..f8e60eddae 100644
--- a/doc/man/lwres/lwres_gethostbyname.3
+++ b/doc/man/lwres/lwres_gethostbyname.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostbyname.3,v 1.2 2000/07/27 09:44:55 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostbyname.3,v 1.3 2000/08/01 01:21:18 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_gethostbyname2.3 b/doc/man/lwres/lwres_gethostbyname2.3
index c198c01f95..9c8c7b5be8 100644
--- a/doc/man/lwres/lwres_gethostbyname2.3
+++ b/doc/man/lwres/lwres_gethostbyname2.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostbyname2.3,v 1.2 2000/07/27 09:44:56 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostbyname2.3,v 1.3 2000/08/01 01:21:19 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_gethostbyname_r.3 b/doc/man/lwres/lwres_gethostbyname_r.3
index beeb795a94..6433a236e0 100644
--- a/doc/man/lwres/lwres_gethostbyname_r.3
+++ b/doc/man/lwres/lwres_gethostbyname_r.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostbyname_r.3,v 1.2 2000/07/27 09:44:57 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostbyname_r.3,v 1.3 2000/08/01 01:21:20 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_gethostent.3 b/doc/man/lwres/lwres_gethostent.3
index 288296bf96..c997d6f2e6 100644
--- a/doc/man/lwres/lwres_gethostent.3
+++ b/doc/man/lwres/lwres_gethostent.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostent.3,v 1.2 2000/07/27 09:44:58 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostent.3,v 1.3 2000/08/01 01:21:21 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GETHOSTENT 3
.Os BIND9 9
@@ -34,7 +34,7 @@
.Nd lightweight resolver get network host entry
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft struct hostent *
.Fo lwres_gethostbyname
.Fa "const char *name"
@@ -100,7 +100,7 @@ These functions define the interface to the lightweight resolver
daemon \fPNOT IF IT IS GOING AWAY\fP
for looking up hostnames and addresses. They are similar to the
standard
-.Xr gethostent 3
+.Xr gethostent 3
functions provided by as part of the standard system software.
They use a
.Dv "struct hostent"
@@ -125,7 +125,7 @@ The official (canonical) name of the host.
A NULL-terminated array of alternate names (nicknames) for the host.
.It Li h_addrtype
The type of address being returned -
-.Dv PF_INET
+.Dv PF_INET
or
.Dv PF_INET6 .
.It Li h_length
@@ -137,7 +137,7 @@ terminated array of network addresses for the host.
Host addresses are returned in network byte order.
.El
.Pp
-For backward compatibility with very old software,
+For backward compatibility with very old software,
.Li h_addr
is the first address in
.Li h_addr_list.
@@ -168,10 +168,10 @@ always looks for an IPv4 address while
.Fn lwres_gethostbyname2
looks for an address of protocol family
.Fa af :
-either
+either
.Dv PF_INET
or
-.Dv PF_INET6
+.Dv PF_INET6
- IPv4 or IPV6 addresses respectively.
Both functions call
.Fn lwres_getipnodebyname
@@ -206,15 +206,15 @@ It also calls
.Fn lwres_getipnodebyname
to lookup the hostname
.Fa name .
-If
+If
.Fn lwres_getipnodebyname
encounters an error, the error code is returned in
-.Fa *error .
+.Fa *error .
.Fa resbuf
is a pointer to a
.Dv "struct hostent"
which is initialised by a successful call to
-.Fn lwres_gethostbyname_r .
+.Fn lwres_gethostbyname_r .
.Fa buf
is a buffer of length
.Fa len
@@ -259,7 +259,7 @@ The other function parameters are identical to those in
is a pointer to a
.Dv "struct hostent"
which is initialised by a successful call to
-.Fn lwres_gethostbyaddr_r .
+.Fn lwres_gethostbyaddr_r .
.Fa buf
is a buffer of length
.Fa len
@@ -281,11 +281,11 @@ which is a pointer to the
it created.
.Sh RETURN VALUES
.Pp
-The functions
+The functions
.Fn lwres_gethostbyname ,
.Fn lwres_gethostbyname2 ,
.Fn lwres_gethostbyaddr ,
-and
+and
.Fn lwres_gethostent
are not thread-safe because they free any memory that had been allocated
in a previous call to those functions before they perform a lookup.
@@ -348,7 +348,7 @@ and
.Li h_addr_list
elements of the
.Dv "struct hostent" .
-If
+If
.Fa buf
was too small, both
.Fn lwres_gethostbyname_r
@@ -366,7 +366,7 @@ to
Although
.Fn lwres_gethostbyname ,
.Fn lwres_gethostbyname2 ,
-.Fn lwres_gethostbyaddr
+.Fn lwres_gethostbyaddr
and
.Fn lwres_endhostent
call thread-safe functions to perform lookups, these 3 functions
@@ -386,7 +386,7 @@ calls to those routines.
Thread-safe versions for name and address lookup are provided by
.Fn lwres_gethostbyname_r ,
and
-.Fn lwres_gethostbyaddr_r
+.Fn lwres_gethostbyaddr_r
respectively.
.Pp
Although the above functions can be considered as drop-in replacements
@@ -400,6 +400,6 @@ or in
.Dv NIS/YP
or
.Dv NIS+
-maps which could be supported by the operating system's
+maps which could be supported by the operating system's
.Xr gethostent 3
functions.
diff --git a/doc/man/lwres/lwres_gethostent_r.3 b/doc/man/lwres/lwres_gethostent_r.3
index f9f4719dab..76a45bbc57 100644
--- a/doc/man/lwres/lwres_gethostent_r.3
+++ b/doc/man/lwres/lwres_gethostent_r.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gethostent_r.3,v 1.2 2000/07/27 09:44:59 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gethostent_r.3,v 1.3 2000/08/01 01:21:23 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_getipnode.3 b/doc/man/lwres/lwres_getipnode.3
index be7b2fdf46..ff4b80c902 100644
--- a/doc/man/lwres/lwres_getipnode.3
+++ b/doc/man/lwres/lwres_getipnode.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getipnode.3,v 1.2 2000/07/27 09:45:00 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getipnode.3,v 1.3 2000/08/01 01:21:24 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GETIPNODE 3
.Os BIND9 9
@@ -26,7 +26,7 @@
.Nd lookup functions for the lightweight resolver
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft struct hostent *
.Fo lwres_getipnodebyname
.Fa "const char *name"
@@ -69,7 +69,7 @@ The official (canonical) name of the host.
A NULL-terminated array of alternate names (nicknames) for the host.
.It Li h_addrtype
The type of address being returned -
-.Dv PF_INET
+.Dv PF_INET
or
.Dv PF_INET6 .
.It Li h_length
@@ -81,7 +81,7 @@ terminated array of network addresses for the host.
Host addresses are returned in network byte order.
.El
.Pp
-For backward compatibility with very old software,
+For backward compatibility with very old software,
.Li h_addr
is the first address in
.Li h_addr_list.
@@ -170,7 +170,7 @@ gets discarded.
.Pp
.Fn lwres_freehostent
releases all the memory associated with
-the
+the
.Dv "struct hostent"
pointer
.Fa he .
diff --git a/doc/man/lwres/lwres_getipnodebyaddr.3 b/doc/man/lwres/lwres_getipnodebyaddr.3
index 9edc2ca4b1..9dd965c37d 100644
--- a/doc/man/lwres/lwres_getipnodebyaddr.3
+++ b/doc/man/lwres/lwres_getipnodebyaddr.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getipnodebyaddr.3,v 1.2 2000/07/27 09:45:02 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getipnodebyaddr.3,v 1.3 2000/08/01 01:21:25 tale Exp $
+.\"
.so lwres_getipnode.3
diff --git a/doc/man/lwres/lwres_getipnodebyname.3 b/doc/man/lwres/lwres_getipnodebyname.3
index c044391730..52a9749e65 100644
--- a/doc/man/lwres/lwres_getipnodebyname.3
+++ b/doc/man/lwres/lwres_getipnodebyname.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getipnodebyname.3,v 1.2 2000/07/27 09:45:03 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getipnodebyname.3,v 1.3 2000/08/01 01:21:26 tale Exp $
+.\"
.so lwres_getipnode.3
diff --git a/doc/man/lwres/lwres_getnamebyaddr.3 b/doc/man/lwres/lwres_getnamebyaddr.3
index 53ba12ece6..efea2d0042 100644
--- a/doc/man/lwres/lwres_getnamebyaddr.3
+++ b/doc/man/lwres/lwres_getnamebyaddr.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getnamebyaddr.3,v 1.2 2000/07/27 09:45:04 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getnamebyaddr.3,v 1.3 2000/08/01 01:21:27 tale Exp $
+.\"
.so lwres_resutil.3
diff --git a/doc/man/lwres/lwres_getnameinfo.3 b/doc/man/lwres/lwres_getnameinfo.3
index 4d8dde7bf7..c7e8986735 100644
--- a/doc/man/lwres/lwres_getnameinfo.3
+++ b/doc/man/lwres/lwres_getnameinfo.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_getnameinfo.3,v 1.3 2000/07/27 09:45:05 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_getnameinfo.3,v 1.4 2000/08/01 01:21:28 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GETNAMEINFO 3
.Os BIND9 9
@@ -24,7 +24,7 @@
.Nd lightweight resolver socket address structure to hostname and service name
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft int
.Fo lwres_getnameinfo
.Fa "const struct sockaddr *sa"
@@ -109,7 +109,7 @@ is called immediately before
.Fn lwres_getnameinfo
returns so that the created resolver context gets discarded.
.Sh RETURN VALUES
-.Fn lwres_getnameinfo
+.Fn lwres_getnameinfo
returns 0 on success or a non-zero error code if an error occurs.
.\"
.\" The error codes below were invented by the ISC/Nominum. They
diff --git a/doc/man/lwres/lwres_gnba.3 b/doc/man/lwres/lwres_gnba.3
index dc92cf5d56..d25661261b 100644
--- a/doc/man/lwres/lwres_gnba.3
+++ b/doc/man/lwres/lwres_gnba.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnba.3,v 1.2 2000/07/27 09:45:06 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnba.3,v 1.3 2000/08/01 01:21:29 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_GNBA 3
.Os BIND9 9
@@ -29,7 +29,7 @@
.Nd lightweight resolver getnamebyaddress functions
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_gnbarequest_render
.Fa "lwres_context_t *ctx"
@@ -133,7 +133,7 @@ uses context
.Fa ctx
to convert the contents of packet
.Fa pkt
-to a
+to a
.Dv lwres_gnbarequest_t
structure.
Buffer
@@ -180,7 +180,7 @@ if memory allocation fails.
is returned if the available space in the buffer
.Fa b
is too small to accommodate the packet header or the
-.Dv lwres_gnbarequest_t
+.Dv lwres_gnbarequest_t
and
.Dv lwres_gnbaresponse_t
structures.
@@ -198,4 +198,4 @@ in the packet header structure
.Dv lwres_lwpacket_t
indicate that the packet is not a response to an earlier query.
.Sh SEE ALSO
-.Xr lwres_packet 3
+.Xr lwres_packet 3
diff --git a/doc/man/lwres/lwres_gnbarequest_free.3 b/doc/man/lwres/lwres_gnbarequest_free.3
index 5212f560d4..6557e2e039 100644
--- a/doc/man/lwres/lwres_gnbarequest_free.3
+++ b/doc/man/lwres/lwres_gnbarequest_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbarequest_free.3,v 1.2 2000/07/27 09:45:08 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbarequest_free.3,v 1.3 2000/08/01 01:21:30 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_gnbarequest_parse.3 b/doc/man/lwres/lwres_gnbarequest_parse.3
index 1c3bf275f0..288581aa70 100644
--- a/doc/man/lwres/lwres_gnbarequest_parse.3
+++ b/doc/man/lwres/lwres_gnbarequest_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbarequest_parse.3,v 1.2 2000/07/27 09:45:09 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbarequest_parse.3,v 1.3 2000/08/01 01:21:31 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_gnbarequest_render.3 b/doc/man/lwres/lwres_gnbarequest_render.3
index 980a8dea1a..fbfed7f156 100644
--- a/doc/man/lwres/lwres_gnbarequest_render.3
+++ b/doc/man/lwres/lwres_gnbarequest_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbarequest_render.3,v 1.2 2000/07/27 09:45:10 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbarequest_render.3,v 1.3 2000/08/01 01:21:33 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_gnbaresponse_free.3 b/doc/man/lwres/lwres_gnbaresponse_free.3
index e5d76319b2..682aa01c71 100644
--- a/doc/man/lwres/lwres_gnbaresponse_free.3
+++ b/doc/man/lwres/lwres_gnbaresponse_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbaresponse_free.3,v 1.2 2000/07/27 09:45:11 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbaresponse_free.3,v 1.3 2000/08/01 01:21:34 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_gnbaresponse_parse.3 b/doc/man/lwres/lwres_gnbaresponse_parse.3
index bd18d82a90..f713f0d4dd 100644
--- a/doc/man/lwres/lwres_gnbaresponse_parse.3
+++ b/doc/man/lwres/lwres_gnbaresponse_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbaresponse_parse.3,v 1.2 2000/07/27 09:45:13 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbaresponse_parse.3,v 1.3 2000/08/01 01:21:35 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_gnbaresponse_render.3 b/doc/man/lwres/lwres_gnbaresponse_render.3
index 0befce742f..133808779e 100644
--- a/doc/man/lwres/lwres_gnbaresponse_render.3
+++ b/doc/man/lwres/lwres_gnbaresponse_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_gnbaresponse_render.3,v 1.2 2000/07/27 09:45:14 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_gnbaresponse_render.3,v 1.3 2000/08/01 01:21:36 tale Exp $
+.\"
.so lwres_gnba.3
diff --git a/doc/man/lwres/lwres_herror.3 b/doc/man/lwres/lwres_herror.3
index 2c6ff76502..644c5e6f4b 100644
--- a/doc/man/lwres/lwres_herror.3
+++ b/doc/man/lwres/lwres_herror.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_herror.3,v 1.2 2000/07/27 09:45:15 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_herror.3,v 1.3 2000/08/01 01:21:37 tale Exp $
+.\"
.so lwres_hstrerror.3
diff --git a/doc/man/lwres/lwres_hstrerror.3 b/doc/man/lwres/lwres_hstrerror.3
index 9833b8caee..8e922c8442 100644
--- a/doc/man/lwres/lwres_hstrerror.3
+++ b/doc/man/lwres/lwres_hstrerror.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_hstrerror.3,v 1.2 2000/07/27 09:45:16 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_hstrerror.3,v 1.3 2000/08/01 01:21:38 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_ERROR 3
.Os BIND9 9
@@ -25,7 +25,7 @@
.Nd lightweight resolver error message generation
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft void
.Fo lwres_herror
.Fa "const char *s"
@@ -63,7 +63,7 @@ The values of the error codes and messages are as follows:
.Sh RETURN VALUES
The string \*qUnknown resolver error\*q is returned by
.Fn lwres_hstrerror
-when the value of
+when the value of
.Li lwres_h_errno
is not a valid error code.
.Sh SEE ALSO
diff --git a/doc/man/lwres/lwres_inetaton.3 b/doc/man/lwres/lwres_inetaton.3
index 268548a6dc..75658a149a 100644
--- a/doc/man/lwres/lwres_inetaton.3
+++ b/doc/man/lwres/lwres_inetaton.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_inetaton.3,v 1.2 2000/07/27 09:45:18 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_inetaton.3,v 1.3 2000/08/01 01:21:39 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_INETATON 3
.Os BIND9 9
@@ -25,7 +25,7 @@
.Sh SYNOPSIS
.Fd #include
.Fd #include
-.Fd
+.Fd
.Ft int
.Fo lwres_net_aton
.Fa "const char *cp"
@@ -65,8 +65,8 @@ a leading 0x or 0X implies hex; a decimal number is assumed otherwise.
.Pp
If a one-part address is given, its value is placed in the network
address without any byte rearrangement.
-When a two-part address -
-.Li a.b -
+When a two-part address -
+.Li a.b -
is supplied, the last part is considered a 24-bit quantity and placed
in the bottom 3 bytes of
.Li addr->s_addr .
diff --git a/doc/man/lwres/lwres_inetntop.3 b/doc/man/lwres/lwres_inetntop.3
index b245ce50be..c69fdfc75d 100644
--- a/doc/man/lwres/lwres_inetntop.3
+++ b/doc/man/lwres/lwres_inetntop.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_inetntop.3,v 1.2 2000/07/27 09:45:19 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_inetntop.3,v 1.3 2000/08/01 01:21:41 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_INETNTOP 3
.Os BIND9 9
@@ -24,7 +24,7 @@
.Nd lightweight resolver IP address presentation
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft const char *
.Fo lwres_net_ntop
.Fa "int af"
@@ -35,7 +35,7 @@
.Sh DESCRIPTION
.Fn lwres_net_ntop
converts an IP address of protocol family
-.Fa af
+.Fa af
- IPv4 or IPv6 - at location
.Fa src
from network format to its conventional representation as a string.
diff --git a/doc/man/lwres/lwres_inetpton.3 b/doc/man/lwres/lwres_inetpton.3
index b5fd8b586e..d24625a1ef 100644
--- a/doc/man/lwres/lwres_inetpton.3
+++ b/doc/man/lwres/lwres_inetpton.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_inetpton.3,v 1.2 2000/07/27 09:45:20 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_inetpton.3,v 1.3 2000/08/01 01:21:42 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_INETPTON 3
.Os BIND9 9
@@ -24,7 +24,7 @@
.Nd lightweight resolver IP address conversion
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft int
.Fo lwres_net_pton
.Fa "int af"
@@ -37,7 +37,7 @@ converts the presentation format of an IP address
.Fa src
to its representation in network format.
.Fa af
-indicates the protocol family for the address
+indicates the protocol family for the address
.Dv PF_INET
or
.Dv PF_INET6
diff --git a/doc/man/lwres/lwres_lwpacket_parseheader.3 b/doc/man/lwres/lwres_lwpacket_parseheader.3
index 45daafec99..ebaada062e 100644
--- a/doc/man/lwres/lwres_lwpacket_parseheader.3
+++ b/doc/man/lwres/lwres_lwpacket_parseheader.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_lwpacket_parseheader.3,v 1.2 2000/07/27 09:45:22 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_lwpacket_parseheader.3,v 1.3 2000/08/01 01:21:43 tale Exp $
+.\"
.so lwres_packet.3
diff --git a/doc/man/lwres/lwres_lwpacket_renderheader.3 b/doc/man/lwres/lwres_lwpacket_renderheader.3
index 735268ac8b..b439d1f6c2 100644
--- a/doc/man/lwres/lwres_lwpacket_renderheader.3
+++ b/doc/man/lwres/lwres_lwpacket_renderheader.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_lwpacket_renderheader.3,v 1.2 2000/07/27 09:45:23 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_lwpacket_renderheader.3,v 1.3 2000/08/01 01:21:44 tale Exp $
+.\"
.so lwres_packet.3
diff --git a/doc/man/lwres/lwres_net_aton.3 b/doc/man/lwres/lwres_net_aton.3
index 6173183e0f..c6c40ad45e 100644
--- a/doc/man/lwres/lwres_net_aton.3
+++ b/doc/man/lwres/lwres_net_aton.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_net_aton.3,v 1.2 2000/07/27 09:45:24 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_net_aton.3,v 1.3 2000/08/01 01:21:45 tale Exp $
+.\"
.so lwres_inetaton.3
diff --git a/doc/man/lwres/lwres_net_ntop.3 b/doc/man/lwres/lwres_net_ntop.3
index ee38d8378f..8e14b35a25 100644
--- a/doc/man/lwres/lwres_net_ntop.3
+++ b/doc/man/lwres/lwres_net_ntop.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_net_ntop.3,v 1.2 2000/07/27 09:45:25 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_net_ntop.3,v 1.3 2000/08/01 01:21:46 tale Exp $
+.\"
.so lwres_inetntop.3
diff --git a/doc/man/lwres/lwres_net_pton.3 b/doc/man/lwres/lwres_net_pton.3
index 40c988a2e6..8d97eb974e 100644
--- a/doc/man/lwres/lwres_net_pton.3
+++ b/doc/man/lwres/lwres_net_pton.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_net_pton.3,v 1.2 2000/07/27 09:45:26 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_net_pton.3,v 1.3 2000/08/01 01:21:47 tale Exp $
+.\"
.so lwres_inetpton.3
diff --git a/doc/man/lwres/lwres_noop.3 b/doc/man/lwres/lwres_noop.3
index 4272c9fb79..3846f41bd1 100644
--- a/doc/man/lwres/lwres_noop.3
+++ b/doc/man/lwres/lwres_noop.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_noop.3,v 1.2 2000/07/27 09:45:28 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_noop.3,v 1.3 2000/08/01 01:21:48 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_NOOP 3
.Os BIND9 9
@@ -29,7 +29,7 @@
.Nd lightweight resolver no-op functions
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_nooprequest_render
.Fa "lwres_context_t *ctx"
@@ -132,7 +132,7 @@ uses context
.Fa ctx
to convert the contents of packet
.Fa pkt
-to a
+to a
.Dv lwres_nooprequest_t
structure.
Buffer
@@ -177,7 +177,7 @@ if memory allocation fails.
is returned if the available space in the buffer
.Fa b
is too small to accommodate the packet header or the
-.Dv lwres_nooprequest_t
+.Dv lwres_nooprequest_t
and
.Dv lwres_noopresponse_t
structures.
@@ -195,4 +195,4 @@ in the packet header structure
.Dv lwres_lwpacket_t
indicate that the packet is not a response to an earlier query.
.Sh SEE ALSO
-.Xr lwres_packet 3
+.Xr lwres_packet 3
diff --git a/doc/man/lwres/lwres_nooprequest_free.3 b/doc/man/lwres/lwres_nooprequest_free.3
index e7e8ab38fc..5750ec73d1 100644
--- a/doc/man/lwres/lwres_nooprequest_free.3
+++ b/doc/man/lwres/lwres_nooprequest_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_nooprequest_free.3,v 1.2 2000/07/27 09:45:29 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_nooprequest_free.3,v 1.3 2000/08/01 01:21:50 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_nooprequest_parse.3 b/doc/man/lwres/lwres_nooprequest_parse.3
index 2759d8afe7..2cd32707c9 100644
--- a/doc/man/lwres/lwres_nooprequest_parse.3
+++ b/doc/man/lwres/lwres_nooprequest_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_nooprequest_parse.3,v 1.2 2000/07/27 09:45:31 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_nooprequest_parse.3,v 1.3 2000/08/01 01:21:51 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_nooprequest_render.3 b/doc/man/lwres/lwres_nooprequest_render.3
index 3c4dc593b3..57ea067f09 100644
--- a/doc/man/lwres/lwres_nooprequest_render.3
+++ b/doc/man/lwres/lwres_nooprequest_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_nooprequest_render.3,v 1.2 2000/07/27 09:45:32 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_nooprequest_render.3,v 1.3 2000/08/01 01:21:52 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_noopresponse_free.3 b/doc/man/lwres/lwres_noopresponse_free.3
index 7cb18fb200..201c9702af 100644
--- a/doc/man/lwres/lwres_noopresponse_free.3
+++ b/doc/man/lwres/lwres_noopresponse_free.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_noopresponse_free.3,v 1.2 2000/07/27 09:45:33 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_noopresponse_free.3,v 1.3 2000/08/01 01:21:53 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_noopresponse_parse.3 b/doc/man/lwres/lwres_noopresponse_parse.3
index 12fc979723..5f6c437150 100644
--- a/doc/man/lwres/lwres_noopresponse_parse.3
+++ b/doc/man/lwres/lwres_noopresponse_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_noopresponse_parse.3,v 1.2 2000/07/27 09:45:34 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_noopresponse_parse.3,v 1.3 2000/08/01 01:21:54 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_noopresponse_render.3 b/doc/man/lwres/lwres_noopresponse_render.3
index 4b7545eb9f..b5e25864a0 100644
--- a/doc/man/lwres/lwres_noopresponse_render.3
+++ b/doc/man/lwres/lwres_noopresponse_render.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_noopresponse_render.3,v 1.2 2000/07/27 09:45:35 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_noopresponse_render.3,v 1.3 2000/08/01 01:21:55 tale Exp $
+.\"
.so lwres_noop.3
diff --git a/doc/man/lwres/lwres_packet.3 b/doc/man/lwres/lwres_packet.3
index 18c3a3dda2..ddab3c6590 100644
--- a/doc/man/lwres/lwres_packet.3
+++ b/doc/man/lwres/lwres_packet.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_packet.3,v 1.2 2000/07/27 09:45:38 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_packet.3,v 1.3 2000/08/01 01:21:56 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_PACKET 3
.Os BIND9 9
@@ -27,7 +27,7 @@
.Fd #include
.Fd #include
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_lwpacket_renderheader
.Fa "lwres_buffer_t *b"
@@ -72,7 +72,7 @@ is a request or a reply. Flag values can be set, but not defined by
the caller.
.It Li serial
is set by the requestor and is returned in all replies. If two or more
-packets from the same source have the same serial number and are from
+packets from the same source have the same serial number and are from
the same source, they are assumed to be duplicates and the latter ones
may be dropped.
.It Li opcode
@@ -82,7 +82,7 @@ reserved for use by the lightweight resolver library. Opcodes between
0x04000000 and 0xffffffff are application defined.
.It Li result
is only valid for replies.
-Results between 0x04000000 and 0xffffffff are application defined.
+Results between 0x04000000 and 0xffffffff are application defined.
Results between 0x00000000 and 0x03ffffff are reserved for library use.
.It Li recvlength
is the maximum buffer size that the receiver can handle on requests
@@ -140,6 +140,6 @@ return
If there is insufficient space to copy data between the buffer
.Fa *b
and lightweight resolver packet
-.Fa *pkt
+.Fa *pkt
both functions return
.Er LWRES_R_UNEXPECTEDEND .
diff --git a/doc/man/lwres/lwres_resutil.3 b/doc/man/lwres/lwres_resutil.3
index 3fb330dfb9..94f1262fbd 100644
--- a/doc/man/lwres/lwres_resutil.3
+++ b/doc/man/lwres/lwres_resutil.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,9 +12,9 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_resutil.3,v 1.2 2000/07/27 09:45:39 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_resutil.3,v 1.3 2000/08/01 01:21:57 tale Exp $
+.\"
.Dd Jun 30, 2000
.Dt LWRES_RESUTIL 3
.Os BIND9 9
@@ -27,7 +27,7 @@
.Nd lightweight resolver utility functions
.Sh SYNOPSIS
.Fd #include
-.Fd
+.Fd
.Ft lwres_result_t
.Fo lwres_string_parse
.Fa "lwres_buffer_t *b"
@@ -68,7 +68,7 @@ and the length of that string is given by
.Fa *len .
The buffer's current pointer is advanced to point at the character
following the string length, the encoded string, and the trailing
-.Dv NULL
+.Dv NULL
character.
.Fn lwres_string_parse
has an assertion check that
@@ -117,7 +117,7 @@ typedef struct {
.Ed
The contents of this structure are not manipulated directly but
they are controlled through the
-.Xr lwres_gabn 3
+.Xr lwres_gabn 3
functions.
.Pp
The lightweight resolver uses
@@ -139,7 +139,7 @@ Results of the lookup are returned in
.Fa *structp .
.Fn lwres_getaddrsbyname
checks that its pointer arguments are not
-.Dv NULL
+.Dv NULL
and that
.Fa addrtypes
is non-zero.
@@ -165,8 +165,8 @@ Like
.Fn lwres_getaddrsbyname ,
.Fn lwres_getnamebyaddr
uses assertion checking to ensure its pointer arguments are not
-.Dv NULL
-and
+.Dv NULL
+and
.Fa addrtype
is not zero.
.Fn lwres_getaddrsbyname
diff --git a/doc/man/lwres/lwres_sethostent.3 b/doc/man/lwres/lwres_sethostent.3
index 69f0ee5a08..08f1beebd6 100644
--- a/doc/man/lwres/lwres_sethostent.3
+++ b/doc/man/lwres/lwres_sethostent.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_sethostent.3,v 1.2 2000/07/27 09:45:40 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_sethostent.3,v 1.3 2000/08/01 01:21:58 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_sethostent_r.3 b/doc/man/lwres/lwres_sethostent_r.3
index 1dc1f12662..b728e84626 100644
--- a/doc/man/lwres/lwres_sethostent_r.3
+++ b/doc/man/lwres/lwres_sethostent_r.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_sethostent_r.3,v 1.2 2000/07/27 09:45:41 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_sethostent_r.3,v 1.3 2000/08/01 01:21:59 tale Exp $
+.\"
.so lwres_gethostent.3
diff --git a/doc/man/lwres/lwres_string_parse.3 b/doc/man/lwres/lwres_string_parse.3
index da30657d05..57e97edb63 100644
--- a/doc/man/lwres/lwres_string_parse.3
+++ b/doc/man/lwres/lwres_string_parse.3
@@ -1,9 +1,9 @@
.\" Copyright (C) 2000 Internet Software Consortium.
-.\"
+.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
-.\"
+.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
.\" DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -12,7 +12,7 @@
.\" FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
.\" NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
.\" WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-.\"
-.\" $Id: lwres_string_parse.3,v 1.2 2000/07/27 09:45:43 tale Exp $
-.\"
+.\"
+.\" $Id: lwres_string_parse.3,v 1.3 2000/08/01 01:22:01 tale Exp $
+.\"
.so lwres_resutil.3
diff --git a/doc/misc/options b/doc/misc/options
index dfe3b8a633..9b762fcb58 100644
--- a/doc/misc/options
+++ b/doc/misc/options
@@ -1,7 +1,7 @@
Copyright (C) 2000 Internet Software Consortium.
See COPYRIGHT in the source root or http://www.isc.org/copyright for terms.
-$Id: options,v 1.31 2000/07/12 15:55:10 gson Exp $
+$Id: options,v 1.32 2000/08/01 01:22:02 tale Exp $
This is a summary of the implementation status of the various named.conf
options in BIND 9.
@@ -12,7 +12,7 @@ Legend:
No Not implemented, may be implemented in a later release.
- Obsolete Obsolete, not applicable to BIND 9, or just evil.
+ Obsolete Obsolete, not applicable to BIND 9, or just evil.
Will not be implemented.
* New in BIND 9.
@@ -24,9 +24,9 @@ Legend:
% The default value has changed since BIND 8.
@ Semantics of certain pathological address match lists, in
- particular those involving double negation, have changed.
+ particular those involving double negation, have changed.
The new semantics are generally safer. IPv6 addresses
- are supported, but the predefined ACLs "localhost" and
+ are supported, but the predefined ACLs "localhost" and
"localnets" match IPv4 addresses only.
# BIND 9 accepts both LF and CRLF as end-of-line markers.
@@ -128,7 +128,7 @@ server ip_addr {
trusted-keys Yes
-zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
+zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
type master; Yes
file path_name; Yes
[ forward ( only | first ); ] No
@@ -146,11 +146,11 @@ zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
[ pubkey number number number string; ] No
};
-zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
+zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
type stub; No
};
-zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
+zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
type slave; Yes
[ file path_name; ] Yes
[ ixfr-base path_name; ] Obsolete
@@ -174,11 +174,11 @@ zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
[ pubkey number number number string; ] No
};
-zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
+zone "domain_name" [ ( in | hs | hesiod | chaos ) ] {
type forward; No
};
-zone "." [ ( in | hs | hesiod | chaos ) ] {
+zone "." [ ( in | hs | hesiod | chaos ) ] {
type hint; Yes
file path_name; Yes
[ check-names ( warn | fail | ignore ); ] No
diff --git a/install-sh b/install-sh
index ebc66913e9..058b26c82d 100755
--- a/install-sh
+++ b/install-sh
@@ -115,7 +115,7 @@ fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
-
+
if [ -d $dst ]; then
instcmd=:
else
@@ -124,7 +124,7 @@ if [ x"$dir_arg" != x ]; then
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
-# might cause directories to be created, which would be especially bad
+# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
@@ -134,7 +134,7 @@ else
echo "install: $src does not exist"
exit 1
fi
-
+
if [ x"$dst" = x ]
then
echo "install: no destination specified"
@@ -162,7 +162,7 @@ dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
-defaultIFS='
+defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
@@ -201,17 +201,17 @@ else
# If we're going to rename the final executable, determine the name now.
- if [ x"$transformarg" = x ]
+ if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
- dstfile=`basename $dst $transformbasename |
+ dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
- if [ x"$dstfile" = x ]
+ if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
@@ -242,7 +242,7 @@ else
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
- $doit $mvcmd $dsttmp $dstdir/$dstfile
+ $doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
diff --git a/isc-config.sh.in b/isc-config.sh.in
index 2e1b45f28d..2bee1abdb9 100644
--- a/isc-config.sh.in
+++ b/isc-config.sh.in
@@ -1,11 +1,11 @@
#!/bin/sh
#
# Copyright (C) 2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: isc-config.sh.in,v 1.5 2000/07/27 09:36:22 tale Exp $
+# $Id: isc-config.sh.in,v 1.6 2000/08/01 01:11:05 tale Exp $
prefix=@prefix@
exec_prefix=@exec_prefix@
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 2486752295..07c3ec1528 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.10 2000/07/27 09:45:44 tale Exp $
+# $Id: Makefile.in,v 1.11 2000/08/01 01:22:03 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/Makefile.in b/lib/dns/Makefile.in
index a939f54648..052fade1f5 100644
--- a/lib/dns/Makefile.in
+++ b/lib/dns/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.95 2000/07/31 19:44:12 bwelling Exp $
+# $Id: Makefile.in,v 1.96 2000/08/01 01:22:05 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/a6.c b/lib/dns/a6.c
index 239f441884..b1907d97bf 100644
--- a/lib/dns/a6.c
+++ b/lib/dns/a6.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: a6.c,v 1.15 2000/07/27 09:45:48 tale Exp $ */
+/* $Id: a6.c,v 1.16 2000/08/01 01:22:06 tale Exp $ */
#include
@@ -55,7 +55,7 @@ foreach(dns_a6context_t *a6ctx, dns_rdataset_t *parent, unsigned int depth,
expiration = a6ctx->now + parent->ttl;
if (expiration < a6ctx->expiration || a6ctx->expiration == 0)
a6ctx->expiration = expiration;
-
+
depth++;
result = dns_rdataset_first(parent);
while (result == ISC_R_SUCCESS) {
diff --git a/lib/dns/acl.c b/lib/dns/acl.c
index 3242645b8a..5215974a7f 100644
--- a/lib/dns/acl.c
+++ b/lib/dns/acl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: acl.c,v 1.12 2000/07/27 09:45:49 tale Exp $ */
+/* $Id: acl.c,v 1.13 2000/08/01 01:22:07 tale Exp $ */
#include
@@ -35,7 +35,7 @@ dns_acl_create(isc_mem_t *mctx, int n, dns_acl_t **target) {
*/
if (n == 0)
n = 1;
-
+
acl = isc_mem_get(mctx, sizeof(*acl));
if (acl == NULL)
return (ISC_R_NOMEMORY);
@@ -45,12 +45,12 @@ dns_acl_create(isc_mem_t *mctx, int n, dns_acl_t **target) {
acl->elements = NULL;
acl->alloc = 0;
acl->length = 0;
-
+
ISC_LINK_INIT(acl, nextincache);
/*
* Must set magic early because we use dns_acl_detach() to clean up.
*/
- acl->magic = DNS_ACL_MAGIC;
+ acl->magic = DNS_ACL_MAGIC;
acl->elements = isc_mem_get(mctx, n * sizeof(dns_aclelement_t));
if (acl->elements == NULL) {
@@ -94,10 +94,10 @@ dns_acl_appendelement(dns_acl_t *acl, dns_aclelement_t *elt) {
* Append the new element.
*/
acl->elements[acl->length++] = *elt;
-
+
return (ISC_R_SUCCESS);
}
-
+
static isc_result_t
dns_acl_anyornone(isc_mem_t *mctx, isc_boolean_t neg, dns_acl_t **target) {
isc_result_t result;
@@ -136,25 +136,25 @@ dns_acl_match(isc_netaddr_t *reqaddr,
REQUIRE(reqaddr != NULL);
REQUIRE(matchelt == NULL || *matchelt == NULL);
-
+
for (i = 0; i < acl->length; i++) {
dns_aclelement_t *e = &acl->elements[i];
dns_acl_t *inner = NULL;
-
+
switch (e->type) {
case dns_aclelementtype_ipprefix:
if (isc_netaddr_eqprefix(reqaddr,
- &e->u.ip_prefix.address,
+ &e->u.ip_prefix.address,
e->u.ip_prefix.prefixlen))
goto matched;
break;
-
+
case dns_aclelementtype_keyname:
if (reqsigner != NULL &&
dns_name_equal(reqsigner, &e->u.keyname))
goto matched;
break;
-
+
case dns_aclelementtype_nestedacl:
inner = e->u.nestedacl;
nested:
@@ -167,7 +167,7 @@ dns_acl_match(isc_netaddr_t *reqaddr,
/*
* Treat negative matches in indirect ACLs as
* "no match".
- * That way, a negated indirect ACL will never become
+ * That way, a negated indirect ACL will never become
* a surprise positive match through double negation.
* XXXDCL this should be documented.
*/
@@ -196,7 +196,7 @@ dns_acl_match(isc_netaddr_t *reqaddr,
} else {
break;
}
-
+
case dns_aclelementtype_localnets:
if (env != NULL && env->localnets != NULL) {
inner = env->localnets;
@@ -204,7 +204,7 @@ dns_acl_match(isc_netaddr_t *reqaddr,
} else {
break;
}
-
+
default:
INSIST(0);
break;
diff --git a/lib/dns/aclconf.c b/lib/dns/aclconf.c
index a489d69999..b00826a7ea 100644
--- a/lib/dns/aclconf.c
+++ b/lib/dns/aclconf.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: aclconf.c,v 1.19 2000/07/27 09:45:50 tale Exp $ */
+/* $Id: aclconf.c,v 1.20 2000/08/01 01:22:08 tale Exp $ */
#include
@@ -34,7 +34,7 @@ dns_aclconfctx_init(dns_aclconfctx_t *ctx) {
void
dns_aclconfctx_destroy(dns_aclconfctx_t *ctx) {
- dns_acl_t *dacl, *next;
+ dns_acl_t *dacl, *next;
for (dacl = ISC_LIST_HEAD(ctx->named_acl_cache);
dacl != NULL;
dacl = next)
@@ -103,7 +103,7 @@ convert_keyname(char *txtname, isc_mem_t *mctx, dns_name_t *dnsname) {
}
return (dns_name_dup(dns_fixedname_name(&fixname), mctx, dnsname));
}
-
+
isc_result_t
dns_acl_fromconfig(dns_c_ipmatchlist_t *caml,
dns_c_ctx_t *cctx,
@@ -118,7 +118,7 @@ dns_acl_fromconfig(dns_c_ipmatchlist_t *caml,
dns_c_ipmatchelement_t *ce;
REQUIRE(target != NULL && *target == NULL);
-
+
count = 0;
for (ce = ISC_LIST_HEAD(caml->elements);
ce != NULL;
@@ -128,7 +128,7 @@ dns_acl_fromconfig(dns_c_ipmatchlist_t *caml,
result = dns_acl_create(mctx, count, &dacl);
if (result != ISC_R_SUCCESS)
return (result);
-
+
de = dacl->elements;
for (ce = ISC_LIST_HEAD(caml->elements);
ce != NULL;
@@ -192,7 +192,7 @@ dns_acl_fromconfig(dns_c_ipmatchlist_t *caml,
*target = dacl;
return (ISC_R_SUCCESS);
-
+
cleanup:
dns_acl_detach(&dacl);
return (result);
diff --git a/lib/dns/adb.c b/lib/dns/adb.c
index 3d4499ae4e..93bdd29ca6 100644
--- a/lib/dns/adb.c
+++ b/lib/dns/adb.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: adb.c,v 1.143 2000/07/27 09:45:52 tale Exp $ */
+/* $Id: adb.c,v 1.144 2000/08/01 01:22:09 tale Exp $ */
/*
* Implementation notes
@@ -578,7 +578,7 @@ import_a6(dns_a6context_t *a6ctx) {
addr_bucket = DNS_ADB_INVALIDBUCKET;
DP(ENTER_LEVEL, "ENTER: import_a6() name %p", name);
-
+
nh = new_adbnamehook(adb, NULL);
if (nh == NULL) {
name->partial_result |= DNS_ADBFIND_INET6; /* clear for AAAA */
@@ -873,11 +873,11 @@ cancel_fetches_at_name(dns_adbname_t *name) {
if (NAME_FETCH_A(name))
dns_resolver_cancelfetch(name->fetch_a->fetch);
-
+
if (NAME_FETCH_AAAA(name))
dns_resolver_cancelfetch(name->fetch_aaaa->fetch);
-
+
fetch6 = ISC_LIST_HEAD(name->fetches_a6);
while (fetch6 != NULL) {
@@ -1522,7 +1522,7 @@ a6find(void *arg, dns_name_t *a6name, dns_rdatatype_t type, isc_stdtime_t now,
INSIST(DNS_ADBNAME_VALID(name));
adb = name->adb;
INSIST(DNS_ADB_VALID(adb));
-
+
return (dns_view_simplefind(adb->view, a6name, type, now,
DNS_DBFIND_GLUEOK, ISC_FALSE,
rdataset, sigrdataset));
@@ -1537,7 +1537,7 @@ a6missing(dns_a6context_t *a6ctx, dns_name_t *a6name) {
dns_adb_t *adb;
dns_adbfetch6_t *fetch;
isc_result_t result;
-
+
name = a6ctx->arg;
INSIST(DNS_ADBNAME_VALID(name));
adb = name->adb;
@@ -1803,7 +1803,7 @@ entry_is_bad_for_zone(dns_adb_t *adb, dns_adbentry_t *entry, dns_name_t *zone,
zi = next_zi;
}
-
+
return (is_bad);
}
@@ -1964,7 +1964,7 @@ check_expire_entry(dns_adb_t *adb, dns_adbentry_t **entryp, isc_stdtime_t now)
return;
if (entry->expires == 0 || entry->expires > now)
return;
-
+
/*
* The entry is not in use. Delete it.
*/
@@ -2238,7 +2238,7 @@ dns_adb_create(isc_mem_t *mem, dns_view_t *view, isc_timermgr_t *timermgr,
isc_task_setname(adb->task, "ADB", adb);
/*
* XXXMLG When this is changed to be a config file option,
- */
+ */
isc_interval_set(&adb->tick_interval, CLEAN_SECONDS, 0);
result = isc_timer_create(adb->timermgr, isc_timertype_once,
NULL, &adb->tick_interval, adb->task,
@@ -2351,7 +2351,7 @@ dns_adb_whenshutdown(dns_adb_t *adb, isc_task_t *task, isc_event_t **eventp) {
else
zeroirefcnt = ISC_FALSE;
UNLOCK(&adb->ilock);
-
+
if (adb->shutting_down && zeroirefcnt &&
isc_mempool_getallocated(adb->ahmp) == 0) {
/*
@@ -2365,7 +2365,7 @@ dns_adb_whenshutdown(dns_adb_t *adb, isc_task_t *task, isc_event_t **eventp) {
event->ev_sender = clone;
ISC_LIST_APPEND(adb->whenshutdown, event, ev_link);
}
-
+
UNLOCK(&adb->lock);
}
@@ -3441,7 +3441,7 @@ fetch_callback_a6(isc_task_t *task, isc_event_t *ev) {
ISC_LIST_UNLINK(name->fetches_a6, fetch, plink);
DP(ENTER_LEVEL, "ENTER: fetch_callback_a6() name %p", name);
-
+
dns_resolver_destroyfetch(&fetch->fetch);
dev->fetch = NULL;
@@ -3615,7 +3615,7 @@ fetch_name_v4(dns_adbname_t *adbname, isc_boolean_t start_at_root) {
name = NULL;
nameservers = NULL;
dns_rdataset_init(&rdataset);
-
+
if (start_at_root) {
DP(50, "fetch_name_v4: starting at DNS root for name %p",
adbname);
@@ -3952,7 +3952,7 @@ dns_adb_freeaddrinfo(dns_adb_t *adb, dns_adbaddrinfo_t **addrp) {
isc_stdtime_get(&now);
*addrp = NULL;
-
+
bucket = addr->entry->lock_bucket;
LOCK(&adb->entrylocks[bucket]);
diff --git a/lib/dns/byaddr.c b/lib/dns/byaddr.c
index b25e0bd121..19b4736ce5 100644
--- a/lib/dns/byaddr.c
+++ b/lib/dns/byaddr.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: byaddr.c,v 1.17 2000/07/27 09:45:53 tale Exp $ */
+/* $Id: byaddr.c,v 1.18 2000/08/01 01:22:11 tale Exp $ */
#include
@@ -64,7 +64,7 @@ struct dns_byaddr {
static void byaddr_find(dns_byaddr_t *byaddr, dns_fetchevent_t *event);
static char hex_digits[] = {
- '0', '1', '2', '3', '4', '5', '6', '7',
+ '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
};
@@ -139,7 +139,7 @@ copy_ptr_targets(dns_byaddr_t *byaddr) {
/*
* The caller must be holding the byaddr's lock.
*/
-
+
result = dns_rdataset_first(&byaddr->rdataset);
while (result == ISC_R_SUCCESS) {
dns_rdataset_current(&byaddr->rdataset, &rdata);
@@ -161,7 +161,7 @@ copy_ptr_targets(dns_byaddr_t *byaddr) {
}
if (result == ISC_R_NOMORE)
result = ISC_R_SUCCESS;
-
+
return (result);
}
@@ -420,7 +420,7 @@ dns_byaddr_create(isc_mem_t *mctx, isc_netaddr_t *address, dns_view_t *view,
byaddr->canceled = ISC_FALSE;
dns_rdataset_init(&byaddr->rdataset);
byaddr->magic = BYADDR_MAGIC;
-
+
*byaddrp = byaddr;
byaddr_find(byaddr, NULL);
diff --git a/lib/dns/cache.c b/lib/dns/cache.c
index f261535099..aa8c859d31 100644
--- a/lib/dns/cache.c
+++ b/lib/dns/cache.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cache.c,v 1.25 2000/07/27 09:45:54 tale Exp $ */
+/* $Id: cache.c,v 1.26 2000/08/01 01:22:12 tale Exp $ */
#include
@@ -41,7 +41,7 @@
/*
* A cache_cleaner_t encapsulsates the state of the periodic
- * cache cleaning.
+ * cache cleaning.
*/
typedef struct cache_cleaner cache_cleaner_t;
@@ -67,17 +67,17 @@ struct cache_cleaner {
unsigned int cleaning_interval; /* The cleaning-interval from
named.conf, in seconds. */
isc_timer_t *cleaning_timer;
- isc_event_t *resched_event; /* Sent by cleaner task to
+ isc_event_t *resched_event; /* Sent by cleaner task to
itself to reschedule */
dns_dbiterator_t *iterator;
- int increment; /* Number of names to
+ int increment; /* Number of names to
clean in one increment */
cleaner_state_t state; /* Idle/Busy. */
};
/*
- * The actual cache object.
+ * The actual cache object.
*/
struct dns_cache {
@@ -89,12 +89,12 @@ struct dns_cache {
/* Locked by 'lock'. */
int references;
- int live_tasks;
+ int live_tasks;
dns_rdataclass_t rdclass;
dns_db_t *db;
cache_cleaner_t cleaner;
- /* Locked by 'filelock'. */
+ /* Locked by 'filelock'. */
char * filename;
/* Access to the on-disk cache file is also locked by 'filelock'. */
};
@@ -117,7 +117,7 @@ incremental_cleaning_action(isc_task_t *task, isc_event_t *event);
static void
cleaner_shutdown_action(isc_task_t *task, isc_event_t *event);
-isc_result_t
+isc_result_t
dns_cache_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
isc_timermgr_t *timermgr, dns_rdataclass_t rdclass,
const char *db_type, unsigned int db_argc, char **db_argv,
@@ -157,8 +157,8 @@ dns_cache_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
if (result != ISC_R_SUCCESS)
goto cleanup_mutex;
- cache->filename = NULL;
-
+ cache->filename = NULL;
+
cache->magic = CACHE_MAGIC;
result = cache_cleaner_init(cache, taskmgr, timermgr,
@@ -179,7 +179,7 @@ dns_cache_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
return (result);
}
-static void
+static void
cache_free(dns_cache_t *cache) {
isc_mem_t *mctx;
@@ -204,11 +204,11 @@ cache_free(dns_cache_t *cache) {
dns_db_detach(&cache->db);
isc_mutex_destroy(&cache->lock);
- cache->magic = 0;
+ cache->magic = 0;
mctx = cache->mctx;
- isc_mem_put(cache->mctx, cache, sizeof *cache);
+ isc_mem_put(cache->mctx, cache, sizeof *cache);
isc_mem_detach(&mctx);
-}
+}
void
@@ -267,11 +267,11 @@ dns_cache_setfilename(dns_cache_t *cahce, char *filename) {
char *newname = isc_mem_strdup(filename);
if (newname == NULL)
return (ISC_R_NOMEMORY);
- LOCK(&cache->filelock);
+ LOCK(&cache->filelock);
if (cache->filename)
isc_mem_free(cache->mctx, cache->filename);
cache->filename = newname;
- UNLOCK(&cache->filelock);
+ UNLOCK(&cache->filelock);
return (ISC_R_SUCCESS);
}
@@ -283,7 +283,7 @@ dns_cache_load(dns_cache_t *cache) {
LOCK(&cache->filelock);
/* XXX handle TTLs in a way appropriate for the cache */
result = dns_db_load(cache->db, cache->filename);
- UNLOCK(&cache->filelock);
+ UNLOCK(&cache->filelock);
return (result);
}
@@ -310,16 +310,16 @@ dns_cache_setcleaninginterval(dns_cache_t *cache, unsigned int t) {
isc_timertype_ticker,
NULL, &interval, ISC_FALSE);
}
- UNLOCK(&cache->lock);
+ UNLOCK(&cache->lock);
}
/*
- * Initialize the cache cleaner object at *cleaner.
+ * Initialize the cache cleaner object at *cleaner.
* Space for the object must be allocated by the caller.
*/
static isc_result_t
-cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
+cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
isc_timermgr_t *timermgr, cache_cleaner_t *cleaner)
{
isc_result_t result;
@@ -328,11 +328,11 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
cleaner->state = cleaner_s_idle;
cleaner->cache = cache;
cleaner->iterator = NULL;
-
+
cleaner->task = NULL;
cleaner->cleaning_timer = NULL;
cleaner->resched_event = NULL;
-
+
if (taskmgr != NULL && timermgr != NULL) {
result = isc_task_create(taskmgr, 1, &cleaner->task);
if (result != ISC_R_SUCCESS) {
@@ -354,7 +354,7 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
dns_result_totext(result));
goto cleanup;
}
-
+
cleaner->cleaning_interval = 0; /* Initially turned off. */
result = isc_timer_create(timermgr, isc_timertype_inactive,
NULL, NULL,
@@ -368,7 +368,7 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
result = ISC_R_UNEXPECTED;
goto cleanup;
}
-
+
cleaner->resched_event =
isc_event_allocate(cache->mctx, cleaner,
DNS_EVENT_CACHECLEAN,
@@ -379,9 +379,9 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
goto cleanup;
}
}
-
+
return (ISC_R_SUCCESS);
-
+
cleanup:
if (cleaner->cleaning_timer != NULL)
isc_timer_detach(&cleaner->cleaning_timer);
@@ -430,7 +430,7 @@ begin_cleaning(cache_cleaner_t *cleaner) {
return;
destroyiter:
- dns_dbiterator_destroy(&cleaner->iterator);
+ dns_dbiterator_destroy(&cleaner->iterator);
idle:
ENSURE(CLEANER_IDLE(cleaner));
return;
@@ -516,9 +516,9 @@ incremental_cleaning_action(isc_task_t *task, isc_event_t *event) {
/*
* This is where the actual freeing takes place.
- */
+ */
dns_db_detachnode(cleaner->cache->db, &node);
-
+
/*
* Step to the next node.
*/
@@ -562,12 +562,12 @@ incremental_cleaning_action(isc_task_t *task, isc_event_t *event) {
* No longer busy; save the event for later use.
*/
end_cleaning(cleaner, event);
- INSIST(CLEANER_IDLE(cleaner));
+ INSIST(CLEANER_IDLE(cleaner));
return;
}
/*
- * Do immediate cleaning.
+ * Do immediate cleaning.
*/
isc_result_t
dns_cache_clean(dns_cache_t *cache, isc_stdtime_t now) {
@@ -577,7 +577,7 @@ dns_cache_clean(dns_cache_t *cache, isc_stdtime_t now) {
result = dns_db_createiterator(cache->db, ISC_FALSE, &iterator);
if (result != ISC_R_SUCCESS)
return result;
-
+
result = dns_dbiterator_first(iterator);
while (result == ISC_R_SUCCESS) {
@@ -603,7 +603,7 @@ dns_cache_clean(dns_cache_t *cache, isc_stdtime_t now) {
/*
* This is where the actual freeing takes place.
- */
+ */
dns_db_detachnode(cache->db, &node);
result = dns_dbiterator_next(iterator);
@@ -613,7 +613,7 @@ dns_cache_clean(dns_cache_t *cache, isc_stdtime_t now) {
if (result == ISC_R_NOMORE)
result = ISC_R_SUCCESS;
-
+
return result;
}
@@ -623,7 +623,7 @@ dns_cache_clean(dns_cache_t *cache, isc_stdtime_t now) {
static void
cleaner_shutdown_action(isc_task_t *task, isc_event_t *event) {
dns_cache_t *cache = event->ev_arg;
- isc_boolean_t should_free = ISC_FALSE;
+ isc_boolean_t should_free = ISC_FALSE;
UNUSED(task);
@@ -631,12 +631,12 @@ cleaner_shutdown_action(isc_task_t *task, isc_event_t *event) {
INSIST(event->ev_type == ISC_TASKEVENT_SHUTDOWN);
isc_event_free(&event);
-
+
cache->live_tasks--;
INSIST(cache->live_tasks == 0);
if (cache->references == 0)
- should_free = ISC_TRUE;
+ should_free = ISC_TRUE;
/*
* By detaching the timer in the context of its task,
@@ -648,7 +648,7 @@ cleaner_shutdown_action(isc_task_t *task, isc_event_t *event) {
/* Make sure we don't reschedule anymore. */
isc_task_purge(task, NULL, DNS_EVENT_CACHECLEAN, NULL);
-
+
UNLOCK(&cache->lock);
if (should_free)
diff --git a/lib/dns/callbacks.c b/lib/dns/callbacks.c
index 8abd93ba26..31ab74ecd7 100644
--- a/lib/dns/callbacks.c
+++ b/lib/dns/callbacks.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: callbacks.c,v 1.9 2000/07/27 09:45:55 tale Exp $ */
+/* $Id: callbacks.c,v 1.10 2000/08/01 01:22:13 tale Exp $ */
#include
@@ -50,7 +50,7 @@ isclog_error_callback(dns_rdatacallbacks_t *callbacks, const char *fmt, ...) {
va_list ap;
UNUSED(callbacks);
-
+
va_start(ap, fmt);
isc_log_vwrite(dns_lctx, DNS_LOGCATEGORY_GENERAL,
DNS_LOGMODULE_MASTER, /* XXX */
diff --git a/lib/dns/compress.c b/lib/dns/compress.c
index 1502bac4eb..76ebb094c4 100644
--- a/lib/dns/compress.c
+++ b/lib/dns/compress.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: compress.c,v 1.34 2000/07/27 09:45:56 tale Exp $ */
+/* $Id: compress.c,v 1.35 2000/08/01 01:22:14 tale Exp $ */
#define DNS_NAME_USEINLINE 1
@@ -230,7 +230,7 @@ unsigned int
dns_decompress_getmethods(dns_decompress_t *dctx) {
REQUIRE(VALID_DCTX(dctx));
-
+
return (dctx->allowed);
}
@@ -238,7 +238,7 @@ int
dns_decompress_edns(dns_decompress_t *dctx) {
REQUIRE(VALID_DCTX(dctx));
-
+
return (dctx->edns);
}
diff --git a/lib/dns/config/Makefile.in b/lib/dns/config/Makefile.in
index 43a8bd2147..06193dd2a5 100644
--- a/lib/dns/config/Makefile.in
+++ b/lib/dns/config/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.16 2000/07/27 09:46:55 tale Exp $
+# $Id: Makefile.in,v 1.17 2000/08/01 01:23:13 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
@@ -45,7 +45,7 @@ SRCS = confparser.c confcommon.c confacl.c confcache.c \
conflsn.c confndc.c confresolv.c confrrset.c \
confview.c confzone.c
-SUBDIRS =
+SUBDIRS =
TARGETS = ${OBJS}
@BIND9_MAKE_RULES@
@@ -56,7 +56,7 @@ TARGETS = ${OBJS}
## mv y.tab.c confparser.c
## mv y.tab.h confparser_p.h
-## This rule is here during development to help debugging.
+## This rule is here during development to help debugging.
## Remove and uncomment the rule above before release.
confparser.c: confparser.y
${YACC} -d ${srcdir}/confparser.y
diff --git a/lib/dns/config/confacl.c b/lib/dns/config/confacl.c
index 1929f604a8..5c8aecf3d9 100644
--- a/lib/dns/config/confacl.c
+++ b/lib/dns/config/confacl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confacl.c,v 1.19 2000/07/27 09:46:56 tale Exp $ */
+/* $Id: confacl.c,v 1.20 2000/08/01 01:23:14 tale Exp $ */
#include
@@ -32,7 +32,7 @@ acl_delete(dns_c_acl_t **aclptr);
isc_result_t
dns_c_acltable_new(isc_mem_t *mem, dns_c_acltable_t **newtable) {
dns_c_acltable_t *table;
-
+
REQUIRE(mem != NULL);
REQUIRE(newtable != NULL);
@@ -61,7 +61,7 @@ dns_c_acltable_delete(dns_c_acltable_t **table) {
REQUIRE(table != NULL);
REQUIRE(*table != NULL);
-
+
acltable = *table;
REQUIRE(DNS_C_CONFACLTABLE_VALID(acltable));
@@ -69,11 +69,11 @@ dns_c_acltable_delete(dns_c_acltable_t **table) {
dns_c_acltable_clear(acltable);
mem = acltable->mem;
-
+
acltable->magic = 0;
acltable->mem = NULL;
-
-
+
+
isc_mem_put(mem, acltable, sizeof *acltable);
return (ISC_R_SUCCESS);
@@ -90,13 +90,13 @@ dns_c_acltable_print(FILE *fp, int indent, dns_c_acltable_t *table) {
if (table == NULL) {
return;
}
-
+
REQUIRE(DNS_C_CONFACLTABLE_VALID(table));
-
+
acl = ISC_LIST_HEAD(table->acl_list);
while (acl != NULL) {
acltmp = ISC_LIST_NEXT(acl, next);
-
+
if (!acl->is_special) { /* don't print specials */
dns_c_acl_print(fp, indent, acl);
fprintf(fp, "\n");
@@ -111,14 +111,14 @@ dns_c_acltable_clear(dns_c_acltable_t *table) {
dns_c_acl_t *elem;
dns_c_acl_t *tmpelem;
isc_result_t r;
-
+
REQUIRE(DNS_C_CONFACLTABLE_VALID(table));
-
+
elem = ISC_LIST_HEAD(table->acl_list);
while (elem != NULL) {
tmpelem = ISC_LIST_NEXT(elem, next);
ISC_LIST_UNLINK(table->acl_list, elem, next);
-
+
r = acl_delete(&elem);
if (r != ISC_R_SUCCESS) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
@@ -154,7 +154,7 @@ dns_c_acltable_getacl(dns_c_acltable_t *table,
elem = ISC_LIST_NEXT(elem, next);
}
-
+
if (elem != NULL) {
REQUIRE(DNS_C_CONFACL_VALID(elem));
*retval = elem;
@@ -171,7 +171,7 @@ dns_c_acltable_removeacl(dns_c_acltable_t *table, const char *aclname) {
REQUIRE(DNS_C_CONFACLTABLE_VALID(table));
REQUIRE(aclname != NULL);
-
+
acl = ISC_LIST_HEAD(table->acl_list);
while (acl != NULL) {
tmpacl = ISC_LIST_NEXT(acl, next);
@@ -193,7 +193,7 @@ dns_c_acl_new(dns_c_acltable_t *table, const char *aclname,
isc_boolean_t isspecial, dns_c_acl_t **newacl)
{
dns_c_acl_t *acl;
-
+
REQUIRE(DNS_C_CONFACLTABLE_VALID(table));
REQUIRE(aclname != NULL);
REQUIRE(*aclname != '\0');
@@ -223,7 +223,7 @@ dns_c_acl_new(dns_c_acltable_t *table, const char *aclname,
}
ISC_LIST_APPEND(table->acl_list, acl, next);
-
+
*newacl = acl;
return (ISC_R_SUCCESS);
@@ -233,7 +233,7 @@ dns_c_acl_new(dns_c_acltable_t *table, const char *aclname,
void
dns_c_acl_print(FILE *fp, int indent, dns_c_acl_t *acl) {
REQUIRE(DNS_C_CONFACL_VALID(acl));
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "acl ");
if (acl->name == NULL) {
@@ -258,7 +258,7 @@ dns_c_acl_setipml(dns_c_acl_t *acl,
dns_c_ipmatchlist_t *ipml, isc_boolean_t deepcopy)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFACL_VALID(acl));
REQUIRE(ipml != NULL);
@@ -286,7 +286,7 @@ dns_c_acl_getipmlexpanded(isc_mem_t *mem, dns_c_acl_t *acl,
isc_result_t r;
REQUIRE(DNS_C_CONFACL_VALID(acl));
-
+
if (acl->ipml == NULL) {
newlist = NULL;
r = ISC_R_SUCCESS;
@@ -300,7 +300,7 @@ dns_c_acl_getipmlexpanded(isc_mem_t *mem, dns_c_acl_t *acl,
}
*retval = newlist;
-
+
return (r);
}
@@ -317,7 +317,7 @@ dns_c_acl_expandacls(dns_c_acltable_t *table, dns_c_ipmatchlist_t *list) {
isc_boolean_t isneg;
REQUIRE(DNS_C_CONFACLTABLE_VALID(table));
-
+
if (list == NULL) {
return (ISC_R_SUCCESS);
}
@@ -340,7 +340,7 @@ dns_c_acl_expandacls(dns_c_acltable_t *table, dns_c_ipmatchlist_t *list) {
if (acl->ipml != NULL) {
isneg = dns_c_ipmatchelement_isneg(elem);
- /* XXX I this should be inserted in place and
+ /* XXX I this should be inserted in place and
* not appended
*/
dns_c_ipmatchlist_append(list,
@@ -350,7 +350,7 @@ dns_c_acl_expandacls(dns_c_acltable_t *table, dns_c_ipmatchlist_t *list) {
default:
; /* Do nothing */
}
-
+
tmpelem = ISC_LIST_NEXT(elem, next);
if (elem->type == dns_c_ipmatch_acl) {
@@ -372,7 +372,7 @@ acl_delete(dns_c_acl_t **aclptr) {
REQUIRE(aclptr != NULL);
REQUIRE(*aclptr != NULL);
-
+
acl = *aclptr;
REQUIRE(DNS_C_CONFACL_VALID(acl));
@@ -380,18 +380,18 @@ acl_delete(dns_c_acl_t **aclptr) {
mem = acl->mytable->mem;
acl->mytable = NULL;
-
+
isc_mem_free(mem, acl->name);
if (acl->ipml != NULL)
res = dns_c_ipmatchlist_detach(&acl->ipml);
else
res = ISC_R_SUCCESS;
-
+
acl->magic = 0;
-
+
isc_mem_put(mem, acl, sizeof *acl);
-
+
return (res);
}
diff --git a/lib/dns/config/confcache.c b/lib/dns/config/confcache.c
index 432dc38ebe..8ce9fda1ef 100644
--- a/lib/dns/config/confcache.c
+++ b/lib/dns/config/confcache.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confcache.c,v 1.7 2000/07/27 09:46:57 tale Exp $ */
+/* $Id: confcache.c,v 1.8 2000/08/01 01:23:15 tale Exp $ */
#include
@@ -30,7 +30,7 @@ dns_c_cache_new(isc_mem_t *mem, dns_c_cache_t **cfgcache) {
(void) mem ; (void) cfgcache; /* lint */
/* XXX nothing yet */
-
+
return (ISC_R_SUCCESS);
}
@@ -43,5 +43,5 @@ dns_c_cache_delete(dns_c_cache_t **cfgcache) {
return (ISC_R_SUCCESS);
}
-
+
diff --git a/lib/dns/config/confcommon.c b/lib/dns/config/confcommon.c
index 3e72a9e552..920a59e1e0 100644
--- a/lib/dns/config/confcommon.c
+++ b/lib/dns/config/confcommon.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confcommon.c,v 1.33 2000/07/27 09:46:59 tale Exp $ */
+/* $Id: confcommon.c,v 1.34 2000/08/01 01:23:16 tale Exp $ */
#include
@@ -38,7 +38,7 @@
/***
*** TYPES
***/
-
+
#define ordering_nametable_size \
(sizeof (ordering_nametable) / sizeof (struct dns_c_pvt_ont))
static struct dns_c_pvt_ont {
@@ -66,7 +66,7 @@ static struct dns_c_pvt_lsnt {
{ dns_c_log_dynamic, "dynamic" }
};
-
+
static struct dsn_c_pvt_sfnt {
int val;
const char *strval;
@@ -93,14 +93,14 @@ static struct dsn_c_pvt_sfnt {
#ifdef LOG_FTP
{ LOG_FTP, "ftp" },
#endif
- { LOG_LOCAL0, "local0"},
- { LOG_LOCAL1, "local1"},
- { LOG_LOCAL2, "local2"},
- { LOG_LOCAL3, "local3"},
- { LOG_LOCAL4, "local4"},
- { LOG_LOCAL5, "local5"},
- { LOG_LOCAL6, "local6"},
- { LOG_LOCAL7, "local7"},
+ { LOG_LOCAL0, "local0"},
+ { LOG_LOCAL1, "local1"},
+ { LOG_LOCAL2, "local2"},
+ { LOG_LOCAL3, "local3"},
+ { LOG_LOCAL4, "local4"},
+ { LOG_LOCAL5, "local5"},
+ { LOG_LOCAL6, "local6"},
+ { LOG_LOCAL7, "local7"},
{ 0, NULL }
};
@@ -148,7 +148,7 @@ static const char *category_nametable[] = {
"xfer-in",
"xfer-out",
#endif
-
+
NULL
};
@@ -179,7 +179,7 @@ dns_c_printinunits(FILE *fp, isc_uint32_t val) {
/* XXXJAB These format strings may break if isc_offset_t is a large
enough type and val has a value greater than MAX_ULONG. I know
of no portablt solution to this. */
-
+
if (val == DNS_C_SIZE_SPEC_DEFAULT)
fprintf(fp, "default");
else if (val == 0)
@@ -203,7 +203,7 @@ dns_c_dataclass_tostream(FILE *fp, dns_rdataclass_t rclass) {
isc_buffer_t sourceb;
isc_buffer_init(&sourceb, buffer, sizeof(buffer));
-
+
if (dns_rdataclass_totext(rclass, &sourceb) == ISC_R_SUCCESS) {
INSIST(sourceb.used + 1 < sizeof(buffer));
buffer[sourceb.used] = '\0';
@@ -254,7 +254,7 @@ dns_c_string2ordering(char *name, dns_c_ordering_t *ordering) {
break;
}
}
-
+
return (rval);
}
@@ -303,7 +303,7 @@ dns_c_string2logseverity(const char *string,
isc_result_t rval = ISC_R_FAILURE;
REQUIRE(result != NULL);
-
+
for (i = 0 ; i < log_severity_nametable_size ; i++) {
if (strcmp(log_severity_nametable[i].strval, string) == 0) {
*result = log_severity_nametable[i].val;
@@ -344,7 +344,7 @@ dns_c_string2category(const char *string,
isc_result_t rval = ISC_R_FAILURE;
REQUIRE (category != NULL);
-
+
for (i = 0 ; i < category_nametable_size ; i++) {
if (strcmp(category_nametable[i].strval, string) == 0) {
*category = category_nametable[i].val;
@@ -370,7 +370,7 @@ dns_c_facility2string(int facility, isc_boolean_t printable) {
break;
}
}
-
+
return (rval == NULL && printable ? "UNKNOWN_FACILITY" : rval);
}
@@ -424,7 +424,7 @@ dns_c_transport2string(dns_c_trans_t transport,
case dns_trans_primary:
rval = "master";
break;
-
+
case dns_trans_secondary:
rval = "slave";
break;
@@ -533,9 +533,9 @@ dns_c_isanyaddr(isc_sockaddr_t *inaddr) {
return (result);
}
-
-
+
+
void
dns_c_print_ipaddr(FILE *fp, isc_sockaddr_t *inaddr) {
const char *p;
@@ -553,7 +553,7 @@ dns_c_print_ipaddr(FILE *fp, isc_sockaddr_t *inaddr) {
addr = (family == AF_INET ?
(void *)&inaddr->type.sin.sin_addr :
(void *)&inaddr->type.sin6.sin6_addr);
-
+
p = inet_ntop(family, addr, tmpaddrstr, sizeof tmpaddrstr);
if (p == NULL) {
fprintf(fp, "BAD-IP-ADDRESS");
@@ -567,7 +567,7 @@ dns_c_print_ipaddr(FILE *fp, isc_sockaddr_t *inaddr) {
isc_boolean_t
dns_c_netaddrisanyaddr(isc_netaddr_t *inaddr) {
isc_boolean_t result = ISC_FALSE;
-
+
if (inaddr->family == AF_INET) {
if (inaddr->type.in.s_addr == htonl(INADDR_ANY)) {
result = ISC_TRUE;
@@ -602,7 +602,7 @@ dns_c_netaddrprint(FILE *fp, isc_netaddr_t *inaddr) {
addr = (family == AF_INET ?
(void *)&inaddr->type.in :
(void *)&inaddr->type.in6);
-
+
p = inet_ntop(family, addr, tmpaddrstr, sizeof tmpaddrstr);
if (p == NULL) {
fprintf(fp, "BAD-IP-ADDRESS");
@@ -630,16 +630,16 @@ dns_c_need_quote(const char *string) {
}
-
+
void
dns_c_peerlist_print(FILE *fp, int indent,
dns_peerlist_t *servers)
{
dns_peer_t *server;
-
+
REQUIRE(fp != NULL);
REQUIRE(DNS_PEERLIST_VALID(servers));
-
+
server = ISC_LIST_HEAD(servers->elements);
while (server != NULL) {
dns_c_peer_print(fp, indent, server);
@@ -648,7 +648,7 @@ dns_c_peerlist_print(FILE *fp, int indent,
fprintf(fp, "\n");
}
}
-
+
return;
}
@@ -660,15 +660,15 @@ dns_c_peer_print(FILE *fp, int indent, dns_peer_t *peer) {
dns_transfer_format_t tval;
isc_int32_t ival;
dns_name_t *name = NULL;
-
+
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(fp != NULL);
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "server ");
dns_c_netaddrprint(fp, &peer->address);
fprintf(fp, " {\n");
-
+
res = dns_peer_getbogus(peer, &bval);
if (res == ISC_R_SUCCESS) {
dns_c_printtabs(fp, indent + 1);
@@ -708,7 +708,7 @@ dns_c_peer_print(FILE *fp, int indent, dns_peer_t *peer) {
dns_name_print(peer->key, fp);
fprintf(fp, "\"; };\n");
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "};\n");
}
@@ -729,16 +729,16 @@ dns_c_charptoname(isc_mem_t *mem, const char *keyval, dns_name_t **name) {
REQUIRE(name != NULL);
len = strlen(keyval);
-
+
dns_name_init(&newkey, NULL);
res = isc_buffer_allocate(mem, &b1, len + 2);
REQUIRE(res == ISC_R_SUCCESS);
-
+
dns_name_setbuffer(&newkey, b1);
-
+
isc_buffer_init(&b2, keyval, len);
isc_buffer_add(&b2, len);
-
+
res = dns_name_fromtext(&newkey, &b2, dns_rootname, ISC_FALSE, NULL);
if (res != ISC_R_SUCCESS) {
return (res);
@@ -747,7 +747,7 @@ dns_c_charptoname(isc_mem_t *mem, const char *keyval, dns_name_t **name) {
*name = isc_mem_get(mem, sizeof (dns_name_t));
REQUIRE(*name != NULL);
dns_name_init(*name, NULL);
-
+
dns_name_dup(&newkey, mem, *name);
dns_name_invalidate(&newkey);
isc_buffer_free(&b1);
@@ -763,7 +763,7 @@ dns_c_ssutable_print(FILE *fp, int indent, dns_ssutable_t *ssutable) {
dns_rdatatype_t *types;
unsigned int i;
unsigned int tcount;
-
+
res = dns_ssutable_firstrule(ssutable, &rule);
if (res != ISC_R_SUCCESS) {
return;
@@ -772,13 +772,13 @@ dns_c_ssutable_print(FILE *fp, int indent, dns_ssutable_t *ssutable) {
fputc('\n', fp);
dns_c_printtabs(fp, indent);
fprintf(fp, "update-policy {\n");
-
+
do {
dns_c_printtabs(fp, indent + 1);
fputs ((dns_ssurule_isgrant(rule) ? "grant" : "deny"), fp);
fputc(' ', fp);
-
+
dns_name_print(dns_ssurule_identity(rule), fp);
fputc(' ', fp);
@@ -845,4 +845,4 @@ dns_c_checkcategory(const char *name) {
return (ISC_R_FAILURE);
}
-
+
diff --git a/lib/dns/config/confctl.c b/lib/dns/config/confctl.c
index 887349b0ca..bdb8499452 100644
--- a/lib/dns/config/confctl.c
+++ b/lib/dns/config/confctl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confctl.c,v 1.28 2000/07/27 09:47:00 tale Exp $ */
+/* $Id: confctl.c,v 1.29 2000/08/01 01:23:17 tale Exp $ */
#include
@@ -28,7 +28,7 @@
isc_result_t
dns_c_ctrllist_new(isc_mem_t *mem, dns_c_ctrllist_t **newlist) {
dns_c_ctrllist_t *newl;
-
+
REQUIRE(mem != NULL);
REQUIRE (newlist != NULL);
@@ -40,7 +40,7 @@ dns_c_ctrllist_new(isc_mem_t *mem, dns_c_ctrllist_t **newlist) {
newl->mem = mem;
newl->magic = DNS_C_CONFCTLLIST_MAGIC;
-
+
ISC_LIST_INIT(newl->elements);
*newlist = newl;
@@ -80,7 +80,7 @@ dns_c_ctrllist_print(FILE *fp, int indent, dns_c_ctrllist_t *cl) {
}
REQUIRE(DNS_C_CONFCTLLIST_VALID(cl));
-
+
fprintf(fp, "controls {\n");
ctl = dns_c_ctrllist_head(cl);
@@ -94,7 +94,7 @@ dns_c_ctrllist_print(FILE *fp, int indent, dns_c_ctrllist_t *cl) {
ctl = dns_c_ctrl_next(ctl);
}
}
-
+
fprintf(fp, "};\n");
}
@@ -106,11 +106,11 @@ dns_c_ctrllist_delete(dns_c_ctrllist_t **list) {
REQUIRE(list != NULL);
REQUIRE(*list != NULL);
-
+
clist = *list;
REQUIRE(DNS_C_CONFCTLLIST_VALID(clist));
-
+
ctrl = ISC_LIST_HEAD(clist->elements);
while (ctrl != NULL) {
tmpctrl = ISC_LIST_NEXT(ctrl, next);
@@ -131,7 +131,7 @@ isc_result_t
dns_c_ctrl_validate(dns_c_ctrl_t *ctrl)
{
isc_result_t result = ISC_R_SUCCESS;
-
+
REQUIRE(DNS_C_CONFCTL_VALID(ctrl));
if (ctrl->control_type == dns_c_unix_control) {
@@ -154,7 +154,7 @@ dns_c_ctrl_validate(dns_c_ctrl_t *ctrl)
return (result);
}
-
+
isc_result_t
dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control,
@@ -164,7 +164,7 @@ dns_c_ctrlinet_new(isc_mem_t *mem, dns_c_ctrl_t **control,
{
dns_c_ctrl_t *ctrl;
isc_result_t res;
-
+
REQUIRE(mem != NULL);
REQUIRE(control != NULL);
@@ -200,7 +200,7 @@ dns_c_ctrlunix_new(isc_mem_t *mem, dns_c_ctrl_t **control,
const char *path, int perm, uid_t uid, gid_t gid)
{
dns_c_ctrl_t *ctrl;
-
+
REQUIRE(mem != NULL);
REQUIRE(control != NULL);
@@ -218,13 +218,13 @@ dns_c_ctrlunix_new(isc_mem_t *mem, dns_c_ctrl_t **control,
/* XXXJAB logwrite */
return (ISC_R_NOMEMORY);
}
-
+
ctrl->u.unix_v.perm = perm;
ctrl->u.unix_v.owner = uid;
ctrl->u.unix_v.group = gid;
ctrl->keyidlist = NULL;
-
+
*control = ctrl;
return (ISC_R_SUCCESS);
@@ -235,7 +235,7 @@ dns_c_ctrl_delete(dns_c_ctrl_t **control) {
isc_result_t res = ISC_R_SUCCESS;
isc_mem_t *mem;
dns_c_ctrl_t *ctrl;
-
+
REQUIRE(control != NULL);
REQUIRE(*control != NULL);
@@ -266,7 +266,7 @@ dns_c_ctrl_delete(dns_c_ctrl_t **control) {
}
ctrl->magic = 0;
-
+
isc_mem_put(mem, ctrl, sizeof *ctrl);
*control = NULL;
@@ -280,22 +280,22 @@ dns_c_ctrl_print(FILE *fp, int indent, dns_c_ctrl_t *ctl) {
dns_c_ipmatchlist_t *iml;
REQUIRE(DNS_C_CONFCTL_VALID(ctl));
-
+
(void) indent;
-
+
if (ctl->control_type == dns_c_inet_control) {
port = isc_sockaddr_getport(&ctl->u.inet_v.addr);
iml = ctl->u.inet_v.matchlist;
-
+
fprintf(fp, "inet ");
dns_c_print_ipaddr(fp, &ctl->u.inet_v.addr);
-
+
if (port == 0) {
fprintf(fp, " port *\n");
} else {
fprintf(fp, " port %d\n", port);
}
-
+
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "allow ");
dns_c_ipmatchlist_print(fp, indent + 2, iml);
@@ -326,7 +326,7 @@ dns_c_ctrllist_head (dns_c_ctrllist_t *list)
return(ISC_LIST_HEAD(list->elements));
}
-
+
dns_c_ctrl_t *
dns_c_ctrl_next(dns_c_ctrl_t *ctl)
{
@@ -334,5 +334,5 @@ dns_c_ctrl_next(dns_c_ctrl_t *ctl)
return (ISC_LIST_NEXT(ctl, next));
}
-
-
+
+
diff --git a/lib/dns/config/confctx.c b/lib/dns/config/confctx.c
index 694f72a1b9..3f8ed7de5d 100644
--- a/lib/dns/config/confctx.c
+++ b/lib/dns/config/confctx.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confctx.c,v 1.78 2000/07/31 21:07:00 explorer Exp $ */
+/* $Id: confctx.c,v 1.79 2000/08/01 01:23:19 tale Exp $ */
#include
@@ -236,28 +236,28 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
dns_c_lstnlist_t *listenlist;
dns_c_ctrllist_t *controls;
-
+
if (dns_c_ctx_getnamedxfer(cfg, &cpval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'named-xfer' is now obsolete");
}
-
+
if (dns_c_ctx_getdumpfilename(cfg, &cpval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'dump-file' is not yet implemented");
}
-
-
+
+
if (dns_c_ctx_getmemstatsfilename(cfg, &cpval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'memstatistics-file' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getauthnxdomain(cfg, &bval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -273,14 +273,14 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'deallocate-on-exit' is obsolete");
}
-
+
if (dns_c_ctx_getdialup(cfg, &bval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'dialup' is not yet implemented");
}
-
+
if (dns_c_ctx_getfakeiquery(cfg, &bval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
@@ -309,7 +309,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"implemented");
}
-
+
if (dns_c_ctx_getmultiplecnames(cfg, &bval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
@@ -348,7 +348,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'check-names' is not yet implemented");
}
-
+
if (dns_c_ctx_getblackhole(cfg, &ipml) != ISC_R_NOTFOUND) {
dns_c_ipmatchlist_detach(&ipml);
@@ -364,7 +364,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'lame-ttl' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getminroots(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -372,7 +372,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'min-roots' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getserialqueries(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -380,7 +380,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'serial-queries' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getmaxlogsizeixfr(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -388,7 +388,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'max-ixfr-log-size' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getcoresize(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -396,7 +396,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'coresize' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getdatasize(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -404,7 +404,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'datasize' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getfiles(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -413,14 +413,14 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"implemented");
}
-
+
if (dns_c_ctx_getstacksize(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'stacksize' is not yet "
"implemented");
}
-
+
if (dns_c_ctx_getheartbeatinterval(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -429,7 +429,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"implemented");
}
-
+
if (dns_c_ctx_getstatsinterval(cfg, &uintval) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
@@ -437,7 +437,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"implemented");
}
-
+
if (dns_c_ctx_gettopology(cfg, &ipml) != ISC_R_NOTFOUND) {
dns_c_ipmatchlist_detach(&ipml);
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
@@ -453,13 +453,13 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
"option 'sortlist' is not yet implemented");
}
-
+
if (dns_c_ctx_getrrsetorderlist(cfg, &olist) != ISC_R_NOTFOUND) {
isc_log_write(dns_lctx,DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"option 'rrset-order' is not yet implemented");
}
-
+
if (dns_c_ctx_getallowupdateforwarding(cfg, &ipml) != ISC_R_NOTFOUND) {
dns_c_ipmatchlist_detach(&ipml);
@@ -504,7 +504,7 @@ dns_c_checkconfig(dns_c_ctx_t *cfg)
result = tmpres;
}
}
-
+
return (result);
}
@@ -517,7 +517,7 @@ dns_c_ctx_new(isc_mem_t *mem, dns_c_ctx_t **cfg)
{
dns_c_ctx_t *tmpcfg;
isc_result_t r;
-
+
REQUIRE(mem != NULL);
tmpcfg = isc_mem_get(mem, sizeof *tmpcfg);
@@ -543,7 +543,7 @@ dns_c_ctx_new(isc_mem_t *mem, dns_c_ctx_t **cfg)
tmpcfg->currview = NULL;
tmpcfg->currzone = NULL;
-
+
r = acl_init(tmpcfg);
if (r != ISC_R_SUCCESS) {
return (r);
@@ -553,17 +553,17 @@ dns_c_ctx_new(isc_mem_t *mem, dns_c_ctx_t **cfg)
if (r != ISC_R_SUCCESS) {
return (r);
}
-
-
+
+
#if 1 /* XXX brister */
tmpcfg->controls = NULL;
-#else
+#else
r = dns_c_ctrllist_new(mem, &tmpcfg->controls);
if (r != ISC_R_SUCCESS) {
dns_c_ctx_delete(&tmpcfg);
return r;
}
-#endif
+#endif
*cfg = tmpcfg;
@@ -586,35 +586,35 @@ dns_c_ctx_delete(dns_c_ctx_t **cfg)
if (c->options != NULL)
dns_c_ctx_optionsdelete(&c->options);
-
+
if (c->controls != NULL)
dns_c_ctrllist_delete(&c->controls);
-
+
if (c->peers != NULL)
dns_peerlist_detach(&c->peers);
-
+
if (c->acls != NULL)
dns_c_acltable_delete(&c->acls);
-
+
if (c->keydefs != NULL)
dns_c_kdeflist_delete(&c->keydefs);
-
+
if (c->zlist != NULL)
dns_c_zonelist_delete(&c->zlist);
-
+
if (c->trusted_keys != NULL)
dns_c_tkeylist_delete(&c->trusted_keys);
-
+
if (c->logging != NULL)
dns_c_logginglist_delete(&c->logging);
-
+
if (c->views != NULL)
dns_c_viewtable_delete(&c->views);
c->magic = 0;
isc_mem_put(c->mem, c, sizeof *c);
*cfg = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -623,7 +623,7 @@ isc_result_t
dns_c_ctx_setcontrols(dns_c_ctx_t *cfg, dns_c_ctrllist_t *ctrls)
{
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
REQUIRE(DNS_C_CONFCTLLIST_VALID(ctrls));
@@ -647,9 +647,9 @@ dns_c_ctx_getcontrols(dns_c_ctx_t *cfg, dns_c_ctrllist_t **ctrls)
return (cfg->controls != NULL ? ISC_R_SUCCESS : ISC_R_NOTFOUND);
}
-
-
+
+
isc_result_t
dns_c_ctx_setcurrzone(dns_c_ctx_t *cfg, dns_c_zone_t *zone)
{
@@ -672,7 +672,7 @@ dns_c_ctx_getcurrzone(dns_c_ctx_t *cfg)
return (cfg->currzone);
}
-
+
isc_result_t
dns_c_ctx_setcurrview(dns_c_ctx_t *cfg,
@@ -704,7 +704,7 @@ dns_c_ctx_getpeerlist(dns_c_ctx_t *cfg, dns_peerlist_t **retval)
{
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
REQUIRE(retval != NULL);
-
+
if (cfg->peers == NULL) {
*retval = NULL;
return (ISC_R_NOTFOUND);
@@ -727,7 +727,7 @@ dns_c_ctx_unsetpeerlist(dns_c_ctx_t *cfg)
return (ISC_R_FAILURE);
}
}
-
+
isc_result_t
dns_c_ctx_setpeerlist(dns_c_ctx_t *cfg, dns_peerlist_t *newval)
@@ -757,38 +757,38 @@ dns_c_ctx_print(FILE *fp, int indent, dns_c_ctx_t *cfg)
cfg->logging, ISC_FALSE);
fprintf(fp,"\n");
}
-
-
+
+
if (cfg->keydefs != NULL) {
dns_c_kdeflist_print(fp, indent, cfg->keydefs);
fprintf(fp, "\n");
}
-
+
if (cfg->trusted_keys != NULL) {
dns_c_tkeylist_print(fp, indent, cfg->trusted_keys);
fprintf(fp, "\n");
}
-
+
if (cfg->acls != NULL) {
dns_c_acltable_print(fp, indent, cfg->acls);
fprintf(fp,"\n");
}
-
+
if (cfg->options != NULL) {
dns_c_ctx_optionsprint(fp, indent, cfg->options);
fprintf(fp,"\n");
}
-
+
if (cfg->views != NULL) {
dns_c_viewtable_print(fp, indent, cfg->views);
fprintf(fp, "\n");
}
-
-
+
+
if (cfg->zlist != NULL) {
dns_c_zonelist_print(fp, indent, cfg->zlist, NULL);
fprintf(fp, "\n");
@@ -798,7 +798,7 @@ dns_c_ctx_print(FILE *fp, int indent, dns_c_ctx_t *cfg)
dns_c_ctrllist_print(fp, indent, cfg->controls);
fprintf(fp, "\n");
}
-
+
if (cfg->peers != NULL) {
dns_c_peerlist_print(fp, indent, cfg->peers);
@@ -814,25 +814,25 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
dns_severity_t nameseverity;
in_port_t port;
in_port_t defport = DNS_C_DEFAULTPORT;
-
+
REQUIRE(fp != NULL);
if (options == NULL) {
return;
}
-
+
REQUIRE(DNS_C_CONFOPT_VALID(options));
if (options->port != NULL) {
defport = *options->port;
}
-
+
#define PRINT_INTEGER(FIELD, NAME) \
if (options->FIELD != NULL) { \
dns_c_printtabs(fp, indent + 1); \
fprintf(fp, "%s %d;\n",NAME,(int)*options->FIELD); \
}
-
+
#define PRINT_AS_MINUTES(FIELD, NAME) \
if (options->FIELD != NULL) { \
dns_c_printtabs(fp, indent + 1); \
@@ -870,7 +870,7 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
dns_c_printtabs(fp, indent + 1); \
fprintf(fp, "%s \"%s\";\n", NAME, options->FIELD); \
}
-
+
#define PRINT_IPANDPORT(FIELD, NAME) \
if (options->FIELD != NULL) { \
port = isc_sockaddr_getport(options->FIELD); \
@@ -904,7 +904,7 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
dns_c_transport2string(INDEX, ISC_TRUE), \
dns_c_nameseverity2string(nameseverity, ISC_TRUE)); \
}
-
+
#define PRINT_IPMLIST(FIELD, NAME) \
if (options->FIELD != NULL) { \
@@ -929,13 +929,13 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
PRINT_CHAR_P(random_seed_file, "random-seed-file");
PRINT_INTEGER(port, "port");
-
+
PRINT_INTEGER(transfers_in, "transfers-in");
PRINT_INTEGER(transfers_per_ns, "transfers-per-ns");
PRINT_INTEGER(transfers_out, "transfers-out");
PRINT_INTEGER(max_log_size_ixfr, "max-ixfr-log-size");
-
-
+
+
PRINT_AS_MINUTES(clean_interval, "cleaning-interval");
PRINT_AS_MINUTES(interface_interval, "interface-interval");
PRINT_AS_MINUTES(stats_interval, "statistics-interval");
@@ -952,11 +952,11 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
PRINT_INTEGER(min_roots, "min-roots");
PRINT_INTEGER(serial_queries, "serial-queries");
PRINT_INTEGER(sig_valid_interval, "sig-validity-interval");
- PRINT_AS_SIZE_CLAUSE(max_cache_size, "max-cache-size");
-
- PRINT_AS_SIZE_CLAUSE(data_size, "datasize");
- PRINT_AS_SIZE_CLAUSE(stack_size, "stacksize");
- PRINT_AS_SIZE_CLAUSE(core_size, "coresize");
+ PRINT_AS_SIZE_CLAUSE(max_cache_size, "max-cache-size");
+
+ PRINT_AS_SIZE_CLAUSE(data_size, "datasize");
+ PRINT_AS_SIZE_CLAUSE(stack_size, "stacksize");
+ PRINT_AS_SIZE_CLAUSE(core_size, "coresize");
PRINT_AS_SIZE_CLAUSE(files, "files");
PRINT_INTEGER(max_ncache_ttl, "max-ncache-ttl");
@@ -991,10 +991,10 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
dns_c_transformat2string(*options->transfer_format,
ISC_TRUE));
}
-
+
PRINT_IP(transfer_source, "transfer-source");
PRINT_IP(transfer_source_v6, "transfer-source-v6");
-
+
PRINT_IPANDPORT(query_source, "query-source");
PRINT_IPANDPORT(query_source_v6, "query-source-v6");
@@ -1004,11 +1004,11 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
dns_c_addata2string(*options->additional_data,
ISC_TRUE));
}
-
+
PRINT_CHECKNAME(dns_trans_primary);
PRINT_CHECKNAME(dns_trans_secondary);
PRINT_CHECKNAME(dns_trans_response);
-
+
fprintf(fp, "\n");
PRINT_IPMLIST(queryacl, "allow-query");
@@ -1018,19 +1018,19 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
PRINT_IPMLIST(topology, "topology");
PRINT_IPMLIST(sortlist, "sortlist");
PRINT_IPMLIST(allowupdateforwarding, "allow-update-forwarding");
-
+
if (options->listens != NULL) {
dns_c_lstnlist_print(fp, indent + 1,
options->listens,
defport);
}
-
+
if (options->v6listens != NULL) {
dns_c_lstnlistv6_print(fp, indent + 1,
options->v6listens,
defport);
}
-
+
dns_c_ctx_forwarderprint(fp, indent + 1, options);
if (options->ordering != NULL) {
@@ -1044,7 +1044,7 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
options->also_notify);
fprintf(fp, ";\n");
}
-
+
PRINT_CHAR_P(tkeydomain, "tkey-domain");
if (options->tkeydhkeycp != NULL) {
@@ -1052,7 +1052,7 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
fprintf(fp, "tkey-dhkey \"%s\" %d ;\n",
options->tkeydhkeycp, options->tkeydhkeyi);
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp,"};\n");
@@ -1064,9 +1064,9 @@ dns_c_ctx_optionsprint(FILE *fp, int indent, dns_c_options_t *options)
#undef PRINT_CHAR_P
#undef PRINT_IPMLIST
#undef PRINT_IPANDPORT
-#undef PRINT_IP
+#undef PRINT_IP
#undef PRINT_CHECKNAME
-
+
}
void
@@ -1104,13 +1104,13 @@ dns_c_ctx_getoptions(dns_c_ctx_t *cfg, dns_c_options_t **options)
{
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
REQUIRE(options != NULL);
-
+
if (cfg->options != NULL) {
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
}
-
+
*options = cfg->options;
-
+
return (cfg->options == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
}
@@ -1124,7 +1124,7 @@ dns_c_ctx_unsetoptions(dns_c_ctx_t *cfg)
}
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
-
+
dns_c_ctx_optionsdelete(&cfg->options);
return (ISC_R_SUCCESS);
@@ -1151,11 +1151,11 @@ dns_c_ctx_setlogging(dns_c_ctx_t *cfg, dns_c_logginglist_t *newval,
dns_c_logginglist_t *ll;
isc_result_t res;
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
existed = ISC_TF(cfg->logging != NULL);
-
+
if (deepcopy) {
res = dns_c_logginglist_copy(cfg->mem, &ll, newval);
if (res != ISC_R_SUCCESS) {
@@ -1164,7 +1164,7 @@ dns_c_ctx_setlogging(dns_c_ctx_t *cfg, dns_c_logginglist_t *newval,
} else {
ll = newval;
}
-
+
cfg->logging = ll;
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
@@ -1183,7 +1183,7 @@ dns_c_ctx_unsetlogging(dns_c_ctx_t *cfg)
return (dns_c_logginglist_delete(&cfg->logging));
}
-
+
isc_result_t
dns_c_ctx_getkdeflist(dns_c_ctx_t *cfg,
@@ -1193,7 +1193,7 @@ dns_c_ctx_getkdeflist(dns_c_ctx_t *cfg,
REQUIRE(retval != NULL);
*retval = cfg->keydefs;
-
+
if (cfg->keydefs == NULL) {
return (ISC_R_NOTFOUND);
} else {
@@ -1207,13 +1207,13 @@ dns_c_ctx_setkdeflist(dns_c_ctx_t *cfg,
dns_c_kdeflist_t *newval, isc_boolean_t deepcopy)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
if (cfg->keydefs != NULL) {
dns_c_kdeflist_delete(&cfg->keydefs);
}
-
+
if (newval == NULL) {
cfg->keydefs = NULL;
res = ISC_R_SUCCESS;
@@ -1228,7 +1228,7 @@ dns_c_ctx_setkdeflist(dns_c_ctx_t *cfg,
return (res);
}
-
+
isc_result_t
dns_c_ctx_addfile_channel(dns_c_ctx_t *cfg, const char *name,
dns_c_logchan_t **chan)
@@ -1278,7 +1278,7 @@ dns_c_ctx_addsyslogchannel(dns_c_ctx_t *cfg, const char *name,
ISC_FALSE);
*chan = newc;
-
+
return (res);
}
@@ -1305,7 +1305,7 @@ dns_c_ctx_addnullchannel(dns_c_ctx_t *cfg, const char *name,
ISC_FALSE);
*chan = newc;
-
+
return (res);
}
@@ -1330,7 +1330,7 @@ dns_c_ctx_addstderrchannel(dns_c_ctx_t *cfg, const char *name,
res = dns_c_logginglist_addchannel(cfg->logging, newc, ISC_FALSE);
*chan = newc;
-
+
return (res);
}
@@ -1350,12 +1350,12 @@ dns_c_ctx_addcategory(dns_c_ctx_t *cfg, const char *catname,
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
res = dns_c_logginglist_addcategory(cfg->logging, newc,
ISC_FALSE);
*newcat = newc;
-
+
return (res);
}
@@ -1372,7 +1372,7 @@ dns_c_ctx_currchannel(dns_c_ctx_t *cfg, dns_c_logchan_t **channel)
newc = ISC_LIST_TAIL(cfg->logging->channels);
*channel = newc;
-
+
return (newc == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
}
@@ -1412,7 +1412,7 @@ dns_c_ctx_currcategory(dns_c_ctx_t *cfg, dns_c_logcat_t **category)
newc = ISC_LIST_TAIL(llist->categories);
*category = newc;
-
+
return (newc == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
}
@@ -1432,7 +1432,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
REQUIRE(options != NULL);
*options = NULL;
-
+
opts = isc_mem_get(mem, sizeof *opts);
if (opts == NULL) {
return (ISC_R_NOMEMORY);
@@ -1452,7 +1452,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->random_seed_file = NULL;
opts->port = NULL;
-
+
opts->transfers_in = NULL;
opts->transfers_per_ns = NULL;
opts->transfers_out = NULL;
@@ -1461,7 +1461,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->interface_interval = NULL;
opts->stats_interval = NULL;
opts->heartbeat_interval = NULL;
-
+
opts->max_transfer_time_in = NULL;
opts->max_transfer_time_out = NULL;
opts->max_transfer_idle_in = NULL;
@@ -1472,7 +1472,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->min_roots = NULL;
opts->serial_queries = NULL;
opts->sig_valid_interval = NULL;
-
+
opts->data_size = NULL;
opts->stack_size = NULL;
opts->core_size = NULL;
@@ -1480,7 +1480,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->max_cache_size = NULL;
opts->max_ncache_ttl = NULL;
opts->max_cache_ttl = NULL;
-
+
opts->expert_mode = NULL;
opts->fake_iquery = NULL;
opts->recursion = NULL;
@@ -1513,7 +1513,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->tkeydhkeycp = NULL;
opts->tkeydhkeyi = 0;
opts->tkeydomain = NULL;
-
+
opts->also_notify = NULL;
opts->check_names[dns_trans_primary] = NULL;
@@ -1521,7 +1521,7 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->check_names[dns_trans_response] = NULL;
opts->transfer_format = NULL;
-
+
opts->queryacl = NULL;
opts->transferacl = NULL;
opts->recursionacl = NULL;
@@ -1529,16 +1529,16 @@ dns_c_ctx_optionsnew(isc_mem_t *mem, dns_c_options_t **options)
opts->topology = NULL;
opts->sortlist = NULL;
opts->allowupdateforwarding = NULL;
-
+
opts->listens = NULL;
opts->v6listens = NULL;
-
+
opts->ordering = NULL;
opts->forwarders = NULL;
*options = opts;
-
+
return (ISC_R_SUCCESS);
}
@@ -1548,14 +1548,14 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
{
dns_c_options_t *options;
isc_result_t r, result;
-
+
REQUIRE(opts != NULL);
options = *opts;
if (options == NULL) {
return (ISC_R_SUCCESS);
}
-
+
REQUIRE(DNS_C_CONFOPT_VALID(options));
@@ -1575,8 +1575,8 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
do { if (options->FIELD != NULL) { \
(void)dns_c_ipmatchlist_detach(&options->FIELD); \
} } while (0)
-
-
+
+
FREESTRING(directory);
FREESTRING(version);
@@ -1588,7 +1588,7 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
FREESTRING(random_device);
FREESTRING(random_seed_file);
-
+
FREEFIELD(expert_mode);
FREEFIELD(fake_iquery);
FREEFIELD(recursion);
@@ -1609,9 +1609,9 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
FREEFIELD(treat_cr_as_space);
FREEFIELD(additional_from_cache);
FREEFIELD(additional_from_auth);
-
+
FREEFIELD(port);
-
+
FREEFIELD(transfers_in);
FREEFIELD(transfers_per_ns);
FREEFIELD(transfers_out);
@@ -1647,10 +1647,10 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
FREEFIELD(additional_data);
FREEFIELD(forward);
-
+
FREESTRING(tkeydomain);
FREESTRING(tkeydhkeycp);
-
+
if (options->also_notify != NULL) {
dns_c_iplist_detach(&options->also_notify);
}
@@ -1668,7 +1668,7 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
FREEIPMLIST(topology);
FREEIPMLIST(sortlist);
FREEIPMLIST(allowupdateforwarding);
-
+
result = ISC_R_SUCCESS;
if (options->listens != NULL) {
@@ -1676,30 +1676,30 @@ dns_c_ctx_optionsdelete(dns_c_options_t **opts)
if (r != ISC_R_SUCCESS)
result = r;
}
-
+
if (options->v6listens != NULL) {
r = dns_c_lstnlist_delete(&options->v6listens);
if (r != ISC_R_SUCCESS)
result = r;
}
-
+
if (options->ordering != NULL) {
r = dns_c_rrsolist_delete(&options->ordering);
if (r != ISC_R_SUCCESS)
result = r;
}
-
+
if (options->forwarders != NULL) {
r = dns_c_iplist_detach(&options->forwarders);
if (r != ISC_R_SUCCESS)
result = r;
}
-
+
*opts = NULL;
options->magic = 0;
-
+
isc_mem_put(options->mem, options, sizeof *options);
-
+
return (result);
#undef FREEFIELD
@@ -1979,12 +1979,12 @@ GETBOOL(additionalfromauth, additional_from_auth)
SETBOOL(additionalfromauth, additional_from_auth)
UNSETBOOL(additionalfromauth, additional_from_auth)
-
+
GETBOOL(additionalfromcache, additional_from_cache)
SETBOOL(additionalfromcache, additional_from_cache)
UNSETBOOL(additionalfromcache, additional_from_cache)
-
+
GETSOCKADDR(transfersource, transfer_source)
SETSOCKADDR(transfersource, transfer_source)
UNSETSOCKADDR(transfersource, transfer_source)
@@ -2021,7 +2021,7 @@ UNSETBYTYPE(dns_c_addata_t, additionaldata, additional_data)
-
+
/*
@@ -2035,14 +2035,14 @@ isc_result_t
dns_c_ctx_settkeydomain(dns_c_ctx_t *cfg, const char *newval)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
res = make_options(cfg);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
return (cfg_set_string(cfg->options,
&cfg->options->tkeydomain,
newval));
@@ -2054,7 +2054,7 @@ dns_c_ctx_settkeydhkey(dns_c_ctx_t *cfg,
const char *charval, isc_uint32_t uintval)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
res = make_options(cfg);
@@ -2081,7 +2081,7 @@ dns_c_ctx_setchecknames(dns_c_ctx_t *cfg,
isc_boolean_t existed = ISC_FALSE;
isc_result_t res;
dns_severity_t **ptr = NULL;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
res = make_options(cfg);
@@ -2110,7 +2110,7 @@ dns_c_ctx_setchecknames(dns_c_ctx_t *cfg,
}
**ptr = newval;
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -2121,13 +2121,13 @@ dns_c_ctx_getchecknames(dns_c_ctx_t *cfg,
dns_severity_t *retval)
{
isc_result_t result;
- dns_severity_t **ptr = NULL;
+ dns_severity_t **ptr = NULL;
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(retval != NULL);
switch (transtype) {
@@ -2136,7 +2136,7 @@ dns_c_ctx_getchecknames(dns_c_ctx_t *cfg,
case dns_trans_response:
ptr = &cfg->options->check_names[transtype];
break;
-
+
default:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2161,7 +2161,7 @@ dns_c_ctx_unsetchecknames(dns_c_ctx_t *cfg,
{
isc_result_t res;
dns_severity_t **ptr = NULL;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
res = make_options(cfg);
@@ -2186,7 +2186,7 @@ dns_c_ctx_unsetchecknames(dns_c_ctx_t *cfg,
if (*ptr == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
isc_mem_put(cfg->options->mem, *ptr, sizeof (**ptr));
return (ISC_R_SUCCESS);
@@ -2265,7 +2265,7 @@ SETIPMLIST(allowquery, queryacl)
UNSETIPMLIST(allowquery, queryacl)
GETIPMLIST(allowquery, queryacl)
-
+
SETIPMLIST(allowtransfer, transferacl)
UNSETIPMLIST(allowtransfer, transferacl)
GETIPMLIST(allowtransfer, transferacl)
@@ -2275,12 +2275,12 @@ SETIPMLIST(allowrecursion, recursionacl)
UNSETIPMLIST(allowrecursion, recursionacl)
GETIPMLIST(allowrecursion, recursionacl)
-
+
SETIPMLIST(blackhole, blackhole)
UNSETIPMLIST(blackhole, blackhole)
GETIPMLIST(blackhole, blackhole)
-
+
SETIPMLIST(topology, topology)
UNSETIPMLIST(topology, topology)
GETIPMLIST(topology, topology)
@@ -2295,7 +2295,7 @@ SETIPMLIST(allowupdateforwarding, allowupdateforwarding)
UNSETIPMLIST(allowupdateforwarding, allowupdateforwarding)
GETIPMLIST(allowupdateforwarding, allowupdateforwarding)
-
+
isc_result_t
@@ -2312,11 +2312,11 @@ dns_c_ctx_setrrsetorderlist(dns_c_ctx_t *cfg, isc_boolean_t copy,
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
opts = cfg->options;
existed = (opts->ordering == NULL ? ISC_FALSE : ISC_TRUE);
-
+
if (copy) {
if (opts->ordering == NULL) {
res = dns_c_rrsolist_new(opts->mem,
@@ -2327,13 +2327,13 @@ dns_c_ctx_setrrsetorderlist(dns_c_ctx_t *cfg, isc_boolean_t copy,
} else {
dns_c_rrsolist_clear(opts->ordering);
}
-
+
res = dns_c_rrsolist_append(opts->ordering, olist);
} else {
if (opts->ordering != NULL) {
dns_c_rrsolist_delete(&opts->ordering);
}
-
+
opts->ordering = olist;
res = ISC_R_SUCCESS;
}
@@ -2341,7 +2341,7 @@ dns_c_ctx_setrrsetorderlist(dns_c_ctx_t *cfg, isc_boolean_t copy,
if (res == ISC_R_SUCCESS && existed) {
res = ISC_R_EXISTS;
}
-
+
return (res);
}
@@ -2353,7 +2353,7 @@ dns_c_ctx_settrustedkeys(dns_c_ctx_t *cfg, dns_c_tkeylist_t *list,
isc_boolean_t existed;
dns_c_tkeylist_t *newl;
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
existed = (cfg->trusted_keys == NULL ? ISC_FALSE : ISC_TRUE);
@@ -2364,7 +2364,7 @@ dns_c_ctx_settrustedkeys(dns_c_ctx_t *cfg, dns_c_tkeylist_t *list,
return (res);
}
}
-
+
if (copy) {
res = dns_c_tkeylist_copy(cfg->mem, &newl, list);
if (res != ISC_R_SUCCESS) {
@@ -2394,7 +2394,7 @@ dns_c_ctx_gettkeydomain(dns_c_ctx_t *cfg, char **retval)
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
*retval = cfg->options->tkeydomain;
@@ -2416,7 +2416,7 @@ dns_c_ctx_gettkeydhkey(dns_c_ctx_t *cfg,
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
if (cfg->options->tkeydhkeycp == NULL) {
@@ -2447,7 +2447,7 @@ dns_c_ctx_addlisten_on(dns_c_ctx_t *cfg, in_port_t port,
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
opts = cfg->options;
if (opts->listens == NULL) {
@@ -2457,7 +2457,7 @@ dns_c_ctx_addlisten_on(dns_c_ctx_t *cfg, in_port_t port,
}
}
-#if 0
+#if 0
lo = ISC_LIST_HEAD(opts->listens->elements);
while (lo != NULL) {
/* XXX we should probably check that a listen on statement
@@ -2469,13 +2469,13 @@ dns_c_ctx_addlisten_on(dns_c_ctx_t *cfg, in_port_t port,
}
lo = ISC_LIST_NEXT(lo, next);
}
-#endif
+#endif
res = dns_c_lstnon_new(cfg->mem, &lo);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
lo->port = port;
res = dns_c_lstnon_setiml(lo, ml, copy);
@@ -2494,7 +2494,7 @@ dns_c_ctx_getlistenlist(dns_c_ctx_t *cfg, dns_c_lstnlist_t **ll)
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(ll != NULL);
*ll = NULL;
@@ -2523,7 +2523,7 @@ dns_c_ctx_addv6listen_on(dns_c_ctx_t *cfg, in_port_t port,
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
opts = cfg->options;
if (opts->v6listens == NULL) {
@@ -2533,7 +2533,7 @@ dns_c_ctx_addv6listen_on(dns_c_ctx_t *cfg, in_port_t port,
}
}
-#if 0
+#if 0
lo = ISC_LIST_HEAD(opts->v6listens->elements);
while (lo != NULL) {
/* XXX we should probably check that a listen on statement
@@ -2545,13 +2545,13 @@ dns_c_ctx_addv6listen_on(dns_c_ctx_t *cfg, in_port_t port,
}
lo = ISC_LIST_NEXT(lo, next);
}
-#endif
+#endif
res = dns_c_lstnon_new(cfg->mem, &lo);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
lo->port = port;
res = dns_c_lstnon_setiml(lo, ml, copy);
@@ -2570,7 +2570,7 @@ dns_c_ctx_getv6listenlist(dns_c_ctx_t *cfg, dns_c_lstnlist_t **ll)
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(ll != NULL);
*ll = NULL;
@@ -2592,14 +2592,14 @@ dns_c_ctx_setforwarders(dns_c_ctx_t *cfg, isc_boolean_t copy,
dns_c_iplist_t *ipl)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
res = make_options(cfg);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
res = cfg_set_iplist(cfg->options, &cfg->options->forwarders,
ipl, copy);
@@ -2615,7 +2615,7 @@ dns_c_ctx_getforwarders(dns_c_ctx_t *cfg, dns_c_iplist_t **list)
if (cfg->options == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(list != NULL);
return (cfg_get_iplist(cfg->options,
@@ -2680,14 +2680,14 @@ dns_c_ctx_setalsonotify(dns_c_ctx_t *cfg,
dns_c_iplist_t *iml)
{
isc_result_t result;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
result = make_options(cfg);
if (result != ISC_R_SUCCESS) {
return (result);
}
-
+
REQUIRE(iml != NULL);
if (cfg->options->also_notify != NULL)
@@ -2697,7 +2697,7 @@ dns_c_ctx_setalsonotify(dns_c_ctx_t *cfg,
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_c_ctx_getalsonotify(dns_c_ctx_t *cfg, dns_c_iplist_t **ret)
@@ -2707,7 +2707,7 @@ dns_c_ctx_getalsonotify(dns_c_ctx_t *cfg, dns_c_iplist_t **ret)
if (cfg->options == NULL || cfg->options->also_notify == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
REQUIRE(ret != NULL);
dns_c_iplist_attach(cfg->options->also_notify, ret);
@@ -2727,7 +2727,7 @@ dns_c_ctx_unsetalsonotify(dns_c_ctx_t *cfg)
}
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
-
+
if (cfg->options->also_notify != NULL) {
dns_c_iplist_detach(&cfg->options->also_notify);
return (ISC_R_SUCCESS);
@@ -2752,7 +2752,7 @@ dns_c_ctx_keydefinedp(dns_c_ctx_t *cfg, const char *keyname)
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
REQUIRE(keyname != NULL);
REQUIRE(*keyname != '\0');
-
+
if (cfg->keydefs != NULL) {
res = dns_c_kdeflist_find(cfg->keydefs, keyname, &keyid);
if (res == ISC_R_SUCCESS) {
@@ -2785,7 +2785,7 @@ cfg_set_string(dns_c_options_t *options, char **field, const char *newval)
if (p != NULL) {
existed = ISC_TRUE;
}
-
+
if (newval == NULL) {
if (p != NULL) {
isc_mem_free(options->mem, p);
@@ -2820,14 +2820,14 @@ cfg_set_iplist(dns_c_options_t *options,
{
isc_result_t res;
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_CONFOPT_VALID(options));
REQUIRE(fieldaddr != NULL);
if (*fieldaddr != NULL) {
existed = ISC_TRUE;
}
-
+
if (newval == NULL) {
res = dns_c_iplist_new(options->mem,
newval->size,
@@ -2836,7 +2836,7 @@ cfg_set_iplist(dns_c_options_t *options,
if (*fieldaddr != NULL) {
dns_c_iplist_detach(fieldaddr);
}
-
+
res = dns_c_iplist_copy(options->mem, fieldaddr,
newval);
} else {
@@ -2845,17 +2845,17 @@ cfg_set_iplist(dns_c_options_t *options,
if (res != ISC_R_SUCCESS) {
return (res);
}
- }
+ }
res = ISC_R_SUCCESS;
-
+
*fieldaddr = newval;
}
if (res == ISC_R_SUCCESS && existed) {
res = ISC_R_EXISTS;
}
-
+
return (res);
}
@@ -2873,7 +2873,7 @@ cfg_get_iplist(dns_c_options_t *options,
isc_result_t res;
UNUSED(options);
-
+
REQUIRE(DNS_C_CONFOPT_VALID(options));
REQUIRE(resval != NULL);
@@ -2909,7 +2909,7 @@ static isc_result_t
logging_init (dns_c_ctx_t *cfg)
{
isc_result_t res;
-
+
REQUIRE(DNS_C_CONFCTX_VALID(cfg));
REQUIRE(cfg->logging == NULL);
@@ -2935,7 +2935,7 @@ make_options(dns_c_ctx_t *cfg)
return (res);
}
}
-
+
REQUIRE(DNS_C_CONFOPT_VALID(cfg->options));
return (res);
diff --git a/lib/dns/config/confip.c b/lib/dns/config/confip.c
index dceaf700b1..bd07633927 100644
--- a/lib/dns/config/confip.c
+++ b/lib/dns/config/confip.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confip.c,v 1.31 2000/07/27 09:47:02 tale Exp $ */
+/* $Id: confip.c,v 1.32 2000/08/01 01:23:20 tale Exp $ */
#include
@@ -65,7 +65,7 @@ isc_boolean_t
dns_c_ipmatchelement_isneg(dns_c_ipmatchelement_t *elem) {
REQUIRE(DNS_C_IPMELEM_VALID(elem));
-
+
return (ISC_TF((elem->flags & DNS_C_IPMATCH_NEGATE) ==
DNS_C_IPMATCH_NEGATE));
}
@@ -73,15 +73,15 @@ dns_c_ipmatchelement_isneg(dns_c_ipmatchelement_t *elem) {
isc_result_t
dns_c_ipmatchelement_delete(isc_mem_t *mem, dns_c_ipmatchelement_t **ipme) {
dns_c_ipmatchelement_t *elem;
-
+
REQUIRE(mem != NULL);
REQUIRE(ipme != NULL);
REQUIRE(*ipme != NULL);
-
+
elem = *ipme;
REQUIRE(DNS_C_IPMELEM_VALID(elem));
-
+
switch (elem->type) {
case dns_c_ipmatch_localhost:
case dns_c_ipmatch_localnets:
@@ -124,7 +124,7 @@ dns_c_ipmatchelement_delete(isc_mem_t *mem, dns_c_ipmatchelement_t **ipme) {
isc_mem_put(mem, elem, sizeof *elem);
*ipme = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -139,7 +139,7 @@ dns_c_ipmatchelement_copy(isc_mem_t *mem,
REQUIRE(mem != NULL);
REQUIRE(dest != NULL);
REQUIRE(DNS_C_IPMELEM_VALID(src));
-
+
result = dns_c_ipmatchelement_new(mem, &newel);
if (result != ISC_R_SUCCESS) {
return (result);
@@ -147,7 +147,7 @@ dns_c_ipmatchelement_copy(isc_mem_t *mem,
newel->type = src->type;
newel->flags = src->flags;
-
+
switch(src->type) {
case dns_c_ipmatch_pattern:
newel->u.direct.address = src->u.direct.address;
@@ -158,7 +158,7 @@ dns_c_ipmatchelement_copy(isc_mem_t *mem,
result = dns_c_ipmatchlist_copy(mem,
&newel->u.indirect.list,
src->u.indirect.list);
- break;
+ break;
case dns_c_ipmatch_localhost:
break;
@@ -173,7 +173,7 @@ dns_c_ipmatchelement_copy(isc_mem_t *mem,
case dns_c_ipmatch_acl:
newel->u.aclname = isc_mem_strdup(mem, src->u.aclname);
break;
-
+
case dns_c_ipmatch_any:
break;
@@ -185,7 +185,7 @@ dns_c_ipmatchelement_copy(isc_mem_t *mem,
}
*dest = newel;
-
+
return (ISC_R_SUCCESS);
}
@@ -327,7 +327,7 @@ dns_c_ipmatchindirect_new(isc_mem_t *mem,
} else {
dns_c_ipmatchlist_detach(&iml_copy);
}
-
+
*result = ime;
return (res);
@@ -450,7 +450,7 @@ dns_c_ipmatchlist_new(isc_mem_t *mem, dns_c_ipmatchlist_t **ptr) {
newlist->magic = DNS_C_IPMLIST_MAGIC;
newlist->mem = mem;
newlist->refcount = 1;
-
+
ISC_LIST_INIT(newlist->elements);
*ptr = newlist;
@@ -467,7 +467,7 @@ dns_c_ipmatchlist_detach(dns_c_ipmatchlist_t **ml) {
REQUIRE(ml != NULL);
REQUIRE(*ml != NULL);
-
+
iml = *ml;
*ml = NULL;
@@ -478,7 +478,7 @@ dns_c_ipmatchlist_detach(dns_c_ipmatchlist_t **ml) {
if (iml->refcount > 0) {
return (ISC_R_SUCCESS);
}
-
+
mem = iml->mem;
INSIST(mem != NULL);
@@ -486,7 +486,7 @@ dns_c_ipmatchlist_detach(dns_c_ipmatchlist_t **ml) {
while (ime != NULL) {
iptr = ISC_LIST_NEXT(ime, next);
dns_c_ipmatchelement_delete(mem, &ime);
-
+
ime = iptr;
}
@@ -501,7 +501,7 @@ dns_c_ipmatchlist_attach(dns_c_ipmatchlist_t *source,
{
REQUIRE(DNS_C_IPMLIST_VALID(source));
-
+
INSIST(source->refcount > 0);
source->refcount++;
@@ -515,7 +515,7 @@ dns_c_ipmatchlist_empty(dns_c_ipmatchlist_t *ipml) {
isc_result_t res = ISC_R_SUCCESS;
REQUIRE(DNS_C_IPMLIST_VALID(ipml));
-
+
ime = ISC_LIST_HEAD(ipml->elements);
while (ime != NULL) {
imptmp = ISC_LIST_NEXT(ime, next);
@@ -525,7 +525,7 @@ dns_c_ipmatchlist_empty(dns_c_ipmatchlist_t *ipml) {
}
ime = imptmp;
}
-
+
return (res);
}
@@ -556,7 +556,7 @@ dns_c_ipmatchlist_copy(isc_mem_t *mem,
dns_c_ipmatchlist_detach(&newlist);
return (result);
}
-
+
ISC_LIST_APPEND(newlist->elements, ptr, next);
ime = ISC_LIST_NEXT(ime, next);
@@ -573,7 +573,7 @@ dns_c_ipmatchlist_equal(dns_c_ipmatchlist_t *l1, dns_c_ipmatchlist_t *l2) {
REQUIRE(l1 == NULL || DNS_C_IPMLIST_VALID(l1));
REQUIRE(l2 == NULL || DNS_C_IPMLIST_VALID(l2));
-
+
if (l1 == NULL && l2 == NULL)
return (ISC_TRUE);
if (l1 != NULL || l2 != NULL)
@@ -617,7 +617,7 @@ dns_c_ipmatchlist_append(dns_c_ipmatchlist_t *dest,
if (negate) {
dns_c_ipmatch_negate(ime_copy);
}
-
+
ISC_LIST_APPEND(dest->elements, ime_copy, next);
ime = ISC_LIST_NEXT(ime, next);
@@ -645,7 +645,7 @@ dns_c_ipmatchelement_print(FILE *fp, int indent, dns_c_ipmatchelement_t *ipme)
switch (ipme->type) {
case dns_c_ipmatch_pattern:
dns_c_print_ipaddr(fp, &ipme->u.direct.address);
-
+
bits = ipme->u.direct.mask;
if (bits > 0) {
isc_uint32_t fam =
@@ -719,11 +719,11 @@ dns_c_ipmatchlist_print(FILE *fp, int indent, dns_c_ipmatchlist_t *ml) {
dns_c_printtabs(fp, indent);
dns_c_ipmatchelement_print(fp, indent + 1, ipme);
fprintf(fp, ";\n");
-
+
ipme = ISC_LIST_NEXT(ipme, next);
}
}
-
+
dns_c_printtabs(fp, indent - 1);
fprintf(fp, "}");
@@ -764,7 +764,7 @@ dns_c_ipmatchlist_walk(dns_c_ipmatchlist_t *list, dns_c_ipmlwalker func)
ipme = ISC_LIST_NEXT(ipme, next);
}
-
+
return (retval);
}
@@ -815,7 +815,7 @@ dns_c_iplist_new(isc_mem_t *mem, int length, dns_c_iplist_t **newlist) {
list->refcount = 1;
*newlist = list;
-
+
return (ISC_R_SUCCESS);
}
@@ -825,11 +825,11 @@ dns_c_iplist_detach(dns_c_iplist_t **list) {
#ifndef NOMINUM_PUBLIC
unsigned int i;
#endif /* NOMINUM_PUBLIC */
-
+
REQUIRE(list != NULL);
REQUIRE(*list != NULL);
-
+
l = *list;
REQUIRE(DNS_C_IPLIST_VALID(l));
@@ -867,7 +867,7 @@ dns_c_iplist_haskeys(dns_c_iplist_t *list)
if (list->keys == NULL) {
return (ISC_FALSE);
}
-
+
for (i = 0 ; i < list->nextidx ; i++) {
if (list->keys[i] != NULL) {
return (ISC_TRUE);
@@ -877,7 +877,7 @@ dns_c_iplist_haskeys(dns_c_iplist_t *list)
return (ISC_FALSE);
}
#endif /* NOMINUM_PUBLIC */
-
+
void
dns_c_iplist_attach(dns_c_iplist_t *source, dns_c_iplist_t **target) {
REQUIRE(DNS_C_IPLIST_VALID(source));
@@ -920,7 +920,7 @@ dns_c_iplist_copy(isc_mem_t *mem, dns_c_iplist_t **dest, dns_c_iplist_t *src) {
}
#endif /* NOMINUM_PUBLIC */
}
-
+
newl->nextidx = src->nextidx;
*dest = newl;
@@ -966,18 +966,18 @@ dns_c_iplist_printfully(FILE *fp, int indent, isc_boolean_t porttoo,
isc_boolean_t athead = ISC_TRUE;
REQUIRE(DNS_C_IPLIST_VALID(list));
-
+
if (list->nextidx == 0) {
fputc('{', fp);
fputc('\n', fp);
dns_c_printtabs(fp, indent);
fprintf(fp, "/* no ip addresses defined */\n");
- dns_c_printtabs(fp, indent - 1);
+ dns_c_printtabs(fp, indent - 1);
fputc('}', fp);
} else {
if (porttoo) {
port = isc_sockaddr_getport(&list->ips[0]);
-
+
for (i = 0 ; i < list->nextidx ; i++) {
tmpport = isc_sockaddr_getport(&list->ips[i]);
if (tmpport != port) {
@@ -1085,21 +1085,21 @@ dns_c_iplist_append(dns_c_iplist_t *list, isc_sockaddr_t newaddr) {
list->size = newsize;
}
-
+
list->ips[i] = newaddr;
list->nextidx++;
res = ISC_R_SUCCESS;
-
+
#ifndef NOMINUM_PUBLIC
if (key != NULL) {
if (list->keys[i] != NULL) {
dns_name_free(list->keys[i], list->mem);
- isc_mem_put(list->mem, list->keys,
+ isc_mem_put(list->mem, list->keys,
sizeof (dns_name_t));
list->keys[i] = NULL;
}
-
+
res = dns_c_charptoname(list->mem, key, &list->keys[i]);
}
#endif /* NOMINUM_PUBLIC */
@@ -1114,7 +1114,7 @@ dns_c_iplist_remove(dns_c_iplist_t *list, isc_sockaddr_t newaddr) {
isc_uint32_t i;
REQUIRE(DNS_C_IPLIST_VALID(list));
-
+
for (i = 0 ; i < list->nextidx ; i++) {
if (memcmp(&list->ips[i], &newaddr, sizeof newaddr) == 0) {
break;
@@ -1153,13 +1153,13 @@ checkmask(isc_sockaddr_t *address, isc_uint32_t bits) {
if (bits > 0) {
if (address->type.sa.sa_family == AF_INET) {
isc_uint32_t mask;
-
+
if (bits > 32) {
return (ISC_R_FAILURE);
}
-
+
mask = ntohl(0xffffffffU << (32 - bits));
-
+
if ((mask & address->type.sin.sin_addr.s_addr) !=
address->type.sin.sin_addr.s_addr) {
return (ISC_R_FAILURE);
@@ -1169,15 +1169,15 @@ checkmask(isc_sockaddr_t *address, isc_uint32_t bits) {
unsigned char *maskp;
unsigned char *addrp;
int i;
-
+
if (bits > 128) {
return (ISC_R_FAILURE);
}
-
+
if (bits2v6mask(&iaddr, bits) != ISC_R_SUCCESS) {
return (ISC_R_FAILURE);
}
-
+
addrp = (unsigned char *)&address->type.sin6.sin6_addr;
maskp = (unsigned char *)&iaddr;
for (i = 0 ; i < 16 ; i++) {
@@ -1187,7 +1187,7 @@ checkmask(isc_sockaddr_t *address, isc_uint32_t bits) {
}
}
}
-
+
return (ISC_R_SUCCESS);
}
@@ -1203,10 +1203,10 @@ bits2v6mask(struct in6_addr *addr, isc_uint32_t bits) {
char addrbuff [ sizeof "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" + 1 ];
INSIST(bits <= 128);
-
+
/* Break the 128 bits up into 32-bit sections */
bitmask[0] = bitmask[1] = bitmask[2] = bitmask[3] = 0U;
-
+
if (bits >= 32) {
bitmask[0] = 0xffffffffU;
} else if (bits > 0) {
@@ -1225,9 +1225,9 @@ bits2v6mask(struct in6_addr *addr, isc_uint32_t bits) {
} else if (bits > 64) {
bitmask[2] = 0xffffffffU << (96 - bits);
}
-
+
memset(addr, 0x0, sizeof *addr);
-
+
sprintf(addrbuff, "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x",
(((bitmask[0] & 0xffff0000U) >> 16) & 0xffffU),
(bitmask[0] & 0xffff),
@@ -1243,5 +1243,5 @@ bits2v6mask(struct in6_addr *addr, isc_uint32_t bits) {
return (i == 1 ? ISC_R_SUCCESS : ISC_R_FAILURE);
}
-
+
diff --git a/lib/dns/config/confkeys.c b/lib/dns/config/confkeys.c
index e1d23ce137..08aa10add1 100644
--- a/lib/dns/config/confkeys.c
+++ b/lib/dns/config/confkeys.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confkeys.c,v 1.26 2000/07/27 09:47:04 tale Exp $ */
+/* $Id: confkeys.c,v 1.27 2000/08/01 01:23:21 tale Exp $ */
#include
@@ -43,7 +43,7 @@ dns_c_kdeflist_new(isc_mem_t *mem, dns_c_kdeflist_t **list) {
newlist->mem = mem;
newlist->magic = DNS_C_KDEFLIST_MAGIC;
-
+
ISC_LIST_INIT(newlist->keydefs);
*list = newlist;
@@ -59,7 +59,7 @@ dns_c_kdeflist_delete(dns_c_kdeflist_t **list)
dns_c_kdef_t *kd;
dns_c_kdef_t *tmpkd;
isc_result_t res;
-
+
REQUIRE(list != NULL);
REQUIRE(DNS_C_KDEFLIST_VALID(*list));
@@ -80,7 +80,7 @@ dns_c_kdeflist_delete(dns_c_kdeflist_t **list)
isc_mem_put(l->mem, l, sizeof *l);
*list = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -95,12 +95,12 @@ dns_c_kdeflist_copy(isc_mem_t *mem, dns_c_kdeflist_t **dest,
REQUIRE(dest != NULL);
REQUIRE(DNS_C_KDEFLIST_VALID(src));
-
+
res = dns_c_kdeflist_new(mem, &newlist);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
key = ISC_LIST_HEAD(src->keydefs);
while (key != NULL) {
res = dns_c_kdeflist_append(newlist, key, ISC_TRUE);
@@ -108,7 +108,7 @@ dns_c_kdeflist_copy(isc_mem_t *mem, dns_c_kdeflist_t **dest,
dns_c_kdeflist_delete(&newlist);
return (res);
}
-
+
key = ISC_LIST_NEXT(key, next);
}
@@ -124,7 +124,7 @@ dns_c_kdeflist_append(dns_c_kdeflist_t *list,
{
dns_c_kdef_t *newe;
isc_result_t res;
-
+
REQUIRE(DNS_C_KDEFLIST_VALID(list));
REQUIRE(DNS_C_KDEF_VALID(key));
@@ -217,7 +217,7 @@ dns_c_kdeflist_print(FILE *fp, int indent, dns_c_kdeflist_t *list)
if (list == NULL) {
return;
}
-
+
kd = ISC_LIST_HEAD(list->keydefs);
while (kd != NULL) {
dns_c_kdef_print(fp, indent, kd);
@@ -235,7 +235,7 @@ dns_c_kdef_new(isc_mem_t *mem, const char *name, dns_c_kdef_t **keyid)
REQUIRE(keyid != NULL);
REQUIRE(name != NULL);
REQUIRE(*name != '\0');
-
+
kd = isc_mem_get(mem, sizeof *kd);
if (kd == NULL) {
return (ISC_R_NOMEMORY);
@@ -248,12 +248,12 @@ dns_c_kdef_new(isc_mem_t *mem, const char *name, dns_c_kdef_t **keyid)
kd->magic = DNS_C_KDEF_MAGIC;
kd->mem = mem;
-
+
kd->algorithm = NULL;
kd->secret = NULL;
*keyid = kd;
-
+
return (ISC_R_SUCCESS);
}
@@ -270,7 +270,7 @@ dns_c_kdef_delete(dns_c_kdef_t **keydef)
kd = *keydef;
mem = kd->mem;
-
+
isc_mem_free(mem, kd->keyid);
if (kd->algorithm != NULL) {
@@ -304,26 +304,26 @@ dns_c_kdef_copy(isc_mem_t *mem,
REQUIRE(dest != NULL);
REQUIRE(DNS_C_KDEF_VALID(src));
-
+
newk = isc_mem_get(mem, sizeof *newk);
if (newk == NULL) {
return (ISC_R_NOMEMORY);
}
newk->magic = DNS_C_KDEF_MAGIC;
newk->secret = newk->algorithm = newk->keyid = NULL;
-
+
newk->keyid = isc_mem_strdup(mem, src->keyid);
if (newk->keyid == NULL) {
dns_c_kdef_delete(&newk);
return (ISC_R_NOMEMORY);
}
-
+
newk->algorithm = isc_mem_strdup(mem, src->algorithm);
if (newk->algorithm == NULL) {
dns_c_kdef_delete(&newk);
return (ISC_R_NOMEMORY);
}
-
+
newk->secret = isc_mem_strdup(mem, src->secret);
if (newk->secret == NULL) {
dns_c_kdef_delete(&newk);
@@ -335,7 +335,7 @@ dns_c_kdef_copy(isc_mem_t *mem,
return (ISC_R_SUCCESS);
}
-
+
void
dns_c_kdef_print(FILE *fp, int indent, dns_c_kdef_t *keydef)
@@ -367,7 +367,7 @@ dns_c_kdef_setalgorithm(dns_c_kdef_t *keydef, const char *algorithm)
if (keydef->algorithm != NULL) {
isc_mem_free(keydef->mem, keydef->algorithm);
}
-
+
keydef->algorithm = isc_mem_strdup(keydef->mem, algorithm);
if (keydef->algorithm == NULL) {
return (ISC_R_NOMEMORY);
@@ -383,11 +383,11 @@ dns_c_kdef_setsecret(dns_c_kdef_t *keydef, const char *secret)
REQUIRE(DNS_C_KDEF_VALID(keydef));
REQUIRE(secret != NULL);
REQUIRE(*secret != '\0');
-
+
if (keydef->secret != NULL) {
isc_mem_free(keydef->mem, keydef->secret);
}
-
+
keydef->secret = isc_mem_strdup(keydef->mem, secret);
if (keydef->secret == NULL) {
return (ISC_R_NOMEMORY);
@@ -411,7 +411,7 @@ dns_c_kidlist_new(isc_mem_t *mem, dns_c_kidlist_t **list)
l->magic = DNS_C_KEYIDLIST_MAGIC;
l->mem = mem;
*list = l;
-
+
ISC_LIST_INIT(l->keyids);
return (ISC_R_SUCCESS);
@@ -427,7 +427,7 @@ dns_c_kidlist_delete(dns_c_kidlist_t **list)
REQUIRE(list != NULL);
REQUIRE(DNS_C_KEYIDLIST_VALID(*list));
-
+
l = *list;
ki = ISC_LIST_HEAD(l->keyids);
@@ -445,7 +445,7 @@ dns_c_kidlist_delete(dns_c_kidlist_t **list)
isc_mem_put(l->mem, l, sizeof *l);
*list = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -467,7 +467,7 @@ dns_c_kidlist_keycount(dns_c_kidlist_t *list)
return (count);
}
-
+
@@ -478,7 +478,7 @@ keyid_delete(dns_c_kid_t **keyid)
REQUIRE(keyid != NULL);
REQUIRE(DNS_C_KEYID_VALID(*keyid));
-
+
ki = *keyid;
isc_mem_free(ki->mem, ki->keyid);
@@ -487,7 +487,7 @@ keyid_delete(dns_c_kid_t **keyid)
isc_mem_put(ki->mem, ki, sizeof *ki);
*keyid = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -501,9 +501,9 @@ dns_c_kidlist_undef(dns_c_kidlist_t *list, const char *keyid)
REQUIRE(DNS_C_KEYIDLIST_VALID(list));
REQUIRE(keyid != NULL);
REQUIRE(*keyid != '\0');
-
+
dns_c_kidlist_find(list, keyid, &ki);
-
+
if (ki != NULL) {
ISC_LIST_UNLINK(list->keyids, ki, next);
r = keyid_delete(&ki);
@@ -525,7 +525,7 @@ dns_c_kidlist_find(dns_c_kidlist_t *list, const char *keyid,
REQUIRE(keyid != NULL);
REQUIRE(*keyid != '\0');
REQUIRE(retval != NULL);
-
+
iter = ISC_LIST_HEAD(list->keyids);
while (iter != NULL) {
if (strcmp(keyid, iter->keyid) == 0) {
@@ -577,7 +577,7 @@ dns_c_kidlist_print(FILE *fp, int indent,
iter = ISC_LIST_NEXT(iter, next);
}
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "}");
}
@@ -591,7 +591,7 @@ dns_c_kid_new(isc_mem_t *mem, const char *name, dns_c_kid_t **keyid)
REQUIRE(name != NULL);
REQUIRE(*name != '\0');
REQUIRE(keyid != NULL);
-
+
ki = isc_mem_get(mem, sizeof *ki);
if (ki == NULL) {
return (ISC_R_NOMEMORY);
@@ -626,11 +626,11 @@ dns_c_pklist_new(isc_mem_t *mem, dns_c_pklist_t **pklist)
ISC_LIST_INIT(newl->keylist);
*pklist = newl;
-
+
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_c_pklist_delete(dns_c_pklist_t **list)
{
@@ -677,7 +677,7 @@ dns_c_pklist_print(FILE *fp, int indent, dns_c_pklist_t *list)
}
REQUIRE(DNS_C_PKLIST_VALID(list));
-
+
pk = ISC_LIST_HEAD(list->keylist);
while (pk != NULL) {
dns_c_pubkey_print(fp, indent, pk);
@@ -796,7 +796,7 @@ dns_c_pubkey_new(isc_mem_t *mem, isc_uint32_t flags,
isc_mem_put(mem, pkey, sizeof *pkey);
return (ISC_R_NOMEMORY);
}
-
+
*pubkey = pkey;
return (ISC_R_SUCCESS);
@@ -832,7 +832,7 @@ dns_c_pubkey_copy(isc_mem_t *mem, dns_c_pubkey_t **dest, dns_c_pubkey_t *src)
REQUIRE(DNS_C_PUBKEY_VALID(src));
REQUIRE(dest != NULL);
-
+
res = dns_c_pubkey_new(mem, src->flags, src->protocol,
src->algorithm, src->key, &k);
if (res != ISC_R_SUCCESS) {
@@ -902,7 +902,7 @@ dns_c_tkeylist_delete(dns_c_tkeylist_t **list)
REQUIRE(DNS_C_TKEYLIST_VALID(*list));
l = *list;
-
+
tkey = ISC_LIST_HEAD(l->tkeylist);
while (tkey != NULL) {
tmptkey = ISC_LIST_NEXT(tkey, next);
@@ -912,7 +912,7 @@ dns_c_tkeylist_delete(dns_c_tkeylist_t **list)
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
tkey = tmptkey;
}
@@ -920,7 +920,7 @@ dns_c_tkeylist_delete(dns_c_tkeylist_t **list)
isc_mem_put(l->mem, l, sizeof *l);
*list = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -935,12 +935,12 @@ dns_c_tkeylist_copy(isc_mem_t *mem, dns_c_tkeylist_t **dest,
REQUIRE(dest != NULL);
REQUIRE(DNS_C_TKEYLIST_VALID(src));
-
+
res = dns_c_tkeylist_new(mem, &newlist);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
tkey = ISC_LIST_HEAD(src->tkeylist);
while (tkey != NULL) {
res = dns_c_tkey_copy(mem, &tmptkey, tkey);
@@ -955,7 +955,7 @@ dns_c_tkeylist_copy(isc_mem_t *mem, dns_c_tkeylist_t **dest,
dns_c_tkeylist_delete(&newlist);
return (res);
}
-
+
tkey = ISC_LIST_NEXT(tkey, next);
}
@@ -969,10 +969,10 @@ void
dns_c_tkeylist_print(FILE *fp, int indent, dns_c_tkeylist_t *list)
{
dns_c_tkey_t *tkey;
-
+
REQUIRE(fp != NULL);
REQUIRE(DNS_C_TKEYLIST_VALID(list));
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "trusted-keys {\n");
tkey = ISC_LIST_HEAD(list->tkeylist);
@@ -996,7 +996,7 @@ dns_c_tkeylist_append(dns_c_tkeylist_t *list, dns_c_tkey_t *element,
{
dns_c_tkey_t *newe;
isc_result_t res;
-
+
REQUIRE(DNS_C_TKEYLIST_VALID(list));
REQUIRE(DNS_C_TKEY_VALID(element));
@@ -1052,7 +1052,7 @@ dns_c_tkey_new(isc_mem_t *mem, const char *domain, isc_uint32_t flags,
isc_mem_put(mem, newk, sizeof *newk);
return (ISC_R_NOMEMORY);
}
-
+
newk->pubkey = pk;
ISC_LINK_INIT(newk, next);
@@ -1083,9 +1083,9 @@ dns_c_tkey_delete(dns_c_tkey_t **tkey)
tk->magic = 0;
isc_mem_put(tk->mem, tk, sizeof *tk);
-
+
*tkey = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -1165,7 +1165,7 @@ dns_c_tkey_getkey(dns_c_tkey_t *tkey, const char **key)
{
REQUIRE(key != NULL);
REQUIRE(DNS_C_TKEY_VALID(tkey));
-
+
*key = tkey->pubkey->key;
return (ISC_R_SUCCESS);
diff --git a/lib/dns/config/conflog.c b/lib/dns/config/conflog.c
index f4fe188f51..45244db9ef 100644
--- a/lib/dns/config/conflog.c
+++ b/lib/dns/config/conflog.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: conflog.c,v 1.17 2000/07/27 09:47:05 tale Exp $ */
+/* $Id: conflog.c,v 1.18 2000/08/01 01:23:22 tale Exp $ */
#include
@@ -83,7 +83,7 @@ dns_c_logginglist_delete(dns_c_logginglist_t **list) {
REQUIRE(list != NULL);
REQUIRE(DNS_C_LOGLIST_VALID(*list));
-
+
l = *list;
chan = ISC_LIST_HEAD(l->channels);
@@ -180,10 +180,10 @@ logginglist_empty(dns_c_logginglist_t *ll) {
if (!logchan->predefined) {
return ISC_FALSE;
}
-
+
logchan = ISC_LIST_NEXT(logchan, next);
}
-
+
logcat = ISC_LIST_HEAD(ll->categories);
while (logcat != NULL) {
if (!logcat->predefined) {
@@ -195,7 +195,7 @@ logginglist_empty(dns_c_logginglist_t *ll) {
return ISC_TRUE;
}
-
+
void
dns_c_logginglist_print(FILE *fp, int indent, dns_c_logginglist_t *ll,
isc_boolean_t if_predef_too)
@@ -212,21 +212,21 @@ dns_c_logginglist_print(FILE *fp, int indent, dns_c_logginglist_t *ll,
dns_c_printtabs(fp, indent);
fprintf(fp, "logging {\n");
-
+
logchan = ISC_LIST_HEAD(ll->channels);
while (logchan != NULL) {
dns_c_logchan_print(fp, indent + 1, logchan,
if_predef_too);
logchan = ISC_LIST_NEXT(logchan, next);
}
-
+
logcat = ISC_LIST_HEAD(ll->categories);
while (logcat != NULL) {
dns_c_logcat_print(fp, indent + 1, logcat,
if_predef_too);
logcat = ISC_LIST_NEXT(logcat, next);
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "};\n");
}
@@ -253,7 +253,7 @@ dns_c_logginglist_addchannel(dns_c_logginglist_t *list,
} else {
newc = newchan;
}
-
+
tmpchan = ISC_LIST_HEAD(list->channels);
while (tmpchan != NULL) {
if (strcmp(newchan->name, tmpchan->name) == 0) {
@@ -293,7 +293,7 @@ dns_c_logginglist_addcategory(dns_c_logginglist_t *list,
REQUIRE(DNS_C_LOGLIST_VALID(list));
REQUIRE(DNS_C_LOGCAT_VALID(newcat));
-
+
if (deepcopy) {
res = dns_c_logcat_copy(list->mem, &newc, newcat);
@@ -310,7 +310,7 @@ dns_c_logginglist_addcategory(dns_c_logginglist_t *list,
if (strcmp(newcat->catname,tmpcat->catname) == 0) {
existed = ISC_TRUE;
predefined = tmpcat->predefined;
-
+
ISC_LIST_UNLINK(list->categories, tmpcat, next);
res = dns_c_logcat_delete(&tmpcat);
if (res != ISC_R_SUCCESS) {
@@ -501,13 +501,13 @@ dns_c_logchan_new(isc_mem_t *mem, const char *name,
memset(&newc->setflags, 0x0, sizeof newc->setflags);
ISC_LINK_INIT(newc, next);
-
+
newc->name = isc_mem_strdup(mem, name);
if (newc->name == NULL) {
isc_mem_put(mem, newc, sizeof *newc);
return (ISC_R_NOMEMORY);
}
-
+
switch (ctype) {
case dns_c_logchan_file:
newc->u.filec.path = NULL;
@@ -518,7 +518,7 @@ dns_c_logchan_new(isc_mem_t *mem, const char *name,
case dns_c_logchan_stderr:
break;
}
-
+
*newchan = newc;
return (ISC_R_SUCCESS);
@@ -579,7 +579,7 @@ dns_c_logchan_copy(isc_mem_t *mem, dns_c_logchan_t **dest,
logc->print_severity = src->print_severity;
logc->print_time = src->print_time;
logc->setflags = src->setflags;
-
+
switch (logc->ctype) {
case dns_c_logchan_file:
logc->u.filec.path = isc_mem_strdup(mem, src->u.filec.path);
@@ -597,7 +597,7 @@ dns_c_logchan_copy(isc_mem_t *mem, dns_c_logchan_t **dest,
}
*dest = logc;
-
+
return (ISC_R_SUCCESS);
}
@@ -612,7 +612,7 @@ dns_c_logchan_print(FILE *fp, int indent, dns_c_logchan_t *logchan,
if (logchan->predefined && !if_predef_too) {
return;
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "channel %s {\n", logchan->name) ;
@@ -669,13 +669,13 @@ dns_c_logchan_print(FILE *fp, int indent, dns_c_logchan_t *logchan,
fprintf(fp, "print-severity %s;\n",
(logchan->print_severity ? "true" : "false"));
}
-
+
if (DNS_C_CHECKBIT(CHAN_PCAT_BIT, &logchan->setflags)) {
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "print-category %s;\n",
(logchan->print_category ? "true" : "false"));
}
-
+
if (DNS_C_CHECKBIT(CHAN_PTIME_BIT, &logchan->setflags)) {
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "print-time %s;\n",
@@ -777,7 +777,7 @@ dns_c_logchan_setfacility(dns_c_logchan_t *channel, int facility) {
return (ISC_R_FAILURE);
}
-
+
if (dns_c_facility2string(facility, ISC_FALSE) == NULL) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -785,7 +785,7 @@ dns_c_logchan_setfacility(dns_c_logchan_t *channel, int facility) {
facility);
return (ISC_R_FAILURE);
}
-
+
existed = DNS_C_CHECKBIT(CHAN_FACILITY_BIT, &channel->setflags);
@@ -822,10 +822,10 @@ dns_c_logchan_setdebuglevel(dns_c_logchan_t *channel, isc_int32_t level) {
if (channel->severity == dns_c_log_debug) {
existed = DNS_C_CHECKBIT(CHAN_DEBUG_LEVEL_BIT,
&channel->setflags);
-
+
DNS_C_SETBIT(CHAN_DEBUG_LEVEL_BIT, &channel->setflags);
channel->debug_level = level;
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
} else {
return (ISC_R_FAILURE);
@@ -1181,14 +1181,14 @@ dns_c_logcat_print(FILE *fp, int indent, dns_c_logcat_t *logcat,
isc_boolean_t if_predef_too)
{
unsigned int i;
-
+
REQUIRE(fp != NULL);
REQUIRE(DNS_C_LOGCAT_VALID(logcat));
if (logcat->predefined && !if_predef_too) {
return;
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "category %s {\n", logcat->catname);
@@ -1308,7 +1308,7 @@ dns_c_logcat_getpredef(dns_c_logcat_t *logcat, isc_boolean_t *retval) {
static void
print_log_facility(FILE *fp, int value) {
REQUIRE(fp != NULL);
-
+
fputs(dns_c_facility2string(value, ISC_TRUE), fp);
}
@@ -1316,7 +1316,7 @@ print_log_facility(FILE *fp, int value) {
static void
print_log_severity(FILE *fp, dns_c_logseverity_t severity) {
REQUIRE(fp != NULL);
-
+
fputs(dns_c_logseverity2string(severity, ISC_TRUE), fp);
}
diff --git a/lib/dns/config/conflsn.c b/lib/dns/config/conflsn.c
index f976557699..234b6ba5a7 100644
--- a/lib/dns/config/conflsn.c
+++ b/lib/dns/config/conflsn.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: conflsn.c,v 1.17 2000/07/27 09:47:06 tale Exp $ */
+/* $Id: conflsn.c,v 1.18 2000/08/01 01:23:24 tale Exp $ */
#include
@@ -35,7 +35,7 @@ dns_c_lstnon_new(isc_mem_t *mem, dns_c_lstnon_t **listen) {
REQUIRE(listen != NULL);
*listen = NULL;
-
+
ll = isc_mem_get(mem, sizeof *ll);
ll->mem = mem;
ll->port = 0;
@@ -46,11 +46,11 @@ dns_c_lstnon_new(isc_mem_t *mem, dns_c_lstnon_t **listen) {
isc_mem_put(mem, ll, sizeof *ll);
return (result);
}
-
+
ISC_LINK_INIT(ll, next);
*listen = ll;
-
+
return (ISC_R_SUCCESS);
}
@@ -74,7 +74,7 @@ dns_c_lstnon_delete(dns_c_lstnon_t **listen) {
isc_mem_put(lo->mem, lo, sizeof *lo);
*listen = NULL;
-
+
return (r);
}
@@ -95,7 +95,7 @@ dns_c_lstnon_setiml(dns_c_lstnon_t *listen,
} else {
result = ISC_R_SUCCESS;
}
-
+
if (deepcopy) {
result = dns_c_ipmatchlist_copy(listen->mem,
@@ -114,7 +114,7 @@ dns_c_lstnlist_new(isc_mem_t *mem, dns_c_lstnlist_t **llist) {
REQUIRE(llist != NULL);
*llist = NULL;
-
+
ll = isc_mem_get(mem, sizeof *ll);
if (ll == NULL) {
/* XXXJAB logwrite */
@@ -126,7 +126,7 @@ dns_c_lstnlist_new(isc_mem_t *mem, dns_c_lstnlist_t **llist) {
ISC_LIST_INIT(ll->elements);
*llist = ll;
-
+
return (ISC_R_SUCCESS);
}
@@ -157,7 +157,7 @@ dns_c_lstnlist_delete(dns_c_lstnlist_t **llist) {
isc_mem_put(ll->mem, ll, sizeof *ll);
*llist = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -204,7 +204,7 @@ dns_c_lstnon_print(FILE *fp, int indent, dns_c_lstnon_t *lo,
in_port_t default_port) {
REQUIRE(lo != NULL);
REQUIRE(DNS_C_LISTEN_VALID(lo));
-
+
fprintf(fp, "listen-on ");
if (lo->port != default_port) {
fprintf(fp, "port %d ", lo->port);
@@ -222,7 +222,7 @@ dns_c_lstnonv6_print(FILE *fp, int indent, dns_c_lstnon_t *lo,
in_port_t default_port) {
REQUIRE(lo != NULL);
REQUIRE(DNS_C_LISTEN_VALID(lo));
-
+
fprintf(fp, "listen-on-v6 ");
if (lo->port != default_port) {
fprintf(fp, "port %d ", lo->port);
@@ -254,7 +254,7 @@ checklisten_element(dns_c_ipmatchelement_t *element)
case dns_c_ipmatch_localnets:
ok = ISC_FALSE;
break;
-
+
case dns_c_ipmatch_any:
case dns_c_ipmatch_none:
ok = ISC_TRUE;
@@ -263,7 +263,7 @@ checklisten_element(dns_c_ipmatchelement_t *element)
case dns_c_ipmatch_indirect:
/* XXX shouldn't be reached */
break;
-
+
case dns_c_ipmatch_acl:
/* XXX handle this. */
break;
@@ -277,11 +277,11 @@ checkv6listen_element(dns_c_ipmatchelement_t *element)
{
int pf;
isc_boolean_t ok = ISC_FALSE;
-
+
switch (element->type) {
case dns_c_ipmatch_pattern:
pf = isc_sockaddr_pf(&element->u.direct.address);
-
+
ok = ISC_TF(pf == AF_INET6);
break;
@@ -290,7 +290,7 @@ checkv6listen_element(dns_c_ipmatchelement_t *element)
case dns_c_ipmatch_localnets:
ok = ISC_FALSE;
break;
-
+
case dns_c_ipmatch_any:
case dns_c_ipmatch_none:
ok = ISC_TRUE;
@@ -299,7 +299,7 @@ checkv6listen_element(dns_c_ipmatchelement_t *element)
case dns_c_ipmatch_indirect:
/* XXX shouldn't be reached */
break;
-
+
case dns_c_ipmatch_acl:
/* XXX handle this. */
break;
@@ -317,7 +317,7 @@ isc_result_t
dns_c_lstnlist_validate(dns_c_lstnlist_t *ll)
{
#if 0
-
+
dns_c_lstnon_t *lo;
isc_boolean_t checkval;
@@ -334,18 +334,18 @@ dns_c_lstnlist_validate(dns_c_lstnlist_t *ll)
"addresses only.");
return (ISC_R_FAILURE);
}
-
+
lo = ISC_LIST_NEXT(lo, next);
}
return (ISC_R_SUCCESS);
-#else
+#else
UNUSED(ll);
return (ISC_R_SUCCESS);
-#endif
+#endif
}
@@ -370,18 +370,18 @@ dns_c_lstnlistv6_validate(dns_c_lstnlist_t *ll)
"addresses only.");
return (ISC_R_FAILURE);
}
-
+
lo = ISC_LIST_NEXT(lo, next);
}
return (ISC_R_SUCCESS);
#else
-
+
UNUSED(ll);
return (ISC_R_SUCCESS);
-
-#endif
+
+#endif
}
diff --git a/lib/dns/config/confndc.c b/lib/dns/config/confndc.c
index 0dc849d567..f38453f4af 100644
--- a/lib/dns/config/confndc.c
+++ b/lib/dns/config/confndc.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,24 +15,24 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confndc.c,v 1.24 2000/07/28 19:33:29 gson Exp $ */
+/* $Id: confndc.c,v 1.25 2000/08/01 01:23:25 tale Exp $ */
/*
** options {
** [ default-server server_name; ]
** [ default-key key_name; ]
** };
-**
+**
** server server_name {
** key key_name;
** [ host name_or_addr; ]
** };
-**
+**
** key key_name {
** algorithm string;
** secret string;
** };
-**
+**
*/
@@ -52,7 +52,7 @@
#include
#include
-
+
/*
* Type keys for symtab lookup.
*/
@@ -87,7 +87,7 @@ struct keywordtoken {
};
-/*
+/*
* DATA
*/
@@ -192,7 +192,7 @@ dns_c_ndcctx_new(isc_mem_t *mem, dns_c_ndcctx_t **ctx) {
newctx = isc_mem_get(mem, sizeof *newctx);
if (newctx == NULL)
return (ISC_R_NOMEMORY);
-
+
newctx->mem = mem;
newctx->magic = DNS_C_NDCCTX_MAGIC;
newctx->opts = NULL;
@@ -207,11 +207,11 @@ void
dns_c_ndcctx_destroy(dns_c_ndcctx_t **ndcctx) {
dns_c_ndcctx_t *ctx;
isc_mem_t *mem;
-
+
REQUIRE(ndcctx != NULL);
ctx = *ndcctx;
-
+
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
mem = ctx->mem;
@@ -268,7 +268,7 @@ dns_c_ndcopts_print(FILE *fp, dns_c_ndcopts_t *opts) {
void
dns_c_ndcserverlist_print(FILE *fp, dns_c_ndcserverlist_t *servers) {
dns_c_ndcserver_t *server;
-
+
REQUIRE(DNS_C_NDCSERVERLIST_VALID(servers));
REQUIRE(fp != NULL);
@@ -296,12 +296,12 @@ dns_c_ndcserver_print(FILE *fp, dns_c_ndcserver_t *server) {
isc_result_t
dns_c_ndcctx_setoptions(dns_c_ndcctx_t *ctx, dns_c_ndcopts_t *opts) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(opts == NULL || DNS_C_NDCOPTIONS_VALID(opts));
existed = ISC_TF(ctx->opts != NULL);
-
+
ctx->opts = opts;
if (existed)
@@ -315,7 +315,7 @@ dns_c_ndcctx_getoptions(dns_c_ndcctx_t *ctx, dns_c_ndcopts_t **opts) {
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(opts != NULL);
REQUIRE(*opts == NULL);
-
+
*opts = ctx->opts;
if (ctx->opts == NULL)
@@ -332,7 +332,7 @@ dns_c_ndcctx_setservers(dns_c_ndcctx_t *ctx, dns_c_ndcserverlist_t *servers) {
REQUIRE(servers == NULL || DNS_C_NDCSERVERLIST_VALID(servers));
existed = ISC_TF(ctx->servers != NULL);
-
+
ctx->servers = servers;
if (existed)
@@ -346,7 +346,7 @@ dns_c_ndcctx_getservers(dns_c_ndcctx_t *ctx, dns_c_ndcserverlist_t **servers) {
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(servers != NULL);
REQUIRE(*servers == NULL);
-
+
*servers = ctx->servers;
if (ctx->servers == NULL)
@@ -358,11 +358,11 @@ dns_c_ndcctx_getservers(dns_c_ndcctx_t *ctx, dns_c_ndcserverlist_t **servers) {
isc_result_t
dns_c_ndcctx_addserver(dns_c_ndcctx_t *ctx, dns_c_ndcserver_t **server) {
isc_result_t result;
-
+
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(server != NULL);
REQUIRE(DNS_C_NDCSERVER_VALID(*server));
-
+
if (ctx->servers == NULL) {
result = dns_c_ndcserverlist_new(ctx->mem, &ctx->servers);
if (result != ISC_R_SUCCESS)
@@ -416,12 +416,12 @@ dns_c_ndcctx_getkeys(dns_c_ndcctx_t *ctx, dns_c_kdeflist_t **keys) {
isc_result_t
dns_c_ndcctx_setkeys(dns_c_ndcctx_t *ctx, dns_c_kdeflist_t *keys) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(DNS_C_KDEFLIST_VALID(keys));
existed = ISC_TF(ctx->keys != NULL);
-
+
ctx->keys = keys;
if (existed)
@@ -436,7 +436,7 @@ dns_c_ndcserverlist_new(isc_mem_t *mem, dns_c_ndcserverlist_t **servers) {
REQUIRE(servers != NULL);
REQUIRE(*servers == NULL);
-
+
newlist = isc_mem_get(mem, sizeof *newlist);
if (newlist == NULL)
return (ISC_R_NOMEMORY);
@@ -446,7 +446,7 @@ dns_c_ndcserverlist_new(isc_mem_t *mem, dns_c_ndcserverlist_t **servers) {
ISC_LIST_INIT(newlist->list);
*servers = newlist;
-
+
return (ISC_R_SUCCESS);
}
@@ -482,7 +482,7 @@ dns_c_ndcserverlist_destroy(dns_c_ndcserverlist_t **servers) {
dns_c_ndcserver_t *
dns_c_ndcserverlist_first(dns_c_ndcserverlist_t *servers) {
REQUIRE(DNS_C_NDCSERVERLIST_VALID(servers));
-
+
return (ISC_LIST_HEAD(servers->list));
}
@@ -497,7 +497,7 @@ dns_c_ndcserverlist_next(dns_c_ndcserver_t *server) {
isc_result_t
dns_c_ndcopts_new(isc_mem_t *mem, dns_c_ndcopts_t **opts) {
dns_c_ndcopts_t *newo;
-
+
REQUIRE(opts != NULL);
REQUIRE(*opts == NULL);
@@ -511,7 +511,7 @@ dns_c_ndcopts_new(isc_mem_t *mem, dns_c_ndcopts_t **opts) {
newo->defkey = NULL;
*opts = newo;
-
+
return (ISC_R_SUCCESS);
}
@@ -519,11 +519,11 @@ isc_result_t
dns_c_ndcopts_destroy(dns_c_ndcopts_t **opts) {
dns_c_ndcopts_t *o;
isc_mem_t *mem;
-
+
REQUIRE(opts != NULL);
o = *opts;
-
+
REQUIRE(DNS_C_NDCOPTIONS_VALID(o));
if (o->defserver != NULL)
@@ -540,8 +540,8 @@ dns_c_ndcopts_destroy(dns_c_ndcopts_t **opts) {
return (ISC_R_SUCCESS);
}
-
-
+
+
isc_result_t
dns_c_ndcopts_getdefserver(dns_c_ndcopts_t *opts, const char **retval) {
REQUIRE(DNS_C_NDCOPTIONS_VALID(opts));
@@ -601,7 +601,7 @@ dns_c_ndcopts_setdefkey(dns_c_ndcopts_t *opts, const char *newval) {
REQUIRE(newval == NULL || *newval != '\0');
existed = ISC_TF(opts->defkey != NULL);
-
+
if (newval != NULL) {
opts->defkey = isc_mem_strdup(opts->mem, newval);
if (opts->defkey == NULL)
@@ -621,7 +621,7 @@ dns_c_ndcopts_setdefkey(dns_c_ndcopts_t *opts, const char *newval) {
isc_result_t
dns_c_ndcserver_new(isc_mem_t *mem, dns_c_ndcserver_t **server) {
dns_c_ndcserver_t *serv = NULL;
-
+
REQUIRE(server != NULL);
REQUIRE(*server == NULL);
@@ -640,12 +640,12 @@ dns_c_ndcserver_new(isc_mem_t *mem, dns_c_ndcserver_t **server) {
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_c_ndcserver_destroy(dns_c_ndcserver_t **server) {
dns_c_ndcserver_t *serv;
isc_mem_t *mem;
-
+
REQUIRE(server != NULL);
serv = *server ;
@@ -653,10 +653,10 @@ dns_c_ndcserver_destroy(dns_c_ndcserver_t **server) {
if (serv->name != NULL)
isc_mem_free(serv->mem, serv->name);
-
+
if (serv->key != NULL)
isc_mem_free(serv->mem, serv->key);
-
+
if (serv->host != NULL)
isc_mem_free(serv->mem, serv->host);
@@ -669,11 +669,11 @@ dns_c_ndcserver_destroy(dns_c_ndcserver_t **server) {
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_c_ndcserver_setkey(dns_c_ndcserver_t *server, const char *val) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_NDCSERVER_VALID(server));
existed = ISC_TF(server->key != NULL);
@@ -695,7 +695,7 @@ dns_c_ndcserver_setkey(dns_c_ndcserver_t *server, const char *val) {
isc_result_t
dns_c_ndcserver_setname(dns_c_ndcserver_t *server, const char *val) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_NDCSERVER_VALID(server));
existed = ISC_TF(server->name != NULL);
@@ -717,7 +717,7 @@ dns_c_ndcserver_setname(dns_c_ndcserver_t *server, const char *val) {
isc_result_t
dns_c_ndcserver_sethost(dns_c_ndcserver_t *server, const char *val) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_NDCSERVER_VALID(server));
existed = ISC_TF(server->host != NULL);
@@ -735,7 +735,7 @@ dns_c_ndcserver_sethost(dns_c_ndcserver_t *server, const char *val) {
else
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_c_ndcserver_getkey(dns_c_ndcserver_t *server, const char **val) {
REQUIRE(DNS_C_NDCSERVER_VALID(server));
@@ -790,11 +790,11 @@ dns_c_ndcparseconf(const char *filename, isc_mem_t *mem,
ndcpcontext pctx;
isc_result_t result;
dns_c_ndcctx_t *aConfig = NULL;
-
+
result = parser_setup(&pctx, mem, filename);
if (result != ISC_R_SUCCESS)
goto done;
-
+
result = parse_file(&pctx, &aConfig);
if (result != ISC_R_SUCCESS && aConfig != NULL)
dns_c_ndcctx_destroy(&aConfig);
@@ -802,12 +802,12 @@ dns_c_ndcparseconf(const char *filename, isc_mem_t *mem,
done:
if (pctx.thelexer != NULL)
isc_lex_destroy(&pctx.thelexer);
-
+
if (pctx.thekeywords != NULL)
isc_symtab_destroy(&pctx.thekeywords);
*ndcctx = aConfig;
-
+
return (result);
}
@@ -828,7 +828,7 @@ parse_file(ndcpcontext *pctx, dns_c_ndcctx_t **context) {
result = getnexttoken(pctx);
done = ISC_TF(result != ISC_R_SUCCESS);
-
+
while (!done) {
switch (pctx->currtok) {
case L_END_INPUT:
@@ -856,7 +856,7 @@ parse_statement(ndcpcontext *pctx) {
dns_c_ndcopts_t *tmpopts = NULL;
dns_c_ndcserver_t *server = NULL;
dns_c_kdeflist_t *keys = NULL;
-
+
switch (pctx->currtok) {
case L_OPTIONS:
result = parse_options(pctx, &opts);
@@ -892,7 +892,7 @@ parse_statement(ndcpcontext *pctx) {
result = parse_keystmt(pctx, keys);
break;
-
+
default:
syntax_error(pctx, pctx->currtok);
result = ISC_R_FAILURE;
@@ -908,7 +908,7 @@ parse_statement(ndcpcontext *pctx) {
if (opts != NULL)
dns_c_ndcopts_destroy(&opts);
-
+
return (result);
}
@@ -920,21 +920,21 @@ parse_options(ndcpcontext *pctx, dns_c_ndcopts_t **opts) {
dns_c_ndcctx_t *cfgctx = pctx->thecontext;
REQUIRE(DNS_C_NDCCTX_VALID(cfgctx));
-
+
if (!eat(pctx, L_OPTIONS) || !eat_lbrace(pctx))
return (ISC_R_FAILURE);
result = dns_c_ndcopts_new(cfgctx->mem, &newopts);
if (result != ISC_R_SUCCESS)
return (result);
-
+
result = ISC_R_SUCCESS;
while (result == ISC_R_SUCCESS && pctx->currtok != L_RBRACE) {
option = pctx->currtok;
if (!eat(pctx, pctx->currtok))
return (ISC_R_FAILURE);
-
+
switch (option) {
case L_DEFAULT_SERVER:
if (!looking_at_stringoripaddr(pctx))
@@ -944,22 +944,22 @@ parse_options(ndcpcontext *pctx, dns_c_ndcopts_t **opts) {
pctx->tokstr);
if (result == ISC_R_SUCCESS)
result = getnexttoken(pctx);
-
+
if (result != ISC_R_SUCCESS)
return (result);
break;
-
+
case L_DEFAULT_KEY:
if (!looking_at_anystring(pctx))
return (result);
-
+
result = dns_c_ndcopts_setdefkey(newopts,
pctx->tokstr);
if (result == ISC_R_SUCCESS)
result = getnexttoken(pctx);
-
+
if (result != ISC_R_SUCCESS)
return (result);
break;
@@ -986,7 +986,7 @@ parse_options(ndcpcontext *pctx, dns_c_ndcopts_t **opts) {
*opts = newopts;
else
dns_c_ndcopts_destroy(&newopts);
-
+
return (result);
}
@@ -998,7 +998,7 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
char *keyname = NULL;
char *hostname = NULL;
dns_c_ndcserver_t *serv = NULL;
-
+
if (!eat(pctx, L_SERVER))
return (ISC_R_FAILURE);
@@ -1030,7 +1030,7 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
result = ISC_R_FAILURE;
goto done;
}
-
+
switch (field) {
case L_KEY:
if (!looking_at_anystring(pctx)) {
@@ -1047,10 +1047,10 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
keyname = isc_mem_strdup(pctx->themem, pctx->tokstr);
if (keyname == NULL)
result = ISC_R_NOMEMORY;
-
+
if (result == ISC_R_SUCCESS)
result = getnexttoken(pctx);
-
+
break;
case L_HOST:
@@ -1068,10 +1068,10 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
hostname = isc_mem_strdup(pctx->themem, pctx->tokstr);
if (hostname == NULL)
result = ISC_R_NOMEMORY;
-
+
if (result == ISC_R_SUCCESS)
result = getnexttoken(pctx);
-
+
break;
default:
@@ -1082,7 +1082,7 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
if (result != ISC_R_SUCCESS)
goto done;
-
+
if (!eat_eos(pctx)) {
result = ISC_R_FAILURE;
goto done;
@@ -1110,7 +1110,7 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
result = dns_c_ndcserver_setname(serv, servername);
if (result != ISC_R_SUCCESS)
goto done;
-
+
result = dns_c_ndcserver_setkey(serv, keyname);
if (result != ISC_R_SUCCESS)
goto done;
@@ -1125,7 +1125,7 @@ parse_serverstmt(ndcpcontext *pctx, dns_c_ndcserver_t **server) {
done:
if (serv != NULL)
dns_c_ndcserver_destroy(&serv);
-
+
if (servername != NULL)
isc_mem_free(pctx->themem, servername);
@@ -1147,7 +1147,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) {
char *keyname = NULL;
char *algorithm = NULL;
char *secret = NULL;
-
+
REQUIRE(DNS_C_NDCCTX_VALID(ctx));
REQUIRE(DNS_C_KDEFLIST_VALID(keys));
@@ -1189,7 +1189,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) {
result = ISC_R_FAILURE;
goto done;
}
-
+
if (algorithm != NULL) {
parser_warn(pctx, ISC_FALSE,
"multiple 'algorithm' values");
@@ -1208,7 +1208,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) {
result = ISC_R_FAILURE;
goto done;
}
-
+
if (secret != NULL) {
parser_warn(pctx, ISC_FALSE,
"multiple 'secret' values");
@@ -1249,7 +1249,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) {
parser_error(pctx, ISC_FALSE, "zero length 'algorithm'");
result = ISC_R_FAILURE;
}
-
+
if (secret == NULL) {
parser_error(pctx, ISC_FALSE, "missing 'secret'");
result = ISC_R_FAILURE;
@@ -1260,7 +1260,7 @@ parse_keystmt(ndcpcontext *pctx, dns_c_kdeflist_t *keys) {
if (result != ISC_R_SUCCESS)
goto done;
-
+
result = dns_c_kdef_new(keys->mem, keyname, &key);
if (result != ISC_R_SUCCESS)
goto done;
@@ -1284,7 +1284,7 @@ done:
return (result);
}
-
+
static const char *
keyword2str(isc_int32_t val) {
int i;
@@ -1303,7 +1303,7 @@ keyword2str(isc_int32_t val) {
static isc_boolean_t
eat(ndcpcontext *pctx, isc_uint32_t token) {
isc_boolean_t rval = ISC_FALSE;
-
+
if (looking_at(pctx, token))
if (getnexttoken(pctx) == ISC_R_SUCCESS)
rval = ISC_TRUE;
@@ -1314,7 +1314,7 @@ eat(ndcpcontext *pctx, isc_uint32_t token) {
static isc_boolean_t
looking_at(ndcpcontext *pctx, isc_uint32_t token) {
isc_boolean_t rval = ISC_TRUE;
-
+
if (pctx->currtok != token) {
parser_error(pctx, ISC_TRUE, "expected a '%s'",
keyword2str(token));
@@ -1346,7 +1346,7 @@ looking_at_stringoripaddr(ndcpcontext *pctx) {
return (ISC_TRUE);
}
-
+
static isc_boolean_t
eat_lbrace(ndcpcontext *pctx) {
@@ -1400,13 +1400,13 @@ parser_setup(ndcpcontext *pctx, isc_mem_t *mem, const char *filename) {
}
memset(specials, 0x0, sizeof specials);
-
+
specials['{'] = 1;
specials['}'] = 1;
specials[';'] = 1;
specials['"'] = 1;
isc_lex_setspecials(pctx->thelexer, specials);
-
+
isc_lex_setcomments(pctx->thelexer, (ISC_LEXCOMMENT_C |
ISC_LEXCOMMENT_CPLUSPLUS |
ISC_LEXCOMMENT_SHELL));
@@ -1582,7 +1582,7 @@ is_ip4addr(const char *string, struct in_addr *addr) {
else
return (ISC_FALSE);
-
+
if (inet_pton(AF_INET, addrbuf, addr) != 1)
return (ISC_FALSE);
@@ -1601,7 +1601,7 @@ getnexttoken(ndcpcontext *pctx) {
pctx->prevtok = pctx->currtok;
strcpy(pctx->prevtokstr, pctx->tokstr);
-
+
result = isc_lex_gettoken(pctx->thelexer, options, &token);
switch(result) {
@@ -1614,7 +1614,7 @@ getnexttoken(ndcpcontext *pctx) {
case isc_tokentype_special:
case isc_tokentype_string: {
char *tokstr = &pctx->tokstr[0];
-
+
if (token.type == isc_tokentype_special) {
tokstr[0] = token.value.as_char;
tokstr[1] = '\0';
@@ -1638,7 +1638,7 @@ getnexttoken(ndcpcontext *pctx) {
} else
pctx->currtok = keywordtok.as_integer;
-
+
result = ISC_R_SUCCESS;
break;
}
@@ -1716,7 +1716,7 @@ getnexttoken(ndcpcontext *pctx) {
result = ISC_R_FAILURE;
break;
}
-
+
return (result);
}
diff --git a/lib/dns/config/confparser.y.dirty b/lib/dns/config/confparser.y.dirty
index 8048b4e304..178348425d 100644
--- a/lib/dns/config/confparser.y.dirty
+++ b/lib/dns/config/confparser.y.dirty
@@ -1,11 +1,11 @@
%{
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confparser.y.dirty,v 1.5 2000/07/31 21:07:02 explorer Exp $ */
+/* $Id: confparser.y.dirty,v 1.6 2000/08/01 01:23:26 tale Exp $ */
#include
@@ -97,9 +97,9 @@ static isc_lexspecials_t specials;
* XXXJAB The #define for the default OMAPI port is not available
* to us, so we make our own.
*/
-
+
#define OMAPI_DEFAULT_PORT 953
-
+
#define CONF_MAX_IDENT 1024
/* This should be sufficient to permit multiple parsers and lexers if needed */
@@ -513,7 +513,7 @@ options_stmt: L_OPTIONS
"zones and views");
YYABORT;
}
-
+
tmpres = dns_c_ctx_getoptions(currcfg, &options);
if (tmpres == ISC_R_SUCCESS) {
parser_error(ISC_FALSE, "cannot redefine options");
@@ -1561,8 +1561,8 @@ control_keys: /* nothing */
$$ = $3;
};
-
-
+
+
control_port: /* nothing */
{
$$ = OMAPI_DEFAULT_PORT;
@@ -1816,7 +1816,7 @@ ip_and_port_list: ip_and_port_element L_EOS
isc_mem_free(memctx, $2);
}
#endif /* NOMINUM_PUBLIC */
-
+
$$ = list;
}
#ifndef NOMINUM_PUBLIC
@@ -1966,7 +1966,7 @@ notify_setting: yea_or_nay
$$ = dns_notifytype_yes;
else
$$ = dns_notifytype_no;
-
+
}
| L_EXPLICIT
{
@@ -2074,7 +2074,7 @@ size_clause: L_DATASIZE size_spec
"'max-cache-size'");
YYABORT;
}
-
+
tmpres = dns_c_ctx_setmaxcachesize(currcfg, $2);
if (tmpres == ISC_R_EXISTS) {
parser_error(ISC_FALSE,
@@ -2112,7 +2112,7 @@ size_spec: any_string
isc_result_totext(tmpres));
$$ = DNS_C_SIZE_SPEC_DEFAULT;
}
-
+
isc_mem_free(memctx, $1);
}
| L_INTEGER
@@ -2973,11 +2973,11 @@ keyid_list: /* nothing */
}
isc_mem_free(memctx, $2);
-
+
dns_c_kidlist_append($$, kid);
};
-
+
/*
* Address Matching
*/
@@ -4041,7 +4041,7 @@ view_option: L_FORWARD zone_forward_opt
"'max-cache-size'");
YYABORT;
}
-
+
tmpres = dns_c_view_setmaxcachesize(view, $2);
if (tmpres == ISC_R_EXISTS) {
parser_error(ISC_FALSE,
@@ -4369,7 +4369,7 @@ zone_stmt: L_ZONE domain_name optional_class L_LBRACE L_TYPE zone_type L_EOS
if (tmpres != ISC_R_SUCCESS) {
YYABORT;
}
-
+
tmpres = callbacks->zonecbk(currcfg,
zone,
view,
@@ -5121,7 +5121,7 @@ trusted_keys_stmt: L_TRUSTED_KEYS
} else {
tmpres = dns_c_view_gettrustedkeys(view, &newlist);
}
-
+
if (tmpres == ISC_R_NOTFOUND) {
tmpres = dns_c_tkeylist_new(currcfg->mem, &newlist);
if (tmpres != ISC_R_SUCCESS) {
@@ -5142,7 +5142,7 @@ trusted_keys_stmt: L_TRUSTED_KEYS
newlist,
ISC_FALSE);
}
-
+
if (tmpres != ISC_R_SUCCESS) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG,
@@ -5173,7 +5173,7 @@ trusted_key: any_string L_INTEGER L_INTEGER L_INTEGER L_QSTRING
tmpres = dns_c_view_gettrustedkeys(view, &list);
mem = view->mem;
}
-
+
if (tmpres != ISC_R_SUCCESS) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG,
diff --git a/lib/dns/config/confpvt.h b/lib/dns/config/confpvt.h
index 4e3d889af7..12ee6945b7 100644
--- a/lib/dns/config/confpvt.h
+++ b/lib/dns/config/confpvt.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confpvt.h,v 1.9 2000/07/27 09:47:10 tale Exp $ */
+/* $Id: confpvt.h,v 1.10 2000/08/01 01:23:27 tale Exp $ */
#ifndef CONFIG_CONFPVT_H
#define CONFIG_CONFPVT_H 1
diff --git a/lib/dns/config/confresolv.c b/lib/dns/config/confresolv.c
index a4bb24e52e..1667cfd3e2 100644
--- a/lib/dns/config/confresolv.c
+++ b/lib/dns/config/confresolv.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confresolv.c,v 1.8 2000/07/27 09:47:11 tale Exp $ */
+/* $Id: confresolv.c,v 1.9 2000/08/01 01:23:28 tale Exp $ */
#include
@@ -29,7 +29,7 @@ isc_result_t
dns_c_resolv_new(isc_mem_t *mem, dns_c_resolv_t **cfgres) {
UNUSED(mem);
UNUSED(cfgres);
-
+
/* XXX nothing yet */
return (ISC_R_SUCCESS);
@@ -45,5 +45,5 @@ dns_c_resolv_delete(dns_c_resolv_t **cfgres) {
return (ISC_R_SUCCESS);
}
-
+
diff --git a/lib/dns/config/confrrset.c b/lib/dns/config/confrrset.c
index 97c27ec706..c511455c0c 100644
--- a/lib/dns/config/confrrset.c
+++ b/lib/dns/config/confrrset.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confrrset.c,v 1.15 2000/07/27 09:47:12 tale Exp $ */
+/* $Id: confrrset.c,v 1.16 2000/08/01 01:23:29 tale Exp $ */
#include
@@ -27,7 +27,7 @@
isc_result_t
dns_c_rrsolist_clear(dns_c_rrsolist_t *olist) {
dns_c_rrso_t *elem;
-
+
REQUIRE(DNS_C_RRSOLIST_VALID(olist));
elem = ISC_LIST_HEAD(olist->elements);
@@ -71,13 +71,13 @@ dns_c_rrsolist_new(isc_mem_t *mem, dns_c_rrsolist_t **rval) {
if (ro == NULL) {
return (ISC_R_NOMEMORY);
}
-
+
ISC_LIST_INIT(ro->elements);
ro->mem = mem;
ro->magic = DNS_C_RRSOLIST_MAGIC;
*rval = ro;
-
+
return (ISC_R_SUCCESS);
}
@@ -90,11 +90,11 @@ dns_c_rrso_new(isc_mem_t *mem, dns_c_rrso_t **res, dns_rdataclass_t oclass,
REQUIRE(mem != NULL);
REQUIRE(res != NULL);
-
+
if (name == NULL) {
name = "*";
}
-
+
newo = isc_mem_get(mem, sizeof *newo);
if (newo == NULL) {
return (ISC_R_NOMEMORY);
@@ -138,7 +138,7 @@ dns_c_rrsolist_delete(dns_c_rrsolist_t **list) {
if (r != ISC_R_SUCCESS) {
return (r);
}
-
+
elem = q;
}
@@ -166,7 +166,7 @@ dns_c_rrso_delete(dns_c_rrso_t **order) {
isc_mem_put(oldo->mem, oldo, sizeof *oldo);
*order = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -186,7 +186,7 @@ dns_c_rrso_copy(isc_mem_t *mem, dns_c_rrso_t **dest, dns_c_rrso_t *source) {
} else {
*dest = NULL;
}
-
+
return (res);
}
@@ -202,12 +202,12 @@ dns_c_rrsolist_copy(isc_mem_t *mem, dns_c_rrsolist_t **dest,
REQUIRE(DNS_C_RRSOLIST_VALID(source));
REQUIRE(dest != NULL);
-
+
res = dns_c_rrsolist_new(mem, &nlist);
if (res != ISC_R_SUCCESS) {
return (res);
}
-
+
elem = ISC_LIST_HEAD(source->elements);
while (elem != NULL) {
res = dns_c_rrso_copy(mem, &newe, elem);
@@ -217,7 +217,7 @@ dns_c_rrsolist_copy(isc_mem_t *mem, dns_c_rrsolist_t **dest,
}
ISC_LIST_APPEND(nlist->elements, newe, next);
-
+
elem = ISC_LIST_NEXT(elem, next);
}
@@ -231,11 +231,11 @@ dns_c_rrsolist_print(FILE *fp, int indent, dns_c_rrsolist_t *rrlist) {
dns_c_rrso_t *or;
REQUIRE(DNS_C_RRSOLIST_VALID(rrlist));
-
+
if (ISC_LIST_EMPTY(rrlist->elements)) {
return;
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "rrset-order {\n");
@@ -247,22 +247,22 @@ dns_c_rrsolist_print(FILE *fp, int indent, dns_c_rrsolist_t *rrlist) {
dns_c_printtabs(fp, indent);
fprintf(fp, "};\n");
-
+
}
void
dns_c_rrso_print(FILE *fp, int indent, dns_c_rrso_t *order) {
REQUIRE(DNS_C_RRSO_VALID(order));
-
+
dns_c_printtabs(fp, indent);
-
+
fputs("class ", fp);
if (order->oclass == dns_rdataclass_any) {
fputc('*', fp);
} else {
dns_c_dataclass_tostream(fp, order->oclass);
}
-
+
fputs(" type ", fp);
if (order->otype == dns_rdatatype_any) {
@@ -275,6 +275,6 @@ dns_c_rrso_print(FILE *fp, int indent, dns_c_rrso_t *order) {
fprintf(fp, " order %s",
dns_c_ordering2string(order->ordering, ISC_TRUE));
-
+
fputs(";\n", fp);
}
diff --git a/lib/dns/config/confview.c b/lib/dns/config/confview.c
index a551b5b540..d917db6296 100644
--- a/lib/dns/config/confview.c
+++ b/lib/dns/config/confview.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confview.c,v 1.41 2000/07/31 21:07:03 explorer Exp $ */
+/* $Id: confview.c,v 1.42 2000/08/01 01:23:30 tale Exp $ */
#include
@@ -152,7 +152,7 @@ PVT_CONCAT(dns_c_view_unset, FUNCNAME)(dns_c_view_t *view) { \
return (ISC_R_NOTFOUND); \
} \
}
-
+
#define GETIPMLIST(FUNCNAME, FIELDNAME) \
isc_result_t \
@@ -175,7 +175,7 @@ PVT_CONCAT(dns_c_view_get, FUNCNAME)(dns_c_view_t *view, \
isc_result_t
dns_c_viewtable_new(isc_mem_t *mem, dns_c_viewtable_t **viewtable) {
dns_c_viewtable_t *table;
-
+
REQUIRE(viewtable != NULL);
table = isc_mem_get(mem, sizeof *table);
@@ -200,13 +200,13 @@ dns_c_viewtable_new(isc_mem_t *mem, dns_c_viewtable_t **viewtable) {
isc_result_t
dns_c_viewtable_delete(dns_c_viewtable_t **viewtable) {
dns_c_viewtable_t *table;
-
+
REQUIRE(viewtable != NULL);
REQUIRE(DNS_C_VIEWTABLE_VALID(*viewtable));
table = *viewtable;
*viewtable = NULL;
-
+
dns_c_viewtable_clear(table);
table->magic = 0;
@@ -241,7 +241,7 @@ void
dns_c_viewtable_addview(dns_c_viewtable_t *viewtable, dns_c_view_t *view) {
REQUIRE(DNS_C_VIEWTABLE_VALID(viewtable));
REQUIRE(DNS_C_VIEW_VALID(view));
-
+
ISC_LIST_APPEND(viewtable->views, view, next);
}
@@ -251,7 +251,7 @@ void
dns_c_viewtable_rmview(dns_c_viewtable_t *viewtable, dns_c_view_t *view) {
REQUIRE(DNS_C_VIEWTABLE_VALID(viewtable));
REQUIRE(DNS_C_VIEW_VALID(view));
-
+
ISC_LIST_UNLINK(viewtable->views, view, next);
}
@@ -262,14 +262,14 @@ dns_c_viewtable_clear(dns_c_viewtable_t *table) {
dns_c_view_t *elem;
dns_c_view_t *tmpelem;
isc_result_t r;
-
+
REQUIRE(DNS_C_VIEWTABLE_VALID(table));
-
+
elem = ISC_LIST_HEAD(table->views);
while (elem != NULL) {
tmpelem = ISC_LIST_NEXT(elem, next);
ISC_LIST_UNLINK(table->views, elem, next);
-
+
r = dns_c_view_delete(&elem);
if (r != ISC_R_SUCCESS) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
@@ -307,7 +307,7 @@ dns_c_viewtable_viewbyname(dns_c_viewtable_t *viewtable,
elem = ISC_LIST_NEXT(elem, next);
}
-
+
if (elem != NULL) {
*retval = elem;
}
@@ -325,7 +325,7 @@ dns_c_viewtable_rmviewbyname(dns_c_viewtable_t *viewtable,
isc_result_t res;
REQUIRE(DNS_C_VIEWTABLE_VALID(viewtable));
-
+
res = dns_c_viewtable_viewbyname(viewtable, name, &view);
if (res == ISC_R_SUCCESS) {
ISC_LIST_UNLINK(viewtable->views, view, next);
@@ -335,7 +335,7 @@ dns_c_viewtable_rmviewbyname(dns_c_viewtable_t *viewtable,
return (res);
}
-
+
isc_result_t
dns_c_viewtable_checkviews(dns_c_viewtable_t *viewtable) {
dns_c_view_t *elem;
@@ -344,7 +344,7 @@ dns_c_viewtable_checkviews(dns_c_viewtable_t *viewtable) {
isc_uint32_t buival;
isc_result_t result = ISC_R_SUCCESS;
dns_c_rrsolist_t *boval;
-
+
REQUIRE(DNS_C_VIEWTABLE_VALID(viewtable));
elem = ISC_LIST_HEAD(viewtable->views);
@@ -405,11 +405,11 @@ dns_c_viewtable_checkviews(dns_c_viewtable_t *viewtable) {
DNS_LOGMODULE_CONFIG, ISC_LOG_WARNING,
"view 'rrset-order' is not yet "
"implemented");
-
+
elem = ISC_LIST_NEXT(elem, next);
}
-
+
return (result);
}
@@ -476,7 +476,7 @@ dns_c_view_new(isc_mem_t *mem, const char *name, dns_rdataclass_t viewclass,
view->rfc2308_type1 = NULL;
view->additional_from_cache = NULL;
view->additional_from_auth = NULL;
-
+
view->transfer_source = NULL;
view->transfer_source_v6 = NULL;
view->query_source = NULL;
@@ -498,7 +498,7 @@ dns_c_view_new(isc_mem_t *mem, const char *name, dns_rdataclass_t viewclass,
view->peerlist = NULL;
view->trusted_keys = NULL;
-
+
#if 0
view->max_transfer_time_in = NULL;
view->max_transfer_idle_in = NULL;
@@ -507,7 +507,7 @@ dns_c_view_new(isc_mem_t *mem, const char *name, dns_rdataclass_t viewclass,
#endif
ISC_LINK_INIT(view, next);
-
+
*newview = view;
return (ISC_R_SUCCESS);
@@ -520,7 +520,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
in_port_t port;
REQUIRE(DNS_C_VIEW_VALID(view));
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "view \"%s\"", view->name);
@@ -578,7 +578,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
dns_c_printtabs(fp, indent + 1); \
fprintf(fp, "%s %d;\n",NAME,(int)*view->FIELD); \
}
-
+
#define PRINT_AS_MINUTES(FIELD, NAME) \
if (view->FIELD != NULL) { \
dns_c_printtabs(fp, indent + 1); \
@@ -598,7 +598,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
fprintf(fp, ";\n"); \
}
-
+
if (view->forward != NULL) {
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "forward %s;\n",
@@ -642,7 +642,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
dns_c_transport2string(dns_trans_primary, ISC_TRUE),
dns_c_nameseverity2string(nameseverity, ISC_TRUE));
}
-
+
if (view->check_names[dns_trans_secondary] != NULL) {
nameseverity = *view->check_names[dns_trans_secondary];
dns_c_printtabs(fp, indent + 1);
@@ -650,7 +650,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
dns_c_transport2string(dns_trans_secondary, ISC_TRUE),
dns_c_nameseverity2string(nameseverity, ISC_TRUE));
}
-
+
if (view->check_names[dns_trans_response] != NULL) {
nameseverity = *view->check_names[dns_trans_response];
dns_c_printtabs(fp, indent + 1);
@@ -673,7 +673,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
PRINT_IP(transfer_source, "transfer-source");
PRINT_IP(transfer_source_v6, "transfer-source-v6");
-
+
PRINT_IPANDPORT(query_source, "query-source");
PRINT_IPANDPORT(query_source_v6, "query-source-v6");
@@ -694,14 +694,14 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
fprintf(fp, "additional-data %s;\n",
dns_c_addata2string(*view->additional_data, ISC_TRUE));
}
-
+
if (view->transfer_format != NULL) {
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "transfer-format %s;\n",
dns_c_transformat2string(*view->transfer_format,
ISC_TRUE));
}
-
+
if (view->keydefs != NULL) {
dns_c_kdeflist_print(fp, indent + 1, view->keydefs);
@@ -718,13 +718,13 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
}
-#if 0
+#if 0
PRINT_INT32(max_transfer_time_in, "max-transfer-time-in");
PRINT_INT32(max_transfer_idle_in, "max-transfer-idle-in");
PRINT_INT32(transfers_per_ns, "transfers-per-ns");
PRINT_INT32(serialqueries, "serial-queries");
#endif
-
+
fprintf(fp, "\n");
if (view->zonelist != NULL) {
@@ -739,7 +739,7 @@ dns_c_view_print(FILE *fp, int indent, dns_c_view_t *view) {
#undef PRINT_INT32
#undef PRINT_IP
#undef PRINT_IPANDPORT
-
+
}
@@ -760,14 +760,14 @@ dns_c_view_delete(dns_c_view_t **viewptr) {
isc_mem_put(view->mem, view->FIELD, sizeof (*view->FIELD)); \
view->FIELD = NULL; \
} } while (0)
-
+
REQUIRE(viewptr != NULL);
REQUIRE(DNS_C_VIEW_VALID(*viewptr));
view = *viewptr;
isc_mem_free(view->mem, view->name);
-
+
if (view->zonelist != NULL) {
dns_c_zonelist_delete(&view->zonelist);
}
@@ -777,11 +777,11 @@ dns_c_view_delete(dns_c_view_t **viewptr) {
if (view->forwarders != NULL) {
dns_c_iplist_detach(&view->forwarders);
}
-
+
if (view->also_notify != NULL) {
dns_c_iplist_detach(&view->also_notify);
}
-
+
FREEIPMLIST(allowquery);
FREEIPMLIST(allowupdateforwarding);
FREEIPMLIST(transferacl);
@@ -831,18 +831,18 @@ dns_c_view_delete(dns_c_view_t **viewptr) {
dns_c_view_unsetpeerlist(view);
dns_c_view_unsettrustedkeys(view);
-
-#if 0
+
+#if 0
FREEFIELD(max_transfer_time_in);
FREEFIELD(max_transfer_idle_in);
FREEFIELD(transfers_per_ns);
FREEFIELD(serial_queries);
#endif
-
-
+
+
view->magic = 0;
isc_mem_put(view->mem, view, sizeof *view);
-
+
return (ISC_R_SUCCESS);
}
@@ -856,7 +856,7 @@ dns_c_view_keydefinedp(dns_c_view_t *view, const char *keyname) {
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(keyname != NULL);
REQUIRE(*keyname != '\0');
-
+
if (view->keydefs != NULL) {
res = dns_c_kdeflist_find(view->keydefs, keyname, &keyid);
if (res == ISC_R_SUCCESS) {
@@ -899,19 +899,19 @@ isc_result_t
dns_c_view_addzone(dns_c_view_t *view, dns_c_zone_t *zone) {
isc_result_t res;
dns_c_zone_t *attached;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(DNS_C_ZONE_VALID(zone));
dns_c_zone_attach(zone, &attached);
-
+
if (view->zonelist == NULL) {
res = dns_c_zonelist_new(view->mem, &view->zonelist);
if (res != ISC_R_SUCCESS) {
return (res);
}
}
-
+
return (dns_c_zonelist_addzone(view->zonelist, attached));
}
@@ -922,7 +922,7 @@ dns_c_view_getzonelist(dns_c_view_t *view, dns_c_zonelist_t **zonelist) {
REQUIRE(zonelist != NULL);
*zonelist = view->zonelist;
-
+
if (view->zonelist == NULL) {
return (ISC_R_NOTFOUND);
} else {
@@ -953,7 +953,7 @@ SETBYTYPE(dns_c_forw_t, forward, forward)
UNSETBYTYPE(dns_c_forw_t, forward, forward)
GETBYTYPE(dns_c_forw_t, forward, forward)
-
+
/*
**
*/
@@ -965,7 +965,7 @@ dns_c_view_setforwarders(dns_c_view_t *view,
{
isc_boolean_t existed = ISC_FALSE;
isc_result_t res;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(DNS_C_IPLIST_VALID(ipl));
@@ -987,7 +987,7 @@ dns_c_view_setforwarders(dns_c_view_t *view,
return (res);
}
}
-
+
isc_result_t
@@ -1001,8 +1001,8 @@ dns_c_view_unsetforwarders(dns_c_view_t *view) {
return (ISC_R_NOTFOUND);
}
}
-
-
+
+
isc_result_t
dns_c_view_getforwarders(dns_c_view_t *view,
@@ -1010,7 +1010,7 @@ dns_c_view_getforwarders(dns_c_view_t *view,
{
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(ipl != NULL);
-
+
*ipl = view->forwarders;
return (*ipl == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
@@ -1027,7 +1027,7 @@ dns_c_view_setalsonotify(dns_c_view_t *view,
dns_c_iplist_t *ipl)
{
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(DNS_C_IPLIST_VALID(ipl));
@@ -1040,7 +1040,7 @@ dns_c_view_setalsonotify(dns_c_view_t *view,
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
-
+
isc_result_t
@@ -1054,8 +1054,8 @@ dns_c_view_unsetalsonotify(dns_c_view_t *view) {
return (ISC_R_NOTFOUND);
}
}
-
-
+
+
isc_result_t
dns_c_view_getalsonotify(dns_c_view_t *view,
@@ -1098,13 +1098,13 @@ dns_c_view_setordering(dns_c_view_t *view,
} else {
dns_c_rrsolist_clear(view->ordering);
}
-
+
res = dns_c_rrsolist_append(view->ordering, olist);
} else {
if (view->ordering != NULL) {
dns_c_rrsolist_delete(&view->ordering);
}
-
+
view->ordering = olist;
res = ISC_R_SUCCESS;
}
@@ -1112,11 +1112,11 @@ dns_c_view_setordering(dns_c_view_t *view,
if (res == ISC_R_SUCCESS && existed) {
res = ISC_R_EXISTS;
}
-
+
return (res);
}
-
+
isc_result_t
@@ -1159,7 +1159,7 @@ dns_c_view_setchecknames(dns_c_view_t *view,
{
isc_boolean_t existed = ISC_FALSE;
dns_severity_t **ptr = NULL;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
switch(transtype) {
@@ -1182,7 +1182,7 @@ dns_c_view_setchecknames(dns_c_view_t *view,
}
**ptr = newval;
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -1193,7 +1193,7 @@ dns_c_view_getchecknames(dns_c_view_t *view,
dns_severity_t *retval)
{
isc_result_t result;
- dns_severity_t **ptr = NULL;
+ dns_severity_t **ptr = NULL;
REQUIRE(DNS_C_VIEW_VALID(view));
switch (transtype) {
@@ -1202,7 +1202,7 @@ dns_c_view_getchecknames(dns_c_view_t *view,
case dns_trans_response:
ptr = &view->check_names[transtype];
break;
-
+
default:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1226,7 +1226,7 @@ dns_c_view_unsetchecknames(dns_c_view_t *view,
dns_c_trans_t transtype)
{
dns_severity_t **ptr = NULL;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
switch(transtype) {
@@ -1246,7 +1246,7 @@ dns_c_view_unsetchecknames(dns_c_view_t *view,
if (*ptr == NULL) {
return (ISC_R_NOTFOUND);
}
-
+
isc_mem_put(view->mem, *ptr, sizeof (**ptr));
return (ISC_R_SUCCESS);
@@ -1259,7 +1259,7 @@ dns_c_view_getkeydefs(dns_c_view_t *view, dns_c_kdeflist_t **retval) {
REQUIRE(retval != NULL);
*retval = view->keydefs;
-
+
if (view->keydefs == NULL) {
return (ISC_R_NOTFOUND);
} else {
@@ -1305,7 +1305,7 @@ isc_result_t
dns_c_view_getpeerlist(dns_c_view_t *view, dns_peerlist_t **retval) {
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(retval != NULL);
-
+
if (view->peerlist == NULL) {
*retval = NULL;
return (ISC_R_NOTFOUND);
@@ -1327,7 +1327,7 @@ dns_c_view_unsetpeerlist(dns_c_view_t *view) {
return (ISC_R_FAILURE);
}
}
-
+
isc_result_t
dns_c_view_setpeerlist(dns_c_view_t *view, dns_peerlist_t *newval) {
@@ -1351,7 +1351,7 @@ isc_result_t
dns_c_view_gettrustedkeys(dns_c_view_t *view, dns_c_tkeylist_t **retval) {
REQUIRE(DNS_C_VIEW_VALID(view));
REQUIRE(retval != NULL);
-
+
if (view->trusted_keys == NULL) {
*retval = NULL;
return (ISC_R_NOTFOUND);
@@ -1379,7 +1379,7 @@ dns_c_view_unsettrustedkeys(dns_c_view_t *view) {
return (ISC_R_FAILURE);
}
}
-
+
isc_result_t
dns_c_view_settrustedkeys(dns_c_view_t *view, dns_c_tkeylist_t *newval,
@@ -1388,11 +1388,11 @@ dns_c_view_settrustedkeys(dns_c_view_t *view, dns_c_tkeylist_t *newval,
isc_boolean_t existed;
dns_c_tkeylist_t *newl;
isc_result_t res;
-
+
REQUIRE(DNS_C_VIEW_VALID(view));
existed = ISC_TF(view->trusted_keys != NULL);
-
+
if (view->trusted_keys != NULL) {
dns_c_view_unsettrustedkeys(view);
}
@@ -1534,12 +1534,12 @@ SETUINT32(sigvalidityinterval, sig_valid_interval)
GETUINT32(sigvalidityinterval, sig_valid_interval)
UNSETUINT32(sigvalidityinterval, sig_valid_interval)
-
+
GETUINT32(maxcachesize, max_cache_size)
SETUINT32(maxcachesize, max_cache_size)
UNSETUINT32(maxcachesize, max_cache_size)
-
+
GETBYTYPE(dns_c_addata_t, additionaldata, additional_data)
SETBYTYPE(dns_c_addata_t, additionaldata, additional_data)
UNSETBYTYPE(dns_c_addata_t, additionaldata, additional_data)
diff --git a/lib/dns/config/confzone.c b/lib/dns/config/confzone.c
index c58e33b018..4196be2ff4 100644
--- a/lib/dns/config/confzone.c
+++ b/lib/dns/config/confzone.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confzone.c,v 1.51 2000/07/27 09:47:14 tale Exp $ */
+/* $Id: confzone.c,v 1.52 2000/08/01 01:23:32 tale Exp $ */
#include
@@ -228,7 +228,7 @@ dns_c_zonelist_find(dns_c_zonelist_t *zlist, const char *name,
zoneelem = ISC_LIST_HEAD(zlist->zones);
while (zoneelem != NULL) {
REQUIRE(zoneelem->thezone != NULL);
-
+
if (strcmp(name, zoneelem->thezone->name) == 0) {
break;
}
@@ -256,7 +256,7 @@ dns_c_zonelist_rmbyname(dns_c_zonelist_t *zlist, const char *name) {
zoneelem = ISC_LIST_HEAD(zlist->zones);
while (zoneelem != NULL) {
REQUIRE(zoneelem->thezone != NULL);
-
+
if (strcmp(name, zoneelem->thezone->name) == 0) {
break;
}
@@ -285,7 +285,7 @@ dns_c_zonelist_addzone(dns_c_zonelist_t *zlist, dns_c_zone_t *zone) {
if (zoneelem == NULL) {
return (ISC_R_NOMEMORY);
}
-
+
zoneelem->thezone = zone;
ISC_LINK_INIT(zoneelem, next);
@@ -299,14 +299,14 @@ isc_result_t
dns_c_zonelist_rmzone(dns_c_zonelist_t *zlist, dns_c_zone_t *zone) {
dns_c_zonelem_t *zoneelem;
isc_result_t res;
-
+
REQUIRE(zlist != NULL);
REQUIRE(zone != NULL);
zoneelem = ISC_LIST_HEAD(zlist->zones);
while (zoneelem != NULL) {
REQUIRE(zoneelem->thezone != NULL);
-
+
if (zone == zoneelem->thezone) {
break;
}
@@ -347,7 +347,7 @@ dns_c_zonelist_print(FILE *fp, int indent, dns_c_zonelist_t *list,
fprintf(fp, "\n");
}
}
-
+
zoneelem = ISC_LIST_NEXT(zoneelem, next);
}
@@ -372,7 +372,7 @@ dns_c_zonelist_firstzone(dns_c_zonelist_t *list) {
dns_c_zone_t *
dns_c_zonelist_nextzone(dns_c_zonelist_t *list, dns_c_zone_t *zone) {
dns_c_zonelem_t *zoneelem;
-
+
REQUIRE(DNS_C_ZONELIST_VALID(list));
zoneelem = ISC_LIST_HEAD(list->zones);
@@ -428,7 +428,7 @@ dns_c_zone_new(isc_mem_t *mem,
isc_mem_strdup(mem, name) :
isc_mem_strdup(mem, internalname));
newzone->database = NULL;
-
+
switch (ztype) {
case dns_c_zone_master:
master_zone_init(&newzone->u.mzone);
@@ -450,7 +450,7 @@ dns_c_zone_new(isc_mem_t *mem,
forward_zone_init(&newzone->u.fzone);
break;
}
-
+
*zone = newzone;
return (ISC_R_SUCCESS);
@@ -515,14 +515,14 @@ dns_c_zone_print(FILE *fp, int indent, dns_c_zone_t *zone) {
}
fprintf(fp, " {\n");
-
+
switch (zone->ztype) {
case dns_c_zone_master:
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "type master;\n");
master_zone_print(fp, indent + 1, &zone->u.mzone);
break;
-
+
case dns_c_zone_slave:
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "type slave;\n");
@@ -534,7 +534,7 @@ dns_c_zone_print(FILE *fp, int indent, dns_c_zone_t *zone) {
fprintf(fp, "type stub;\n");
stub_zone_print(fp, indent + 1, &zone->u.tzone);
break;
-
+
case dns_c_zone_hint:
dns_c_printtabs(fp, indent + 1);
fprintf(fp, "type hint;\n");
@@ -558,7 +558,7 @@ dns_c_zone_print(FILE *fp, int indent, dns_c_zone_t *zone) {
fprintf(fp, "enable-zone %s;\n",
(*zone->enabled ? "true" : "false"));
}
-
+
dns_c_printtabs(fp, indent);
fprintf(fp, "};\n");
}
@@ -581,7 +581,7 @@ dns_c_zone_validate(dns_c_zone_t *zone)
const char *nomasterserr = "zone '%s': missing 'masters' entry";
const char *emptymasterserr = "zone '%s': 'masters' value is empty";
const char *disabledzone = "zone '%s': is disabled";
-
+
/*
* Check if zone is diabled. This isn't really a validation, just a
* place to issue a warning.
@@ -593,8 +593,8 @@ dns_c_zone_validate(dns_c_zone_t *zone)
ISC_LOG_WARNING, disabledzone,
zone->name);
}
-
-
+
+
/*
* Check for allow-update and update-policy together
*/
@@ -635,8 +635,8 @@ dns_c_zone_validate(dns_c_zone_t *zone)
/* XXX TODO make sure no 'key' clauses were given on any iplist
- except for masters{}; */
-
+ except for masters{}; */
+
return (result);
}
@@ -680,7 +680,7 @@ isc_result_t
dns_c_zone_getpubkeylist(dns_c_zone_t *zone, dns_c_pklist_t **retval) {
dns_c_pklist_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -688,25 +688,25 @@ dns_c_zone_getpubkeylist(dns_c_zone_t *zone, dns_c_pklist_t **retval) {
case dns_c_zone_master:
p = zone->u.mzone.pubkeylist;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.pubkeylist;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.pubkeylist;
break;
-
+
case dns_c_zone_hint:
#if 1
p = zone->u.hzone.pubkeylist;
-#else
+#else
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a pubkey field");
-#endif
+#endif
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -733,7 +733,7 @@ isc_result_t
dns_c_zone_setfile(dns_c_zone_t *zone, const char *newfile) {
char **p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(newfile != NULL);
REQUIRE(*newfile != '\0');
@@ -746,7 +746,7 @@ dns_c_zone_setfile(dns_c_zone_t *zone, const char *newfile) {
case dns_c_zone_slave:
p = &zone->u.szone.file;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.file;
break;
@@ -754,7 +754,7 @@ dns_c_zone_setfile(dns_c_zone_t *zone, const char *newfile) {
case dns_c_zone_hint:
p = &zone->u.hzone.file;
break;
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -786,7 +786,7 @@ isc_result_t
dns_c_zone_getfile(dns_c_zone_t *zone, const char **retval) {
const char *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -798,15 +798,15 @@ dns_c_zone_getfile(dns_c_zone_t *zone, const char **retval) {
case dns_c_zone_slave:
p = zone->u.szone.file;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.file;
break;
-
+
case dns_c_zone_hint:
p = zone->u.hzone.file;
break;
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -844,25 +844,25 @@ dns_c_zone_setchecknames(dns_c_zone_t *zone, dns_severity_t severity) {
bits = &zone->u.mzone.setflags;
bit = MZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.check_names;
bits = &zone->u.szone.setflags;
bit = SZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.check_names;
bits = &zone->u.tzone.setflags;
bit = TZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_hint:
p = &zone->u.hzone.check_names;
bits = &zone->u.hzone.setflags;
bit = HZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_forward:
p = &zone->u.fzone.check_names;
bits = &zone->u.fzone.setflags;
@@ -875,7 +875,7 @@ dns_c_zone_setchecknames(dns_c_zone_t *zone, dns_severity_t severity) {
} else {
res = ISC_R_SUCCESS;
}
-
+
*p = severity;
DNS_C_SETBIT(bit, bits);
@@ -903,25 +903,25 @@ dns_c_zone_getchecknames(dns_c_zone_t *zone, dns_severity_t *retval) {
bits = &zone->u.mzone.setflags;
bit = MZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.check_names;
bits = &zone->u.szone.setflags;
bit = SZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.check_names;
bits = &zone->u.tzone.setflags;
bit = TZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_hint:
p = &zone->u.hzone.check_names;
bits = &zone->u.hzone.setflags;
bit = HZ_CHECK_NAME_BIT;
break;
-
+
case dns_c_zone_forward:
p = &zone->u.fzone.check_names;
bits = &zone->u.fzone.setflags;
@@ -935,7 +935,7 @@ dns_c_zone_getchecknames(dns_c_zone_t *zone, dns_severity_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
return (res);
}
@@ -952,7 +952,7 @@ dns_c_zone_setallowupdateforwarding(dns_c_zone_t *zone,
dns_c_ipmatchlist_t **p = NULL;
isc_result_t res;
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPMLIST_VALID(ipml));
@@ -960,22 +960,22 @@ dns_c_zone_setallowupdateforwarding(dns_c_zone_t *zone,
case dns_c_zone_master:
p = &zone->u.mzone.allow_update_forwarding;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.allow_update_forwarding;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.allow_update_forwarding;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have "
"an allow_update_forwarding field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -985,7 +985,7 @@ dns_c_zone_setallowupdateforwarding(dns_c_zone_t *zone,
}
existed = (*p != NULL ? ISC_TRUE : ISC_FALSE);
-
+
res = set_ipmatch_list_field(zone->mem, p,
ipml, deepcopy);
if (res == ISC_R_SUCCESS && existed) {
@@ -1006,7 +1006,7 @@ dns_c_zone_getallowupdateforwarding(dns_c_zone_t *zone,
{
dns_c_ipmatchlist_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1014,22 +1014,22 @@ dns_c_zone_getallowupdateforwarding(dns_c_zone_t *zone,
case dns_c_zone_master:
p = zone->u.mzone.allow_update_forwarding;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.allow_update_forwarding;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.allow_update_forwarding;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an "
"allow_update_forwarding field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1057,32 +1057,32 @@ isc_result_t
dns_c_zone_setssuauth(dns_c_zone_t *zone, dns_ssutable_t *ssu) {
dns_ssutable_t **p = NULL;
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
case dns_c_zone_master:
p = &zone->u.mzone.ssuauth;
break;
-
+
case dns_c_zone_slave:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Slave zones do not have an ssuauth field");
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have an ssuauth field");
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an ssuauth field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1092,7 +1092,7 @@ dns_c_zone_setssuauth(dns_c_zone_t *zone, dns_ssutable_t *ssu) {
}
existed = (*p != NULL ? ISC_TRUE : ISC_FALSE);
-
+
*p = ssu;
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
@@ -1107,7 +1107,7 @@ isc_result_t
dns_c_zone_getssuauth(dns_c_zone_t *zone, dns_ssutable_t **retval) {
dns_ssutable_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1115,25 +1115,25 @@ dns_c_zone_getssuauth(dns_c_zone_t *zone, dns_ssutable_t **retval) {
case dns_c_zone_master:
p = zone->u.mzone.ssuauth;
break;
-
+
case dns_c_zone_slave:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Slave zones do not have an ssuauth field");
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have an ssuauth field");
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an ssuauth field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1165,7 +1165,7 @@ dns_c_zone_setallowquery(dns_c_zone_t *zone,
dns_c_ipmatchlist_t **p = NULL;
isc_boolean_t existed;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPMLIST_VALID(ipml));
@@ -1173,21 +1173,21 @@ dns_c_zone_setallowquery(dns_c_zone_t *zone,
case dns_c_zone_master:
p = &zone->u.mzone.allow_query;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.allow_query;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.allow_query;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an allow_query field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1197,7 +1197,7 @@ dns_c_zone_setallowquery(dns_c_zone_t *zone,
}
existed = (*p != NULL ? ISC_TRUE : ISC_FALSE);
-
+
res = set_ipmatch_list_field(zone->mem, p,
ipml, deepcopy);
if (res == ISC_R_SUCCESS && existed) {
@@ -1216,7 +1216,7 @@ isc_result_t
dns_c_zone_getallowquery(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
dns_c_ipmatchlist_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1224,21 +1224,21 @@ dns_c_zone_getallowquery(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
case dns_c_zone_master:
p = zone->u.mzone.allow_query;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.allow_query;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.allow_query;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an allow_query field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1270,7 +1270,7 @@ dns_c_zone_setallowtransfer(dns_c_zone_t *zone,
dns_c_ipmatchlist_t **p = NULL;
isc_boolean_t existed;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPMLIST_VALID(ipml));
@@ -1278,22 +1278,22 @@ dns_c_zone_setallowtransfer(dns_c_zone_t *zone,
case dns_c_zone_master:
p = &zone->u.mzone.allow_transfer;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.allow_transfer;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.allow_transfer;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an "
"allow_transfer field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1322,7 +1322,7 @@ isc_result_t
dns_c_zone_getallowtransfer(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
dns_c_ipmatchlist_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1330,22 +1330,22 @@ dns_c_zone_getallowtransfer(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
case dns_c_zone_master:
p = zone->u.mzone.allow_transfer;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.allow_transfer;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.allow_transfer;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an "
"allow_transfer field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1402,7 +1402,7 @@ dns_c_zone_setdialup(dns_c_zone_t *zone, isc_boolean_t newval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a dialup field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1421,7 +1421,7 @@ dns_c_zone_setdialup(dns_c_zone_t *zone, isc_boolean_t newval) {
isc_result_t
dns_c_zone_getdialup(dns_c_zone_t *zone, isc_boolean_t *retval) {
isc_result_t res = ISC_R_SUCCESS;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1434,7 +1434,7 @@ dns_c_zone_getdialup(dns_c_zone_t *zone, isc_boolean_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_DIALUP_BIT, &zone->u.szone.setflags)) {
*retval = zone->u.szone.dialup;
@@ -1443,7 +1443,7 @@ dns_c_zone_getdialup(dns_c_zone_t *zone, isc_boolean_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
if (DNS_C_CHECKBIT(TZ_DIALUP_BIT, &zone->u.tzone.setflags)) {
*retval = zone->u.tzone.dialup;
@@ -1452,13 +1452,13 @@ dns_c_zone_getdialup(dns_c_zone_t *zone, isc_boolean_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a dialup field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1477,7 +1477,7 @@ dns_c_zone_getdialup(dns_c_zone_t *zone, isc_boolean_t *retval) {
isc_result_t
dns_c_zone_setnotify(dns_c_zone_t *zone, dns_notifytype_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -1487,14 +1487,14 @@ dns_c_zone_setnotify(dns_c_zone_t *zone, dns_notifytype_t newval) {
&zone->u.mzone.setflags);
DNS_C_SETBIT(MZ_NOTIFY_BIT, &zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
zone->u.szone.notify = newval;
existed = DNS_C_CHECKBIT(SZ_NOTIFY_BIT,
&zone->u.szone.setflags);
DNS_C_SETBIT(SZ_NOTIFY_BIT, &zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1506,7 +1506,7 @@ dns_c_zone_setnotify(dns_c_zone_t *zone, dns_notifytype_t newval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1590,28 +1590,28 @@ dns_c_zone_setalsonotify(dns_c_zone_t *zone,
REQUIRE(zone != NULL);
REQUIRE(DNS_C_IPLIST_VALID(newval));
-
+
switch (zone->ztype) {
case dns_c_zone_master:
p = &zone->u.mzone.also_notify ;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.also_notify ;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a also_notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a also_notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1640,28 +1640,28 @@ dns_c_zone_getalsonotify(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
-
+
switch (zone->ztype) {
case dns_c_zone_master:
p = zone->u.mzone.also_notify ;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.also_notify ;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a also_notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a also_notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1687,7 +1687,7 @@ dns_c_zone_getalsonotify(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
isc_result_t
dns_c_zone_setmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -1697,14 +1697,14 @@ dns_c_zone_setmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t newval) {
&zone->u.mzone.setflags);
DNS_C_SETBIT(MZ_MAINT_IXFR_BASE_BIT, &zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
zone->u.szone.maint_ixfr_base = newval;
existed = DNS_C_CHECKBIT(SZ_MAINT_IXFR_BASE_BIT,
&zone->u.szone.setflags);
DNS_C_SETBIT(SZ_MAINT_IXFR_BASE_BIT, &zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1718,7 +1718,7 @@ dns_c_zone_setmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t newval) {
"Hint zones do not have a "
"maintain-xfer-base field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1741,7 +1741,7 @@ dns_c_zone_getmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t *retval) {
dns_c_setbits_t *bits = NULL;
isc_boolean_t val = ISC_FALSE;
int bit = 0;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1751,25 +1751,25 @@ dns_c_zone_getmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t *retval) {
bit = MZ_MAINT_IXFR_BASE_BIT;
bits = &zone->u.mzone.setflags;
break;
-
+
case dns_c_zone_slave:
val = zone->u.szone.maint_ixfr_base;
bit = SZ_MAINT_IXFR_BASE_BIT;
bits = &zone->u.szone.setflags;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a notify field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1783,7 +1783,7 @@ dns_c_zone_getmaintixfrbase(dns_c_zone_t *zone, isc_boolean_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
return (res);
}
@@ -1796,7 +1796,7 @@ isc_result_t
dns_c_zone_setixfrbase(dns_c_zone_t *zone, const char *newval) {
isc_boolean_t existed ;
char **p = NULL;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(newval != NULL);
REQUIRE(*newval != '\0');
@@ -1805,11 +1805,11 @@ dns_c_zone_setixfrbase(dns_c_zone_t *zone, const char *newval) {
case dns_c_zone_master:
p = &zone->u.mzone.ixfr_base;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.ixfr_base;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1821,7 +1821,7 @@ dns_c_zone_setixfrbase(dns_c_zone_t *zone, const char *newval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a ixfr_base field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1853,7 +1853,7 @@ isc_result_t
dns_c_zone_getixfrbase(dns_c_zone_t *zone, const char **retval) {
char *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1861,23 +1861,23 @@ dns_c_zone_getixfrbase(dns_c_zone_t *zone, const char **retval) {
case dns_c_zone_master:
p = zone->u.mzone.ixfr_base;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.ixfr_base;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a ixfr_base field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a ixfr_base field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1913,11 +1913,11 @@ dns_c_zone_setixfrtmp(dns_c_zone_t *zone, const char *newval) {
case dns_c_zone_master:
p = &zone->u.mzone.ixfr_tmp;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.ixfr_tmp;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1929,7 +1929,7 @@ dns_c_zone_setixfrtmp(dns_c_zone_t *zone, const char *newval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a ixfr_tmp field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -1961,7 +1961,7 @@ isc_result_t
dns_c_zone_getixfrtmp(dns_c_zone_t *zone, const char **retval) {
char *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -1969,23 +1969,23 @@ dns_c_zone_getixfrtmp(dns_c_zone_t *zone, const char **retval) {
case dns_c_zone_master:
p = zone->u.mzone.ixfr_tmp;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.ixfr_tmp;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a ixfr_tmp field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a ixfr_tmp field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2015,7 +2015,7 @@ dns_c_zone_addpubkey(dns_c_zone_t *zone,
{
dns_c_pklist_t **p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_PUBKEY_VALID(pubkey));
@@ -2023,15 +2023,15 @@ dns_c_zone_addpubkey(dns_c_zone_t *zone,
case dns_c_zone_master:
p = &zone->u.mzone.pubkeylist;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.pubkeylist;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.pubkeylist;
break;
-
+
case dns_c_zone_hint:
#if 1
p = &zone->u.hzone.pubkeylist;
@@ -2039,9 +2039,9 @@ dns_c_zone_addpubkey(dns_c_zone_t *zone,
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a pubkey field");
-#endif
+#endif
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2055,7 +2055,7 @@ dns_c_zone_addpubkey(dns_c_zone_t *zone,
return (res);
}
}
-
+
res = dns_c_pklist_addpubkey(*p, pubkey, deepcopy);
return (res);
@@ -2069,7 +2069,7 @@ dns_c_zone_addpubkey(dns_c_zone_t *zone,
isc_result_t
dns_c_zone_setmasterport(dns_c_zone_t *zone, in_port_t port) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch(zone->ztype) {
@@ -2079,27 +2079,27 @@ dns_c_zone_setmasterport(dns_c_zone_t *zone, in_port_t port) {
"Forward zones do not have a "
"master_port field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
zone->u.szone.master_port = port;
existed = DNS_C_CHECKBIT(SZ_MASTER_PORT_BIT,
&zone->u.szone.setflags);
DNS_C_SETBIT(SZ_MASTER_PORT_BIT, &zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.master_port = port;
existed = DNS_C_CHECKBIT(TZ_MASTER_PORT_BIT,
&zone->u.tzone.setflags);
DNS_C_SETBIT(TZ_MASTER_PORT_BIT, &zone->u.tzone.setflags);
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a master_port field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2107,7 +2107,7 @@ dns_c_zone_setmasterport(dns_c_zone_t *zone, in_port_t port) {
"master_port field");
return (ISC_R_FAILURE);
}
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -2119,7 +2119,7 @@ dns_c_zone_setmasterport(dns_c_zone_t *zone, in_port_t port) {
isc_result_t
dns_c_zone_getmasterport(dns_c_zone_t *zone, in_port_t *retval) {
isc_result_t res = ISC_R_SUCCESS;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -2130,7 +2130,7 @@ dns_c_zone_getmasterport(dns_c_zone_t *zone, in_port_t *retval) {
"Forward zones do not have a "
"master_port field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_MASTER_PORT_BIT,
&zone->u.szone.setflags)) {
@@ -2156,7 +2156,7 @@ dns_c_zone_getmasterport(dns_c_zone_t *zone, in_port_t *retval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a master_port field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2184,14 +2184,14 @@ dns_c_zone_setmasterips(dns_c_zone_t *zone,
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPLIST_VALID(newval));
-
+
switch (zone->ztype) {
case dns_c_zone_master:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Master zones do not have a master_ips field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
case dns_c_zone_stub:
if (zone->ztype == dns_c_zone_slave) {
@@ -2199,7 +2199,7 @@ dns_c_zone_setmasterips(dns_c_zone_t *zone,
} else {
p = &zone->u.tzone.master_ips ;
}
-
+
existed = (*p != NULL ? ISC_TRUE : ISC_FALSE);
res = set_iplist_field(zone->mem, p,
newval, deepcopy);
@@ -2213,7 +2213,7 @@ dns_c_zone_setmasterips(dns_c_zone_t *zone,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2235,14 +2235,14 @@ dns_c_zone_getmasterips(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
-
+
switch (zone->ztype) {
case dns_c_zone_master:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Master zones do not have a master_ips field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (zone->u.szone.master_ips != NULL) {
*retval = zone->u.szone.master_ips;
@@ -2251,7 +2251,7 @@ dns_c_zone_getmasterips(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
if (zone->u.tzone.master_ips != NULL) {
*retval = zone->u.tzone.master_ips;
@@ -2260,13 +2260,13 @@ dns_c_zone_getmasterips(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a master_ips field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2285,7 +2285,7 @@ dns_c_zone_getmasterips(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
isc_result_t
dns_c_zone_settransfersource(dns_c_zone_t *zone, isc_sockaddr_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2295,28 +2295,28 @@ dns_c_zone_settransfersource(dns_c_zone_t *zone, isc_sockaddr_t newval) {
"Master zones do not have a "
"transfer_source field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
zone->u.szone.transfer_source = newval ;
existed = DNS_C_CHECKBIT(SZ_TRANSFER_SOURCE_BIT,
&zone->u.szone.setflags);
DNS_C_SETBIT(SZ_TRANSFER_SOURCE_BIT, &zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.transfer_source = newval ;
existed = DNS_C_CHECKBIT(TZ_TRANSFER_SOURCE_BIT,
&zone->u.tzone.setflags);
DNS_C_SETBIT(TZ_TRANSFER_SOURCE_BIT, &zone->u.tzone.setflags);
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"transfer_source field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2347,7 +2347,7 @@ dns_c_zone_gettransfersource(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
"Master zones do not have a "
"transfer_source field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_TRANSFER_SOURCE_BIT,
&zone->u.szone.setflags)) {
@@ -2356,9 +2356,9 @@ dns_c_zone_gettransfersource(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
break;
-
+
case dns_c_zone_stub:
if (DNS_C_CHECKBIT(TZ_TRANSFER_SOURCE_BIT,
&zone->u.tzone.setflags)) {
@@ -2367,7 +2367,7 @@ dns_c_zone_gettransfersource(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
break;
case dns_c_zone_hint:
@@ -2376,7 +2376,7 @@ dns_c_zone_gettransfersource(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
"Hint zones do not have a "
"transfer_source field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2396,7 +2396,7 @@ dns_c_zone_gettransfersource(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
isc_result_t
dns_c_zone_settransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2406,7 +2406,7 @@ dns_c_zone_settransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t newval) {
"Master zones do not have a "
"transfer_source_v6 field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
zone->u.szone.transfer_source_v6 = newval ;
existed = DNS_C_CHECKBIT(SZ_TRANSFER_SOURCE_V6_BIT,
@@ -2414,7 +2414,7 @@ dns_c_zone_settransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t newval) {
DNS_C_SETBIT(SZ_TRANSFER_SOURCE_V6_BIT,
&zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.transfer_source_v6 = newval ;
existed = DNS_C_CHECKBIT(TZ_TRANSFER_SOURCE_V6_BIT,
@@ -2422,14 +2422,14 @@ dns_c_zone_settransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t newval) {
DNS_C_SETBIT(TZ_TRANSFER_SOURCE_V6_BIT,
&zone->u.tzone.setflags);
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"transfer_source_v6 field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2460,7 +2460,7 @@ dns_c_zone_gettransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
"Master zones do not have a "
"transfer_source_v6 field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_TRANSFER_SOURCE_V6_BIT,
&zone->u.szone.setflags)) {
@@ -2469,9 +2469,9 @@ dns_c_zone_gettransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
break;
-
+
case dns_c_zone_stub:
if (DNS_C_CHECKBIT(TZ_TRANSFER_SOURCE_V6_BIT,
&zone->u.tzone.setflags)) {
@@ -2480,7 +2480,7 @@ dns_c_zone_gettransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
break;
case dns_c_zone_hint:
@@ -2489,7 +2489,7 @@ dns_c_zone_gettransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
"Hint zones do not have a "
"transfer_source_v6 field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2509,7 +2509,7 @@ dns_c_zone_gettransfersourcev6(dns_c_zone_t *zone, isc_sockaddr_t *retval) {
isc_result_t
dns_c_zone_setmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2519,7 +2519,7 @@ dns_c_zone_setmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t newval) {
"Master zones do not have a "
"max_trans_time_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
zone->u.szone.max_trans_time_in = newval ;
existed = DNS_C_CHECKBIT(SZ_MAX_TRANS_TIME_IN_BIT,
@@ -2527,7 +2527,7 @@ dns_c_zone_setmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(SZ_MAX_TRANS_TIME_IN_BIT,
&zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.max_trans_time_in = newval ;
existed = DNS_C_CHECKBIT(TZ_MAX_TRANS_TIME_IN_BIT,
@@ -2542,7 +2542,7 @@ dns_c_zone_setmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t newval) {
"Hint zones do not have a "
"max_trans_time_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2573,7 +2573,7 @@ dns_c_zone_getmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t *retval) {
"Master zones do not have a "
"max_trans_time_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_TIME_IN_BIT,
&zone->u.szone.setflags)) {
@@ -2583,7 +2583,7 @@ dns_c_zone_getmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
if (DNS_C_CHECKBIT(TZ_MAX_TRANS_TIME_IN_BIT,
&zone->u.tzone.setflags)) {
@@ -2593,14 +2593,14 @@ dns_c_zone_getmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"max_trans_time_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2620,7 +2620,7 @@ dns_c_zone_getmaxtranstimein(dns_c_zone_t *zone, isc_uint32_t *retval) {
isc_result_t
dns_c_zone_setmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2631,7 +2631,7 @@ dns_c_zone_setmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(MZ_MAX_TRANS_TIME_OUT_BIT,
&zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
zone->u.szone.max_trans_time_out = newval ;
existed = DNS_C_CHECKBIT(SZ_MAX_TRANS_TIME_OUT_BIT,
@@ -2639,7 +2639,7 @@ dns_c_zone_setmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(SZ_MAX_TRANS_TIME_OUT_BIT,
&zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2653,7 +2653,7 @@ dns_c_zone_setmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t newval) {
"Hint zones do not have a "
"max_trans_time_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2687,7 +2687,7 @@ dns_c_zone_getmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_TIME_OUT_BIT,
&zone->u.szone.setflags)) {
@@ -2697,21 +2697,21 @@ dns_c_zone_getmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a "
"max_trans_time_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"max_trans_time_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2731,7 +2731,7 @@ dns_c_zone_getmaxtranstimeout(dns_c_zone_t *zone, isc_uint32_t *retval) {
isc_result_t
dns_c_zone_setmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2741,7 +2741,7 @@ dns_c_zone_setmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t newval) {
"Master zones do not have a "
"max_trans_idle_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
zone->u.szone.max_trans_idle_in = newval ;
existed = DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_IN_BIT,
@@ -2749,7 +2749,7 @@ dns_c_zone_setmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(SZ_MAX_TRANS_IDLE_IN_BIT,
&zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.max_trans_idle_in = newval ;
existed = DNS_C_CHECKBIT(TZ_MAX_TRANS_IDLE_IN_BIT,
@@ -2764,7 +2764,7 @@ dns_c_zone_setmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t newval) {
"Hint zones do not have a "
"max_trans_idle_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2795,7 +2795,7 @@ dns_c_zone_getmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t *retval) {
"Master zones do not have a "
"max_trans_idle_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_IN_BIT,
&zone->u.szone.setflags)) {
@@ -2805,7 +2805,7 @@ dns_c_zone_getmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
if (DNS_C_CHECKBIT(TZ_MAX_TRANS_IDLE_IN_BIT,
&zone->u.tzone.setflags)) {
@@ -2815,14 +2815,14 @@ dns_c_zone_getmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"max_trans_idle_in field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2842,7 +2842,7 @@ dns_c_zone_getmaxtransidlein(dns_c_zone_t *zone, isc_uint32_t *retval) {
isc_result_t
dns_c_zone_setmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2853,7 +2853,7 @@ dns_c_zone_setmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(MZ_MAX_TRANS_IDLE_OUT_BIT,
&zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
zone->u.szone.max_trans_idle_out = newval ;
existed = DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_OUT_BIT,
@@ -2861,7 +2861,7 @@ dns_c_zone_setmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(SZ_MAX_TRANS_IDLE_OUT_BIT,
&zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2875,7 +2875,7 @@ dns_c_zone_setmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t newval) {
"Hint zones do not have a "
"max_trans_idle_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2909,8 +2909,8 @@ dns_c_zone_getmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
-
+
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_OUT_BIT,
&zone->u.szone.setflags)) {
@@ -2920,21 +2920,21 @@ dns_c_zone_getmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a "
"max_trans_idle_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"max_trans_idle_out field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2954,7 +2954,7 @@ dns_c_zone_getmaxtransidleout(dns_c_zone_t *zone, isc_uint32_t *retval) {
isc_result_t
dns_c_zone_setsigvalidityinterval(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -2965,14 +2965,14 @@ dns_c_zone_setsigvalidityinterval(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_C_SETBIT(MZ_SIG_VALID_INTERVAL_BIT,
&zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Slave zones do not have a "
"sig_valid_interval field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -2986,7 +2986,7 @@ dns_c_zone_setsigvalidityinterval(dns_c_zone_t *zone, isc_uint32_t newval) {
"Hint zones do not have a "
"sig_valid_interval field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3020,29 +3020,29 @@ dns_c_zone_getsigvalidityinterval(dns_c_zone_t *zone, isc_uint32_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
-
+
+
case dns_c_zone_slave:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Slave zones do not have a "
"sig_valid_interval field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Stub zones do not have a "
"sig_valid_interval field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a "
"sig_valid_interval field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3065,7 +3065,7 @@ dns_c_zone_setmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t newval) {
isc_uint32_t *p = NULL;
int bit = 0;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
@@ -3074,13 +3074,13 @@ dns_c_zone_setmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t newval) {
bits = &zone->u.mzone.setflags;
bit = MZ_MAX_IXFR_LOG_BIT;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.max_ixfr_log;
bits = &zone->u.mzone.setflags;
bit = SZ_MAX_IXFR_LOG_BIT;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3092,7 +3092,7 @@ dns_c_zone_setmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t newval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a max-ixfr-log field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3106,7 +3106,7 @@ dns_c_zone_setmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t newval) {
} else {
res = ISC_R_SUCCESS;
}
-
+
*p = newval;
DNS_C_SETBIT(bit, bits);
@@ -3134,13 +3134,13 @@ dns_c_zone_getmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t *retval) {
bit = MZ_MAX_IXFR_LOG_BIT;
ptr = &zone->u.mzone.max_ixfr_log;
break;
-
+
case dns_c_zone_slave:
bits = &zone->u.szone.setflags;
bit = SZ_MAX_IXFR_LOG_BIT;
ptr = &zone->u.szone.max_ixfr_log;
break;
-
+
case dns_c_zone_stub:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3152,7 +3152,7 @@ dns_c_zone_getmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t *retval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a max_ixfr_log field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3167,7 +3167,7 @@ dns_c_zone_getmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t *retval) {
} else {
res = ISC_R_NOTFOUND;
}
-
+
return (res);
}
@@ -3179,9 +3179,9 @@ dns_c_zone_getmaxixfrlog(dns_c_zone_t *zone, isc_uint32_t *retval) {
isc_result_t
dns_c_zone_setforward(dns_c_zone_t *zone, dns_c_forw_t newval) {
isc_boolean_t existed = ISC_FALSE;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
-
+
switch (zone->ztype) {
case dns_c_zone_master:
zone->u.mzone.forward = newval;
@@ -3189,27 +3189,27 @@ dns_c_zone_setforward(dns_c_zone_t *zone, dns_c_forw_t newval) {
&zone->u.mzone.setflags);
DNS_C_SETBIT(MZ_FORWARD_BIT, &zone->u.mzone.setflags);
break;
-
+
case dns_c_zone_slave:
zone->u.szone.forward = newval;
existed = DNS_C_CHECKBIT(SZ_FORWARD_BIT,
&zone->u.szone.setflags);
DNS_C_SETBIT(SZ_FORWARD_BIT, &zone->u.szone.setflags);
break;
-
+
case dns_c_zone_stub:
zone->u.tzone.forward = newval;
existed = DNS_C_CHECKBIT(TZ_FORWARD_BIT,
&zone->u.tzone.setflags);
DNS_C_SETBIT(TZ_FORWARD_BIT, &zone->u.tzone.setflags);
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a forward field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
zone->u.fzone.forward = newval;
existed = DNS_C_CHECKBIT(FZ_FORWARD_BIT,
@@ -3229,7 +3229,7 @@ dns_c_zone_setforward(dns_c_zone_t *zone, dns_c_forw_t newval) {
isc_result_t
dns_c_zone_getforward(dns_c_zone_t *zone, dns_c_forw_t *retval) {
isc_result_t res = ISC_R_SUCCESS;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -3242,7 +3242,7 @@ dns_c_zone_getforward(dns_c_zone_t *zone, dns_c_forw_t *retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_slave:
if (DNS_C_CHECKBIT(SZ_FORWARD_BIT, &zone->u.szone.setflags)) {
*retval = zone->u.szone.forward;
@@ -3266,7 +3266,7 @@ dns_c_zone_getforward(dns_c_zone_t *zone, dns_c_forw_t *retval) {
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a forward field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
if (DNS_C_CHECKBIT(FZ_FORWARD_BIT, &zone->u.fzone.setflags)) {
*retval = zone->u.fzone.forward;
@@ -3293,7 +3293,7 @@ dns_c_zone_setforwarders(dns_c_zone_t *zone,
isc_boolean_t existed = ISC_FALSE;
isc_result_t res;
dns_c_iplist_t **p = NULL;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPLIST_VALID(ipl));
@@ -3302,23 +3302,23 @@ dns_c_zone_setforwarders(dns_c_zone_t *zone,
p = &zone->u.mzone.forwarders;
existed = (*p == NULL ? ISC_FALSE : ISC_TRUE);
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.forwarders;
existed = (*p == NULL ? ISC_FALSE : ISC_TRUE);
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.forwarders;
existed = (*p == NULL ? ISC_FALSE : ISC_TRUE);
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a forwarders field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
p = &zone->u.fzone.forwarders;
existed = (*p == NULL ? ISC_FALSE : ISC_TRUE);
@@ -3341,7 +3341,7 @@ dns_c_zone_setforwarders(dns_c_zone_t *zone,
isc_result_t
dns_c_zone_getforwarders(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
isc_result_t res = ISC_R_SUCCESS;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -3355,7 +3355,7 @@ dns_c_zone_getforwarders(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_slave:
if (zone->u.szone.forwarders != NULL &&
zone->u.szone.forwarders->nextidx > 0) {
@@ -3365,7 +3365,7 @@ dns_c_zone_getforwarders(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_stub:
if (zone->u.tzone.forwarders != NULL &&
zone->u.tzone.forwarders->nextidx > 0) {
@@ -3375,13 +3375,13 @@ dns_c_zone_getforwarders(dns_c_zone_t *zone, dns_c_iplist_t **retval) {
res = ISC_R_NOTFOUND;
}
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have a forwarders field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
if (zone->u.fzone.forwarders != NULL &&
zone->u.fzone.forwarders->nextidx > 0) {
@@ -3409,7 +3409,7 @@ dns_c_zone_setallowupd(dns_c_zone_t *zone,
dns_c_ipmatchlist_t **p = NULL;
isc_result_t res;
isc_boolean_t existed;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(DNS_C_IPMLIST_VALID(ipml));
@@ -3417,21 +3417,21 @@ dns_c_zone_setallowupd(dns_c_zone_t *zone,
case dns_c_zone_master:
p = &zone->u.mzone.allow_update;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.allow_update;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.allow_update;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an allow_update field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3441,7 +3441,7 @@ dns_c_zone_setallowupd(dns_c_zone_t *zone,
}
existed = (*p != NULL ? ISC_TRUE : ISC_FALSE);
-
+
res = set_ipmatch_list_field(zone->mem, p,
ipml, deepcopy);
if (res == ISC_R_SUCCESS && existed) {
@@ -3460,7 +3460,7 @@ isc_result_t
dns_c_zone_getallowupd(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
dns_c_ipmatchlist_t *p = NULL;
isc_result_t res;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
REQUIRE(retval != NULL);
@@ -3468,21 +3468,21 @@ dns_c_zone_getallowupd(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
case dns_c_zone_master:
p = zone->u.mzone.allow_update;
break;
-
+
case dns_c_zone_slave:
p = zone->u.szone.allow_update;
break;
-
+
case dns_c_zone_stub:
p = zone->u.tzone.allow_update;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an allow_update field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3509,28 +3509,28 @@ dns_c_zone_getallowupd(dns_c_zone_t *zone, dns_c_ipmatchlist_t **retval) {
isc_result_t
dns_c_zone_unsetallowupd(dns_c_zone_t *zone) {
dns_c_ipmatchlist_t **p = NULL;
-
+
REQUIRE(DNS_C_ZONE_VALID(zone));
switch (zone->ztype) {
case dns_c_zone_master:
p = &zone->u.mzone.allow_update;
break;
-
+
case dns_c_zone_slave:
p = &zone->u.szone.allow_update;
break;
-
+
case dns_c_zone_stub:
p = &zone->u.tzone.allow_update;
break;
-
+
case dns_c_zone_hint:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
"Hint zones do not have an allow_update field");
return (ISC_R_FAILURE);
-
+
case dns_c_zone_forward:
isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG,
DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL,
@@ -3565,7 +3565,7 @@ dns_c_zone_setdatabase(dns_c_zone_t *zone, const char *database)
existed = ISC_TRUE;
isc_mem_free(zone->mem, zone->database);
}
-
+
zone->database = isc_mem_strdup(zone->mem, database);
if (zone->database == NULL) {
return (ISC_R_NOMEMORY);
@@ -3631,7 +3631,7 @@ dns_c_zone_setenabled(dns_c_zone_t *zone, isc_boolean_t enabled)
} else {
zone->enabled = isc_mem_get(zone->mem, sizeof (zone->enabled));
}
-
+
*zone->enabled = enabled;
if (existed) {
@@ -3691,7 +3691,7 @@ dns_c_zone_unsetenabled(dns_c_zone_t *zone)
static void
master_zone_print(FILE *fp, int indent, dns_c_masterzone_t *mzone) {
REQUIRE(mzone != NULL);
-
+
if (mzone->file != NULL) {
dns_c_printtabs(fp, indent);
fprintf(fp, "file \"%s\";\n", mzone->file);
@@ -3795,13 +3795,13 @@ master_zone_print(FILE *fp, int indent, dns_c_masterzone_t *mzone) {
fprintf(fp, "max-transfer-time-out %d;\n",
mzone->max_trans_time_out / 60);
}
-
+
if (DNS_C_CHECKBIT(MZ_SIG_VALID_INTERVAL_BIT, &mzone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "sig-validity-interval %d;\n",
mzone->sig_valid_interval);
}
-
+
if (mzone->pubkeylist != NULL) {
fprintf(fp, "\n");
dns_c_pklist_print(fp, indent, mzone->pubkeylist);
@@ -3830,7 +3830,7 @@ master_zone_print(FILE *fp, int indent, dns_c_masterzone_t *mzone) {
static void
slave_zone_print(FILE *fp, int indent, dns_c_slavezone_t *szone) {
REQUIRE(szone != NULL);
-
+
if (szone->file != NULL) {
dns_c_printtabs(fp, indent);
fprintf(fp, "file \"%s\";\n", szone->file);
@@ -3870,7 +3870,7 @@ slave_zone_print(FILE *fp, int indent, dns_c_slavezone_t *szone) {
}
fprintf(fp, ";\n");
}
-
+
if (DNS_C_CHECKBIT(SZ_FORWARD_BIT, &szone->setflags)) {
dns_c_printtabs(fp, indent);
@@ -3948,25 +3948,25 @@ slave_zone_print(FILE *fp, int indent, dns_c_slavezone_t *szone) {
fprintf(fp, "max-transfer-time-in %d;\n",
szone->max_trans_time_in / 60);
}
-
+
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_TIME_OUT_BIT, &szone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "max-transfer-time-out %d;\n",
szone->max_trans_time_out / 60);
}
-
+
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_IN_BIT, &szone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "max-transfer-idle-in %d;\n",
szone->max_trans_idle_in / 60);
}
-
+
if (DNS_C_CHECKBIT(SZ_MAX_TRANS_IDLE_OUT_BIT, &szone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "max-transfer-idle-out %d;\n",
szone->max_trans_idle_out / 60);
}
-
+
if (DNS_C_CHECKBIT(SZ_DIALUP_BIT, &szone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "dialup %s;\n",
@@ -4005,7 +4005,7 @@ slave_zone_print(FILE *fp, int indent, dns_c_slavezone_t *szone) {
static void
stub_zone_print(FILE *fp, int indent, dns_c_stubzone_t *tzone) {
REQUIRE(tzone != NULL);
-
+
if (tzone->file != NULL) {
dns_c_printtabs(fp, indent);
fprintf(fp, "file \"%s\";\n", tzone->file);
@@ -4113,13 +4113,13 @@ stub_zone_print(FILE *fp, int indent, dns_c_stubzone_t *tzone) {
fprintf(fp, "max-transfer-time-in %d;\n",
tzone->max_trans_time_in / 60);
}
-
+
if (DNS_C_CHECKBIT(TZ_MAX_TRANS_IDLE_IN_BIT, &tzone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "max-transfer-idle-in %d;\n",
tzone->max_trans_idle_in / 60);
}
-
+
if (tzone->pubkeylist != NULL) {
fprintf(fp, "\n");
dns_c_pklist_print(fp, indent, tzone->pubkeylist);
@@ -4134,7 +4134,7 @@ stub_zone_print(FILE *fp, int indent, dns_c_stubzone_t *tzone) {
static void
hint_zone_print(FILE *fp, int indent, dns_c_hintzone_t *hzone) {
REQUIRE(hzone != NULL);
-
+
if (hzone->file != NULL) {
dns_c_printtabs(fp, indent);
fprintf(fp, "file \"%s\";\n", hzone->file);
@@ -4161,7 +4161,7 @@ hint_zone_print(FILE *fp, int indent, dns_c_hintzone_t *hzone) {
static void
forward_zone_print(FILE *fp, int indent, dns_c_forwardzone_t *fzone) {
REQUIRE(fzone != NULL);
-
+
if (DNS_C_CHECKBIT(FZ_FORWARD_BIT, &fzone->setflags)) {
dns_c_printtabs(fp, indent);
fprintf(fp, "forward %s;\n",
@@ -4192,7 +4192,7 @@ forward_zone_print(FILE *fp, int indent, dns_c_forwardzone_t *fzone) {
static void
master_zone_init(dns_c_masterzone_t *mzone) {
REQUIRE(mzone != NULL);
-
+
mzone->file = NULL;
mzone->allow_update = NULL;
mzone->ssuauth = NULL;
@@ -4289,7 +4289,7 @@ static isc_result_t
zone_delete(dns_c_zone_t **zone) {
dns_c_zone_t *z;
isc_result_t res = ISC_R_SUCCESS;
-
+
REQUIRE(zone != NULL);
REQUIRE(DNS_C_ZONE_VALID(*zone));
@@ -4307,7 +4307,7 @@ zone_delete(dns_c_zone_t **zone) {
isc_mem_put(z->mem, z->enabled, sizeof (z->enabled));
z->enabled = NULL;
}
-
+
switch(z->ztype) {
case dns_c_zone_master:
res = master_zone_clear(z->mem, &z->u.mzone);
@@ -4316,15 +4316,15 @@ zone_delete(dns_c_zone_t **zone) {
case dns_c_zone_slave:
res = slave_zone_clear(z->mem, &z->u.szone);
break;
-
+
case dns_c_zone_stub:
res = stub_zone_clear(z->mem, &z->u.tzone);
break;
-
+
case dns_c_zone_hint:
res = hint_zone_clear(z->mem, &z->u.hzone);
break;
-
+
case dns_c_zone_forward:
res = forward_zone_clear(z->mem, &z->u.fzone);
break;
@@ -4345,7 +4345,7 @@ zone_delete(dns_c_zone_t **zone) {
static isc_result_t
master_zone_clear(isc_mem_t *mem, dns_c_masterzone_t *mzone) {
REQUIRE(mzone != NULL);
-
+
if (mzone == NULL) {
return (ISC_R_SUCCESS);
}
@@ -4359,7 +4359,7 @@ master_zone_clear(isc_mem_t *mem, dns_c_masterzone_t *mzone) {
if (mzone->ssuauth != NULL)
dns_ssutable_detach(&mzone->ssuauth);
-
+
if (mzone->allow_update_forwarding != NULL)
dns_c_ipmatchlist_detach(&mzone->allow_update_forwarding);
@@ -4371,11 +4371,11 @@ master_zone_clear(isc_mem_t *mem, dns_c_masterzone_t *mzone) {
if (mzone->also_notify != NULL)
dns_c_iplist_detach(&mzone->also_notify);
-
+
if (mzone->ixfr_base != NULL) {
isc_mem_free(mem, mzone->ixfr_base);
}
-
+
if (mzone->ixfr_tmp != NULL) {
isc_mem_free(mem, mzone->ixfr_tmp);
}
@@ -4397,7 +4397,7 @@ master_zone_clear(isc_mem_t *mem, dns_c_masterzone_t *mzone) {
static isc_result_t
slave_zone_clear(isc_mem_t *mem, dns_c_slavezone_t *szone) {
REQUIRE(szone != NULL);
-
+
if (szone == NULL) {
return (ISC_R_SUCCESS);
}
@@ -4409,32 +4409,32 @@ slave_zone_clear(isc_mem_t *mem, dns_c_slavezone_t *szone) {
if (szone->ixfr_base != NULL) {
isc_mem_free(mem, szone->ixfr_base);
}
-
+
if (szone->ixfr_tmp != NULL) {
isc_mem_free(mem, szone->ixfr_tmp);
}
-
+
if (szone->master_ips != NULL)
dns_c_iplist_detach(&szone->master_ips);
-
+
if (szone->allow_update != NULL)
dns_c_ipmatchlist_detach(&szone->allow_update);
-
+
if (szone->allow_update_forwarding != NULL)
dns_c_ipmatchlist_detach(&szone->allow_update_forwarding);
-
+
if (szone->allow_query != NULL)
dns_c_ipmatchlist_detach(&szone->allow_query);
-
+
if (szone->allow_transfer != NULL)
dns_c_ipmatchlist_detach(&szone->allow_transfer);
-
+
if (szone->also_notify != NULL)
dns_c_iplist_detach(&szone->also_notify);
-
+
if (szone->forwarders != NULL)
dns_c_iplist_detach(&szone->forwarders);
-
+
if (szone->pubkeylist != NULL)
dns_c_pklist_delete(&szone->pubkeylist);
@@ -4449,7 +4449,7 @@ slave_zone_clear(isc_mem_t *mem, dns_c_slavezone_t *szone) {
static isc_result_t
stub_zone_clear(isc_mem_t *mem, dns_c_stubzone_t *tzone) {
REQUIRE(tzone != NULL);
-
+
if (tzone == NULL) {
return (ISC_R_SUCCESS);
}
@@ -4460,25 +4460,25 @@ stub_zone_clear(isc_mem_t *mem, dns_c_stubzone_t *tzone) {
if (tzone->master_ips != NULL)
dns_c_iplist_detach(&tzone->master_ips);
-
+
if (tzone->allow_update != NULL)
dns_c_ipmatchlist_detach(&tzone->allow_update);
-
+
if (tzone->allow_update_forwarding != NULL)
dns_c_ipmatchlist_detach(&tzone->allow_update_forwarding);
-
+
if (tzone->allow_query != NULL)
dns_c_ipmatchlist_detach(&tzone->allow_query);
-
+
if (tzone->allow_transfer != NULL)
dns_c_ipmatchlist_detach(&tzone->allow_transfer);
-
+
if (tzone->forwarders != NULL)
dns_c_iplist_detach(&tzone->forwarders);
-
+
if (tzone->pubkeylist != NULL)
dns_c_pklist_delete(&tzone->pubkeylist);
-
+
return (ISC_R_SUCCESS);
}
@@ -4490,16 +4490,16 @@ stub_zone_clear(isc_mem_t *mem, dns_c_stubzone_t *tzone) {
static isc_result_t
forward_zone_clear(isc_mem_t *mem, dns_c_forwardzone_t *fzone) {
REQUIRE(fzone != NULL);
-
+
if (fzone == NULL) {
return (ISC_R_SUCCESS);
}
(void) mem; /* lint happiness */
-
+
if (fzone->forwarders != NULL)
dns_c_iplist_detach(&fzone->forwarders);
-
+
return (ISC_R_SUCCESS);
}
@@ -4511,7 +4511,7 @@ forward_zone_clear(isc_mem_t *mem, dns_c_forwardzone_t *fzone) {
static isc_result_t
hint_zone_clear(isc_mem_t *mem, dns_c_hintzone_t *hzone) {
REQUIRE(hzone != NULL);
-
+
if (hzone == NULL) {
return (ISC_R_SUCCESS);
}
@@ -4519,10 +4519,10 @@ hint_zone_clear(isc_mem_t *mem, dns_c_hintzone_t *hzone) {
if (hzone->file != NULL) {
isc_mem_free(mem, hzone->file);
}
-
+
if (hzone->pubkeylist != NULL)
dns_c_pklist_delete(&hzone->pubkeylist);
-
+
return (ISC_R_SUCCESS);
}
@@ -4539,14 +4539,14 @@ set_ipmatch_list_field(isc_mem_t *mem,
isc_boolean_t deepcopy)
{
isc_result_t res;
-
+
if (*dest != NULL) {
res = dns_c_ipmatchlist_detach(dest);
if (res != ISC_R_SUCCESS) {
return (res);
}
}
-
+
if (deepcopy) {
res = dns_c_ipmatchlist_copy(mem, dest, src);
} else {
@@ -4568,14 +4568,14 @@ set_iplist_field(isc_mem_t *mem,
isc_boolean_t deepcopy)
{
isc_result_t res;
-
+
if (*dest != NULL) {
res = dns_c_iplist_detach(dest);
if (res != ISC_R_SUCCESS) {
return (res);
}
}
-
+
if (deepcopy) {
res = dns_c_iplist_copy(mem, dest, src);
} else {
diff --git a/lib/dns/db.c b/lib/dns/db.c
index ee031655f6..cf335056fb 100644
--- a/lib/dns/db.c
+++ b/lib/dns/db.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: db.c,v 1.48 2000/07/27 09:45:57 tale Exp $ */
+/* $Id: db.c,v 1.49 2000/08/01 01:22:15 tale Exp $ */
/***
*** Imports
@@ -37,7 +37,7 @@
***/
typedef struct {
- const char * name;
+ const char * name;
isc_result_t (*create)(isc_mem_t *mctx, dns_name_t *name,
dns_dbtype_t type,
dns_rdataclass_t rdclass,
@@ -135,7 +135,7 @@ dns_db_iscache(dns_db_t *db) {
/*
* Does 'db' have cache semantics?
*/
-
+
REQUIRE(DNS_DB_VALID(db));
if ((db->attributes & DNS_DBATTR_CACHE) != 0)
@@ -150,7 +150,7 @@ dns_db_iszone(dns_db_t *db) {
/*
* Does 'db' have zone semantics?
*/
-
+
REQUIRE(DNS_DB_VALID(db));
if ((db->attributes & (DNS_DBATTR_CACHE|DNS_DBATTR_STUB)) == 0)
@@ -165,7 +165,7 @@ dns_db_isstub(dns_db_t *db) {
/*
* Does 'db' have stub semantics?
*/
-
+
REQUIRE(DNS_DB_VALID(db));
if ((db->attributes & DNS_DBATTR_STUB) != 0)
@@ -180,7 +180,7 @@ dns_db_issecure(dns_db_t *db) {
/*
* Is 'db' secure?
*/
-
+
REQUIRE(DNS_DB_VALID(db));
REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0);
@@ -287,11 +287,11 @@ dns_db_dump(dns_db_t *db, dns_dbversion_t *version, const char *filename) {
void
dns_db_currentversion(dns_db_t *db, dns_dbversion_t **versionp) {
-
+
/*
* Open the current version for reading.
*/
-
+
REQUIRE(DNS_DB_VALID(db));
REQUIRE((db->attributes & DNS_DBATTR_CACHE) == 0);
REQUIRE(versionp != NULL && *versionp == NULL);
@@ -301,7 +301,7 @@ dns_db_currentversion(dns_db_t *db, dns_dbversion_t **versionp) {
isc_result_t
dns_db_newversion(dns_db_t *db, dns_dbversion_t **versionp) {
-
+
/*
* Open a new version for reading and writing.
*/
@@ -329,13 +329,13 @@ dns_db_attachversion(dns_db_t *db, dns_dbversion_t *source,
(db->methods->attachversion)(db, source, targetp);
ENSURE(*targetp != NULL);
-}
+}
void
dns_db_closeversion(dns_db_t *db, dns_dbversion_t **versionp,
isc_boolean_t commit)
{
-
+
/*
* Close version '*versionp'.
*/
@@ -615,7 +615,7 @@ dns_db_getsoaserial(dns_db_t *db, dns_dbversion_t *ver, isc_uint32_t *serialp)
isc_buffer_t buffer;
REQUIRE(dns_db_iszone(db) || dns_db_isstub(db));
-
+
result = dns_db_findnode(db, dns_db_origin(db), ISC_FALSE, &node);
if (result != ISC_R_SUCCESS)
return (result);
@@ -625,7 +625,7 @@ dns_db_getsoaserial(dns_db_t *db, dns_dbversion_t *ver, isc_uint32_t *serialp)
(isc_stdtime_t)0, &rdataset, NULL);
if (result != ISC_R_SUCCESS)
goto freenode;
-
+
result = dns_rdataset_first(&rdataset);
if (result != ISC_R_SUCCESS)
goto freerdataset;
@@ -641,7 +641,7 @@ dns_db_getsoaserial(dns_db_t *db, dns_dbversion_t *ver, isc_uint32_t *serialp)
freerdataset:
dns_rdataset_disassociate(&rdataset);
-
+
freenode:
dns_db_detachnode(db, &node);
return (result);
diff --git a/lib/dns/dbiterator.c b/lib/dns/dbiterator.c
index c40d09b1ae..869b0a4080 100644
--- a/lib/dns/dbiterator.c
+++ b/lib/dns/dbiterator.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dbiterator.c,v 1.10 2000/07/27 09:45:59 tale Exp $ */
+/* $Id: dbiterator.c,v 1.11 2000/08/01 01:22:16 tale Exp $ */
#include
@@ -129,6 +129,6 @@ dns_dbiterator_origin(dns_dbiterator_t *iterator, dns_name_t *name) {
REQUIRE(DNS_DBITERATOR_VALID(iterator));
REQUIRE(iterator->relative_names);
REQUIRE(dns_name_hasbuffer(name));
-
+
return (iterator->methods->origin(iterator, name));
}
diff --git a/lib/dns/dbtable.c b/lib/dns/dbtable.c
index 3bdd6a3025..802e115f77 100644
--- a/lib/dns/dbtable.c
+++ b/lib/dns/dbtable.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: dbtable.c,v 1.19 2000/07/27 09:46:00 tale Exp $
+ * $Id: dbtable.c,v 1.20 2000/08/01 01:22:17 tale Exp $
*/
/*
@@ -147,7 +147,7 @@ void
dns_dbtable_attach(dns_dbtable_t *source, dns_dbtable_t **targetp) {
REQUIRE(VALID_DBTABLE(source));
REQUIRE(targetp != NULL && *targetp == NULL);
-
+
LOCK(&source->lock);
INSIST(source->references > 0);
@@ -167,7 +167,7 @@ dns_dbtable_detach(dns_dbtable_t **dbtablep) {
REQUIRE(dbtablep != NULL);
dbtable = *dbtablep;
REQUIRE(VALID_DBTABLE(dbtable));
-
+
LOCK(&dbtable->lock);
INSIST(dbtable->references > 0);
@@ -208,7 +208,7 @@ dns_dbtable_remove(dns_dbtable_t *dbtable, dns_db_t *db) {
dns_name_t *name;
REQUIRE(VALID_DBTABLE(dbtable));
-
+
name = dns_db_origin(db);
/*
diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c
index e06abf889e..b8cc37a7ed 100644
--- a/lib/dns/dispatch.c
+++ b/lib/dns/dispatch.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dispatch.c,v 1.61 2000/07/27 09:46:01 tale Exp $ */
+/* $Id: dispatch.c,v 1.62 2000/08/01 01:22:19 tale Exp $ */
#include
@@ -194,7 +194,7 @@ dispatch_log(dns_dispatch_t *disp, int level, const char *fmt, ...) {
if (! isc_log_wouldlog(dns_lctx, level))
return;
-
+
va_start(ap, fmt);
vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap);
va_end(ap);
@@ -710,7 +710,7 @@ tcp_recv(isc_task_t *task, isc_event_t *ev_in) {
case ISC_R_CANCELED:
/*
- * The event is statically allocated in the tcpmsg
+ * The event is statically allocated in the tcpmsg
* structure, and destroy_disp() frees the tcpmsg, so we must
* free the event *before* calling destroy_disp().
*/
@@ -1088,7 +1088,7 @@ dns_dispatchmgr_destroy(dns_dispatchmgr_t **mgrp) {
UNLOCK(&mgr->lock);
mgr_log(mgr, LVL(90), "destroy: killit=%d", killit);
-
+
if (killit)
destroy_mgr(&mgr);
}
@@ -1701,7 +1701,7 @@ void
dns_dispatch_starttcp(dns_dispatch_t *disp) {
REQUIRE(VALID_DISPATCH(disp));
-
+
dispatch_log(disp, LVL(90), "starttcp %p", disp->task);
LOCK(&disp->lock);
diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c
index 75048994c0..62b00d6dbe 100644
--- a/lib/dns/dnssec.c
+++ b/lib/dns/dnssec.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: dnssec.c,v 1.46 2000/07/31 20:53:56 tale Exp $
+ * $Id: dnssec.c,v 1.47 2000/08/01 01:22:20 tale Exp $
* Principal Author: Brian Wellington
*/
@@ -238,7 +238,7 @@ dns_dnssec_sign(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key,
isc_buffer_putuint16(&envbuf, set->type);
isc_buffer_putuint16(&envbuf, set->rdclass);
isc_buffer_putuint32(&envbuf, set->ttl);
-
+
ret = rdataset_to_sortedarray(set, mctx, &rdatas, &nrdatas);
if (ret != ISC_R_SUCCESS)
goto cleanup_context;
@@ -248,7 +248,7 @@ dns_dnssec_sign(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key,
isc_uint16_t len;
isc_buffer_t lenbuf;
isc_region_t lenr;
-
+
/*
* Digest the envelope.
*/
@@ -274,7 +274,7 @@ dns_dnssec_sign(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key,
if (ret != ISC_R_SUCCESS)
goto cleanup_array;
}
-
+
isc_buffer_init(&sigbuf, sig.signature, sig.siglen);
ret = dst_context_sign(ctx, &sigbuf);
if (ret != ISC_R_SUCCESS)
@@ -354,7 +354,7 @@ dns_dnssec_verify(dns_name_t *name, dns_rdataset_t *set, dst_key_t *key,
dns_rdata_toregion(sigrdata, &r);
r.length -= sig.siglen;
RUNTIME_CHECK(r.length >= 19);
-
+
ret = dst_context_create(key, mctx, &ctx);
if (ret != ISC_R_SUCCESS)
goto cleanup_struct;
@@ -556,7 +556,7 @@ dns_dnssec_signmessage(dns_message_t *msg, dst_key_t *key) {
sig.siglen = 0;
sig.signature = NULL;
-
+
isc_buffer_init(&databuf, data, sizeof(data));
RETERR(dst_context_create(key, mctx, &ctx));
diff --git a/lib/dns/gen-unix.h b/lib/dns/gen-unix.h
index 25396805c4..2ebf1a709b 100644
--- a/lib/dns/gen-unix.h
+++ b/lib/dns/gen-unix.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,14 +15,14 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: gen-unix.h,v 1.10 2000/07/27 09:46:03 tale Exp $ */
+/* $Id: gen-unix.h,v 1.11 2000/08/01 01:22:21 tale Exp $ */
/*
* This file is responsible for defining two operations that are not
* directly portable between Unix-like systems and Windows NT, option
* parsing and directory scanning. It is here because it was decided
* that the "gen" build utility was not to depend on libisc.a, so
- * the functions delcared in isc/commandline.h and isc/dir.h could not
+ * the functions delcared in isc/commandline.h and isc/dir.h could not
* be used.
*
* The commandline stuff is really just a wrapper around getopt().
diff --git a/lib/dns/gen-win32.h b/lib/dns/gen-win32.h
index 03ac1eb6c3..70978bab54 100644
--- a/lib/dns/gen-win32.h
+++ b/lib/dns/gen-win32.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -48,7 +48,7 @@
* SUCH DAMAGE.
*/
-/* $Id: gen-win32.h,v 1.5 2000/07/27 09:46:05 tale Exp $ */
+/* $Id: gen-win32.h,v 1.6 2000/08/01 01:22:22 tale Exp $ */
/*
* Principal Authors: Computer Systems Research Group at UC Berkeley
@@ -66,7 +66,7 @@
* directly portable between Unix-like systems and Windows NT, option
* parsing and directory scanning. It is here because it was decided
* that the "gen" build utility was not to depend on libisc.a, so
- * the functions delcared in isc/commandline.h and isc/dir.h could not
+ * the functions delcared in isc/commandline.h and isc/dir.h could not
* be used.
*
* The commandline stuff is pretty much a straight copy from the initial
@@ -247,7 +247,7 @@ start_directory(char *path, isc_dir_t *dir) {
*p++ = '\\';
*p++ = '*';
*p++ = '\0';
-
+
dir->first_file = ISC_TRUE;
dir->handle = FindFirstFile(pattern, &dir->find_data);
diff --git a/lib/dns/gen.c b/lib/dns/gen.c
index 9cfb27a58a..d29c925b12 100644
--- a/lib/dns/gen.c
+++ b/lib/dns/gen.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: gen.c,v 1.53 2000/07/27 09:46:07 tale Exp $ */
+/* $Id: gen.c,v 1.54 2000/08/01 01:22:24 tale Exp $ */
#include
@@ -226,7 +226,7 @@ doswitch(const char *name, const char *function, const char *args,
else
fprintf(stdout,
"\t\tcase %d:%s %s_%s_%s(%s); break;",
- tt->rdclass, result, function,
+ tt->rdclass, result, function,
funname(tt->classname, buf1),
funname(tt->typename, buf2), args);
fputs(" \\\n", stdout);
@@ -235,7 +235,7 @@ doswitch(const char *name, const char *function, const char *args,
if (subswitch) {
if (res == NULL)
fprintf(stdout, "\t\tdefault: break; \\\n");
- else
+ else
fprintf(stdout, "\t\tdefault: %s; break; \\\n", res);
fputs(/*{*/ "\t\t} \\\n", stdout);
fputs("\t\tbreak; \\\n", stdout);
@@ -270,7 +270,7 @@ dodecl(char *type, char *function, char *args) {
else
fprintf(stdout,
"static inline %s %s_%s(%s);\n",
- type, function,
+ type, function,
funname(tt->typename, buf1), args);
}
@@ -380,7 +380,7 @@ add(int rdclass, const char *classname, int type, const char *typename,
strcpy(newcc->classname, classname);
cc = classes;
oldcc = NULL;
-
+
while ((cc != NULL) && (cc->rdclass < rdclass)) {
oldcc = cc;
cc = cc->next;
@@ -771,7 +771,7 @@ main(int argc, char **argv) {
"((dns_rdatatype_t)dns_rdatatype_maila)\n");
fprintf(stdout, "#define dns_rdatatype_any\t"
"((dns_rdatatype_t)dns_rdatatype_any)\n");
-
+
fprintf(stdout, "\n#endif /* DNS_ENUMTYPE_H */\n");
} else if (class_enum) {
diff --git a/lib/dns/include/Makefile.in b/lib/dns/include/Makefile.in
index 9ccac1506d..e6322f6e5b 100644
--- a/lib/dns/include/Makefile.in
+++ b/lib/dns/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.9 2000/07/27 09:47:16 tale Exp $
+# $Id: Makefile.in,v 1.10 2000/08/01 01:23:34 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/include/dns/Makefile.in b/lib/dns/include/dns/Makefile.in
index 5d77dd752c..e093170b9c 100644
--- a/lib/dns/include/dns/Makefile.in
+++ b/lib/dns/include/dns/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.30 2000/07/27 09:47:17 tale Exp $
+# $Id: Makefile.in,v 1.31 2000/08/01 01:23:35 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
@@ -39,7 +39,7 @@ HEADERS = a6.h acl.h aclconf.h adb.h byaddr.h cache.h callbacks.h \
GENHEADERS = enumclass.h enumtype.h rdatastruct.h
-SUBDIRS =
+SUBDIRS =
TARGETS =
@BIND9_MAKE_RULES@
diff --git a/lib/dns/include/dns/a6.h b/lib/dns/include/dns/a6.h
index 247fbd70de..6fda50fb6f 100644
--- a/lib/dns/include/dns/a6.h
+++ b/lib/dns/include/dns/a6.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: a6.h,v 1.9 2000/07/27 09:47:18 tale Exp $ */
+/* $Id: a6.h,v 1.10 2000/08/01 01:23:36 tale Exp $ */
#ifndef DNS_A6_H
#define DNS_A6_H 1
diff --git a/lib/dns/include/dns/acl.h b/lib/dns/include/dns/acl.h
index 87aeffc176..861fd14a3c 100644
--- a/lib/dns/include/dns/acl.h
+++ b/lib/dns/include/dns/acl.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: acl.h,v 1.12 2000/07/27 09:47:19 tale Exp $ */
+/* $Id: acl.h,v 1.13 2000/08/01 01:23:37 tale Exp $ */
#ifndef DNS_ACL_H
#define DNS_ACL_H 1
@@ -78,7 +78,7 @@ struct dns_acl {
struct dns_aclenv {
dns_acl_t *localhost;
- dns_acl_t *localnets;
+ dns_acl_t *localnets;
};
#define DNS_ACL_MAGIC 0x4461636c /* Dacl */
@@ -132,7 +132,7 @@ dns_aclenv_init(isc_mem_t *mctx, dns_aclenv_t *env);
void
dns_aclenv_copy(dns_aclenv_t *t, dns_aclenv_t *s);
-
+
void
dns_aclenv_destroy(dns_aclenv_t *env);
@@ -157,7 +157,7 @@ dns_acl_match(isc_netaddr_t *reqaddr,
* whose absoluate value indicates the distance from the beginning of
* the list.
*
- * If there is a match (either positive or negative) and 'matchelt' is
+ * If there is a match (either positive or negative) and 'matchelt' is
* non-NULL, *matchelt will be attached to the primitive
* (non-indirect) address match list element that matched.
*
diff --git a/lib/dns/include/dns/aclconf.h b/lib/dns/include/dns/aclconf.h
index bfd3e545d8..7a50d60cad 100644
--- a/lib/dns/include/dns/aclconf.h
+++ b/lib/dns/include/dns/aclconf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: aclconf.h,v 1.8 2000/07/27 09:47:20 tale Exp $ */
+/* $Id: aclconf.h,v 1.9 2000/08/01 01:23:38 tale Exp $ */
#ifndef DNS_ACLCONF_H
#define DNS_ACLCONF_H 1
diff --git a/lib/dns/include/dns/adb.h b/lib/dns/include/dns/adb.h
index 84976f0a8e..98ba2155cc 100644
--- a/lib/dns/include/dns/adb.h
+++ b/lib/dns/include/dns/adb.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,14 +15,14 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: adb.h,v 1.58 2000/07/27 09:47:22 tale Exp $ */
+/* $Id: adb.h,v 1.59 2000/08/01 01:23:39 tale Exp $ */
#ifndef DNS_ADB_H
#define DNS_ADB_H 1
-/*****
- ***** Module Info
- *****/
+/*****
+ ***** Module Info
+ *****/
/*
* DNS Address Database
@@ -58,7 +58,7 @@
*
* MP:
*
- * The ADB takes care of all necessary locking.
+ * The ADB takes care of all necessary locking.
*
* Only the task which initiated the name lookup can cancel the lookup.
*
diff --git a/lib/dns/include/dns/bit.h b/lib/dns/include/dns/bit.h
index c98606452f..ebeaa88c0a 100644
--- a/lib/dns/include/dns/bit.h
+++ b/lib/dns/include/dns/bit.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: bit.h,v 1.5 2000/07/27 09:47:23 tale Exp $ */
+/* $Id: bit.h,v 1.6 2000/08/01 01:23:40 tale Exp $ */
#ifndef DNS_BIT_H
#define DNS_BIT_H 1
diff --git a/lib/dns/include/dns/byaddr.h b/lib/dns/include/dns/byaddr.h
index 0d40b22e55..7bdb176828 100644
--- a/lib/dns/include/dns/byaddr.h
+++ b/lib/dns/include/dns/byaddr.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: byaddr.h,v 1.9 2000/07/27 09:47:24 tale Exp $ */
+/* $Id: byaddr.h,v 1.10 2000/08/01 01:23:41 tale Exp $ */
#ifndef DNS_BYADDR_H
#define DNS_BYADDR_H 1
diff --git a/lib/dns/include/dns/cache.h b/lib/dns/include/dns/cache.h
index a3adfdbef2..38f407441d 100644
--- a/lib/dns/include/dns/cache.h
+++ b/lib/dns/include/dns/cache.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cache.h,v 1.12 2000/07/27 09:47:25 tale Exp $ */
+/* $Id: cache.h,v 1.13 2000/08/01 01:23:43 tale Exp $ */
#ifndef DNS_CACHE_H
#define DNS_CACHE_H 1
@@ -27,7 +27,7 @@
/*
* cache
*
- * Defines dns_cache_t, the cache object.
+ * Defines dns_cache_t, the cache object.
*
* Notes:
* A cache object contains DNS data of a single class.
@@ -61,13 +61,13 @@ ISC_LANG_BEGINDECLS
*** Functions
***/
-isc_result_t
+isc_result_t
dns_cache_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
isc_timermgr_t *timermgr, dns_rdataclass_t rdclass,
const char *db_type, unsigned int db_argc, char **db_argv,
dns_cache_t **cachep);
/*
- * Create a new DNS cache.
+ * Create a new DNS cache.
*
* Requires:
*
@@ -133,9 +133,9 @@ dns_cache_attachdb(dns_cache_t *cache, dns_db_t **dbp);
* This may be used to get a reference to the database for
* the purpose of cache lookups (XXX currently it is also
* the way to add data to the cache, but having a
- * separate dns_cache_add() interface instead would allow
+ * separate dns_cache_add() interface instead would allow
* more control over memory usage).
- * The caller should call dns_db_detach() on the reference
+ * The caller should call dns_db_detach() on the reference
* when it is no longer needed.
*
* Requires:
@@ -172,10 +172,10 @@ dns_cache_load(dns_cache_t *cache);
* If no file name has been set, do nothing and return success.
*
* MT:
- * Multiple simultaneous attempts to load or dump the cache
+ * Multiple simultaneous attempts to load or dump the cache
* will be serialized with respect to one another, but
* the cache may be read and updated while the dump is
- * in progress. Updates performed during loading
+ * in progress. Updates performed during loading
* may or may not be preserved, and reads may return
* either the old or the newly loaded data.
*
@@ -193,12 +193,12 @@ dns_cache_dump(dns_cache_t *cache);
* do nothing and return success.
*
* MT:
- * Multiple simultaneous attempts to load or dump the cache
+ * Multiple simultaneous attempts to load or dump the cache
* will be serialized with respect to one another, but
* the cache may be read and updated while the dump is
* in progress. Updates performed during the dump may
* or may not be reflected in the dumped file.
- *
+ *
* Returns:
*
* ISC_R_SUCCESS
@@ -217,7 +217,7 @@ void
dns_cache_setcleaninginterval(dns_cache_t *cache, unsigned int interval);
/*
* Set the periodic cache cleaning interval to 'interval' seconds.
- */
+ */
ISC_LANG_ENDDECLS
diff --git a/lib/dns/include/dns/callbacks.h b/lib/dns/include/dns/callbacks.h
index fe7509bdfb..f8343b69b4 100644
--- a/lib/dns/include/dns/callbacks.h
+++ b/lib/dns/include/dns/callbacks.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: callbacks.h,v 1.13 2000/07/27 09:47:26 tale Exp $ */
+/* $Id: callbacks.h,v 1.14 2000/08/01 01:23:44 tale Exp $ */
#ifndef DNS_CALLBACKS_H
#define DNS_CALLBACKS_H 1
@@ -29,7 +29,7 @@
#include
ISC_LANG_BEGINDECLS
-
+
/***
*** Types
***/
@@ -65,7 +65,7 @@ dns_rdatacallbacks_init(dns_rdatacallbacks_t *callbacks);
* Initalise 'callbacks'.
* 'error' and 'warn' are set to default callbacks that print the
* error message through the DNS library log context.
- *
+ *
* All other elements are initalised to NULL.
*
* Requires:
diff --git a/lib/dns/include/dns/cert.h b/lib/dns/include/dns/cert.h
index 86289a2422..7731351387 100644
--- a/lib/dns/include/dns/cert.h
+++ b/lib/dns/include/dns/cert.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cert.h,v 1.10 2000/07/27 09:47:27 tale Exp $ */
+/* $Id: cert.h,v 1.11 2000/08/01 01:23:45 tale Exp $ */
#ifndef DNS_CERT_H
#define DNS_CERT_H 1
diff --git a/lib/dns/include/dns/compress.h b/lib/dns/include/dns/compress.h
index 25c082045b..a7c131e047 100644
--- a/lib/dns/include/dns/compress.h
+++ b/lib/dns/include/dns/compress.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: compress.h,v 1.17 2000/07/27 09:47:28 tale Exp $ */
+/* $Id: compress.h,v 1.18 2000/08/01 01:23:46 tale Exp $ */
#ifndef DNS_COMPRESS_H
#define DNS_COMPRESS_H 1
diff --git a/lib/dns/include/dns/confacl.h b/lib/dns/include/dns/confacl.h
index 26803cb995..23ee6a5467 100644
--- a/lib/dns/include/dns/confacl.h
+++ b/lib/dns/include/dns/confacl.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confacl.h,v 1.13 2000/07/27 09:47:29 tale Exp $ */
+/* $Id: confacl.h,v 1.14 2000/08/01 01:23:47 tale Exp $ */
#ifndef DNS_CONFACL_H
#define DNS_CONFACL_H 1
@@ -35,7 +35,7 @@
/*
* MP:
* Caller must do necessary locking.
- *
+ *
* Reliability:
*
* No known problems.
@@ -51,7 +51,7 @@
* Standards:
*
* N/A.
- *
+ *
*/
/***
@@ -84,7 +84,7 @@ struct dns_c_acl {
isc_uint32_t magic;
dns_c_acltable_t *mytable;
-
+
char *name;
dns_c_ipmatchlist_t *ipml;
isc_boolean_t is_special;
@@ -94,9 +94,9 @@ struct dns_c_acl {
struct dns_c_acl_table {
isc_uint32_t magic;
-
+
isc_mem_t *mem;
-
+
ISC_LIST(dns_c_acl_t) acl_list;
};
@@ -116,11 +116,11 @@ dns_c_acltable_new(isc_mem_t *mem, dns_c_acltable_t **newtable);
* mem is a valid memory pool
* newtable is a valid non-NULL pointer.
* mem remain a valuid memory pool until the table is destroyed.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well.
* ISC_R_NOMEMORY -- not enough memory.
- *
+ *
*/
@@ -133,10 +133,10 @@ dns_c_acltable_delete(dns_c_acltable_t **table);
* Requires:
* table is a valid pointer.
* The memory pool used at creation time still be valid.
- *
+ *
* Returns:
* ISC_R_SUCCESS
- *
+ *
*/
@@ -149,11 +149,11 @@ dns_c_acltable_getacl(dns_c_acltable_t *table, const char *aclname,
*
* Requires:
* TABLE be a value ACL table.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOTFOUND -- acl was not found
- *
+ *
*/
isc_result_t
@@ -164,11 +164,11 @@ dns_c_acltable_removeacl(dns_c_acltable_t *table, const char *aclname);
* Requires:
* table be a valid pointer to an acl table
* aclname be a valid pointer to string of positive length.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOTFOUND -- acl was not in the table.
- *
+ *
*/
void
@@ -182,7 +182,7 @@ dns_c_acltable_print(FILE *fp, int indent, dns_c_acltable_t *table);
* fp be a valid stdio stream
* indent be a non-negative number
* table be a valid acl table.
- *
+ *
*/
isc_result_t
@@ -192,17 +192,17 @@ dns_c_acltable_clear(dns_c_acltable_t *table);
*
* Requires:
* table must point to a valid ACL table.
- *
+ *
* Returns:
* ISC_R_SUCCESS
- *
+ *
*/
isc_result_t
dns_c_acl_new(dns_c_acltable_t *table, const char *aclname,
isc_boolean_t isspecial, dns_c_acl_t **newacl);
/*
- * Creates a new ACL. The acl is placed in the given table. If isspecial is
+ * Creates a new ACL. The acl is placed in the given table. If isspecial is
* true then the acl is not printed by dns_c_acl_print. The new acl is
* returned via the newacl parameter
*
@@ -210,25 +210,25 @@ dns_c_acl_new(dns_c_acltable_t *table, const char *aclname,
* table be a pointer to a valid acl table.
* aclname be a pointer to a valid string of positive length
* newacl be a valid non-NULL pointer.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- out of memory
- *
+ *
*/
void
dns_c_acl_print(FILE *fp, int indent, dns_c_acl_t *acl);
/*
- * Prints out the acl to the stdio stream. The outupt is indented by INDENT
+ * Prints out the acl to the stdio stream. The outupt is indented by INDENT
* tabs.
*
* Requires:
* fp be a pointer to a valid stdio stream
* indent be non-negative,
* acl be a pointer to a valid acl.
- *
+ *
*/
isc_result_t
@@ -236,21 +236,21 @@ dns_c_acl_setipml(dns_c_acl_t *acl, dns_c_ipmatchlist_t *ipml,
isc_boolean_t deepcopy);
/*
* Sets the ipmatch list of the ACL to the IPML. If DEEPCOPY is true, then
- * a full copy of IPML is made using the MEM memory pool. In which case the
- * caller still is the owner the memory IPML points to. If DEEPCOPY is
- * false, then the acl takes ownership of the memory IPML points to. If the
+ * a full copy of IPML is made using the MEM memory pool. In which case the
+ * caller still is the owner the memory IPML points to. If DEEPCOPY is
+ * false, then the acl takes ownership of the memory IPML points to. If the
* acl already has an ipmatch list, then it is deleted before the new one
* is added.
*
* Requires:
* mem be a pointer to a valid memory manager
* ipml be a valid dns_c_ipmatchlist_t
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- memory could not be allocated for the
* deepcopy .
- *
+ *
*/
isc_result_t
@@ -267,12 +267,12 @@ dns_c_acl_getipmlexpanded(isc_mem_t *mem, dns_c_acl_t *acl,
* mem be a pointer to a valid memory manager
* acl be a pointer to a valid acl.
* retval be a valid non-NULL pointer.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- not enough memory to make copy.
* ISC_R_FAILURE -- an acl reference couldn't be expanded.
- *
+ *
*/
isc_result_t
diff --git a/lib/dns/include/dns/confcache.h b/lib/dns/include/dns/confcache.h
index 46d76dee40..3453b262ec 100644
--- a/lib/dns/include/dns/confcache.h
+++ b/lib/dns/include/dns/confcache.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confcache.h,v 1.9 2000/07/27 09:47:30 tale Exp $ */
+/* $Id: confcache.h,v 1.10 2000/08/01 01:23:48 tale Exp $ */
#ifndef DNS_CONFCACHE_H
#define DNS_CONFCACHE_H 1
@@ -33,7 +33,7 @@
*
* MP:
* Client must do necessary locking.
- *
+ *
* Reliability:
*
* No problems.
@@ -45,7 +45,7 @@
* Security:
*
* N/A
- *
+ *
*/
/***
@@ -83,11 +83,11 @@ dns_c_cache_new(isc_mem_t *mem, dns_c_cache_t **cfgres);
* Requires:
* mem be a pointer to a valid memory manager.
* newres be a valid non-NULL pointer.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- out of memory
- *
+ *
*/
isc_result_t
@@ -98,10 +98,10 @@ dns_c_cache_delete(dns_c_cache_t **cfgres);
* Requires:
* cfgres be a valid non-NULL pointer. The pointer it points to
* can be NULL or must be a valid dns_c_cache_t object.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
- *
+ *
*/
ISC_LANG_ENDDECLS
diff --git a/lib/dns/include/dns/confcommon.h b/lib/dns/include/dns/confcommon.h
index ba358f14c7..62aa9f7900 100644
--- a/lib/dns/include/dns/confcommon.h
+++ b/lib/dns/include/dns/confcommon.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confcommon.h,v 1.28 2000/07/27 09:47:31 tale Exp $ */
+/* $Id: confcommon.h,v 1.29 2000/08/01 01:23:49 tale Exp $ */
#ifndef DNS_CONFCOMMON_H
#define DNS_CONFCOMMON_H 1
@@ -73,7 +73,7 @@
#define DNS_C_STDERR_PATH " " /* not really a path */
/*
- * The value we use in config files if the user doesn't specify the port or
+ * The value we use in config files if the user doesn't specify the port or
* in some statements.
*/
#define DNS_C_DEFAULTPORT 53 /* XXX this should be imported */
@@ -94,7 +94,7 @@
#define DNS_C_UNLIM_VERSIONS DNS_C_SIZE_SPEC_UNLIM
/*
- * The default ordering given to rrset-order statements when the type given
+ * The default ordering given to rrset-order statements when the type given
* is illegal (so parsing can continue).
*/
#define DNS_DEFAULT_ORDERING dns_c_ordering_fixed
@@ -145,7 +145,7 @@ typedef enum {
} dns_c_zonetype_t;
-/* Possible address-match-element types */
+/* Possible address-match-element types */
typedef enum {
dns_c_ipmatch_pattern,
dns_c_ipmatch_indirect,
@@ -205,7 +205,7 @@ typedef struct dns_c_zone_list dns_c_zonelist_t;
* Set this variable to a true value to get output by the wrapper
* functions (if the memory debugging hack is compiled in--it isn't by
* default
- */
+ */
extern isc_boolean_t debug_mem_print;
extern FILE *debug_mem_print_stream; /* NULL means stderr */
@@ -216,12 +216,12 @@ extern FILE *debug_mem_print_stream; /* NULL means stderr */
ISC_LANG_BEGINDECLS
-/* The following dns_c_xxx2string() functions convert the first argument into
+/* The following dns_c_xxx2string() functions convert the first argument into
* a string value and returns that value. If the first argument is not a
- * legal value, then NULL is returned, unless PRINTABLE is true, in which
+ * legal value, then NULL is returned, unless PRINTABLE is true, in which
* case an ugly, but safe-to-pass-to-printf string is returned.
*
- * e.g. dns_c_ordering2string(dns_c_ordering_cyclic,ISC_FALSE) returns the
+ * e.g. dns_c_ordering2string(dns_c_ordering_cyclic,ISC_FALSE) returns the
* string "cyclic", but
* dns_c_ordering2string((dns_c_ordering_t)0xffff,ISC_TRUE) returns the
* value "UNKNOWN_ORDERING"
@@ -252,7 +252,7 @@ dns_c_addata2string(dns_c_addata_t addata, isc_boolean_t printable);
/*
* The following dns_c_string2xxx() functions will look up the string
- * argument in a table of values and will return the appropriate enum/integer
+ * argument in a table of values and will return the appropriate enum/integer
* through the second argument and ISC_R_SUCCESS is returned. If the string
* doesn't match a valid value then ISC_R_FAILURE is returned.
*/
@@ -275,7 +275,7 @@ isc_boolean_t
dns_c_need_quote(const char *string);
void
-dns_c_printtabs(FILE *fp, int count);
+dns_c_printtabs(FILE *fp, int count);
void
dns_c_printinunits(FILE *fp, isc_uint32_t val);
diff --git a/lib/dns/include/dns/confctl.h b/lib/dns/include/dns/confctl.h
index 61b8e46e46..571defc08a 100644
--- a/lib/dns/include/dns/confctl.h
+++ b/lib/dns/include/dns/confctl.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confctl.h,v 1.20 2000/07/27 09:47:32 tale Exp $ */
+/* $Id: confctl.h,v 1.21 2000/08/01 01:23:50 tale Exp $ */
#ifndef DNS_CONFCTL_H
#define DNS_CONFCTL_H 1
@@ -29,7 +29,7 @@
*/
/*
- *
+ *
* MP:
*
* Caller must do necessary locking.
@@ -49,7 +49,7 @@
* Standards:
*
* N/A.
- *
+ *
*/
@@ -96,7 +96,7 @@ struct dns_c_ctrl {
} unix_v; /* when control_type == dns_c_unix_control */
} u;
dns_c_kidlist_t *keyidlist;
-
+
ISC_LINK(dns_c_ctrl_t) next;
};
@@ -146,7 +146,7 @@ dns_c_ctrlunix_new(isc_mem_t *mem, dns_c_ctrl_t **control, const char *path,
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- insufficient memory available
- *
+ *
*/
isc_result_t
diff --git a/lib/dns/include/dns/confctx.h b/lib/dns/include/dns/confctx.h
index 6253af01cf..a35b51ba73 100644
--- a/lib/dns/include/dns/confctx.h
+++ b/lib/dns/include/dns/confctx.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confctx.h,v 1.47 2000/07/31 21:07:04 explorer Exp $ */
+/* $Id: confctx.h,v 1.48 2000/08/01 01:23:52 tale Exp $ */
#ifndef DNS_CONFCTX_H
#define DNS_CONFCTX_H 1
@@ -25,26 +25,26 @@
*****/
/*
- * Defines the structures and accessor/modifier functions for the top level
+ * Defines the structures and accessor/modifier functions for the top level
* structures created by the config file parsing routines.
*/
/*
*
* MP:
- *
+ *
*
* Reliability:
- *
+ *
*
* Resources:
- *
+ *
*
* Security:
- *
+ *
*
* Standards:
- *
+ *
*/
/***
@@ -85,7 +85,7 @@ struct dns_c_ctx {
int warnings; /* semantic warning count */
int errors; /* semantic error count */
-
+
dns_c_options_t *options;
dns_c_cache_t *cache;
dns_c_resolv_t *resolver;
@@ -109,7 +109,7 @@ struct dns_c_ctx {
struct dns_c_options {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
char *directory;
char *version;
char *dump_filename;
@@ -122,9 +122,9 @@ struct dns_c_options {
in_port_t *port;
- isc_uint32_t *transfers_in;
+ isc_uint32_t *transfers_in;
isc_uint32_t *transfers_per_ns;
- isc_uint32_t *transfers_out;
+ isc_uint32_t *transfers_out;
isc_uint32_t *max_log_size_ixfr;
isc_uint32_t *clean_interval;
isc_uint32_t *interface_interval;
@@ -141,7 +141,7 @@ struct dns_c_options {
isc_uint32_t *min_roots;
isc_uint32_t *serial_queries;
isc_uint32_t *sig_valid_interval;
-
+
isc_uint32_t *data_size;
isc_uint32_t *stack_size;
isc_uint32_t *core_size;
@@ -169,20 +169,20 @@ struct dns_c_options {
isc_boolean_t *treat_cr_as_space;
isc_boolean_t *additional_from_cache;
isc_boolean_t *additional_from_auth;
-
+
isc_sockaddr_t *transfer_source;
isc_sockaddr_t *transfer_source_v6;
isc_sockaddr_t *query_source;
isc_sockaddr_t *query_source_v6;
dns_c_addata_t *additional_data;
-
+
dns_c_forw_t *forward;
char *tkeydhkeycp;
isc_uint32_t tkeydhkeyi;
char *tkeydomain;
-
+
dns_notifytype_t *notify;
dns_c_iplist_t *also_notify;
@@ -200,7 +200,7 @@ struct dns_c_options {
dns_c_lstnlist_t *listens;
dns_c_lstnlist_t *v6listens;
-
+
dns_c_rrsolist_t *ordering;
dns_c_iplist_t *forwarders;
diff --git a/lib/dns/include/dns/confip.h b/lib/dns/include/dns/confip.h
index ec53e17c8e..1559b26ec5 100644
--- a/lib/dns/include/dns/confip.h
+++ b/lib/dns/include/dns/confip.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confip.h,v 1.26 2000/07/27 09:47:35 tale Exp $ */
+/* $Id: confip.h,v 1.27 2000/08/01 01:23:53 tale Exp $ */
#ifndef DNS_CONFIP_H
#define DNS_CONFIP_H 1
@@ -91,7 +91,7 @@ typedef struct dns_c_ipmatch_list dns_c_ipmatchlist_t;
*/
struct dns_c_iplist {
isc_uint32_t magic;
-
+
isc_mem_t *mem;
int refcount;
isc_sockaddr_t *ips;
@@ -104,7 +104,7 @@ struct dns_c_iplist {
struct dns_c_ipmatch_direct {
isc_uint32_t magic;
-
+
isc_sockaddr_t address;
isc_uint32_t mask;
};
@@ -113,14 +113,14 @@ struct dns_c_ipmatch_direct {
struct dns_c_ipmatch_indirect {
isc_uint32_t magic;
-
+
isc_textregion_t refname; /* For acls, mostly. */
dns_c_ipmatchlist_t *list;
};
struct dns_c_ipmatch_element {
isc_uint32_t magic;
-
+
dns_c_ipmatch_type_t type;
u_int flags;
union {
@@ -136,7 +136,7 @@ struct dns_c_ipmatch_element {
struct dns_c_ipmatch_list {
isc_uint32_t magic;
-
+
isc_mem_t *mem;
int refcount;
@@ -182,13 +182,13 @@ isc_result_t dns_c_ipmatchkey_new(isc_mem_t *mem,
const char *key);
isc_result_t dns_c_ipmatchany_new(isc_mem_t *mem,
- dns_c_ipmatchelement_t **result);
+ dns_c_ipmatchelement_t **result);
isc_result_t dns_c_ipmatchlocalhost_new(isc_mem_t *mem,
- dns_c_ipmatchelement_t **result);
+ dns_c_ipmatchelement_t **result);
isc_result_t dns_c_ipmatchlocalnets_new(isc_mem_t *mem,
- dns_c_ipmatchelement_t **result);
+ dns_c_ipmatchelement_t **result);
isc_result_t dns_c_ipmatchpattern_new(isc_mem_t *mem,
dns_c_ipmatchelement_t **result,
@@ -263,7 +263,7 @@ isc_boolean_t dns_c_ipmatchlist_equal(dns_c_ipmatchlist_t *l1,
typedef isc_boolean_t (*dns_c_ipmlwalker)(dns_c_ipmatchelement_t *element);
/*
- * Recursively decends the list and returns the boolean AND of the return
+ * Recursively decends the list and returns the boolean AND of the return
* values of func.
*/
isc_boolean_t
diff --git a/lib/dns/include/dns/confkeys.h b/lib/dns/include/dns/confkeys.h
index d4cf2d238b..90b826b0f2 100644
--- a/lib/dns/include/dns/confkeys.h
+++ b/lib/dns/include/dns/confkeys.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confkeys.h,v 1.19 2000/07/27 09:47:36 tale Exp $ */
+/* $Id: confkeys.h,v 1.20 2000/08/01 01:23:54 tale Exp $ */
#ifndef DNS_CONFKEYS_H
#define DNS_CONFKEYS_H 1
@@ -29,7 +29,7 @@
*/
/*
- *
+ *
* MP:
*
* Caller must to all necessary locking.
@@ -43,11 +43,11 @@
* Memory allocators supplied by caller
*
* Security:
- *
+ *
* Not applicable.
*
* Standards:
- *
+ *
* Not applicable.
*/
@@ -99,7 +99,7 @@ typedef struct dns_c_kid_list dns_c_kidlist_t;
struct dns_c_tkey {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
char *domain;
dns_c_pubkey_t *pubkey;
@@ -115,8 +115,8 @@ struct dns_c_tkey_list {
ISC_LIST(dns_c_tkey_t) tkeylist;
};
-
-
+
+
/*
* A public key value.
*/
@@ -234,7 +234,7 @@ isc_result_t dns_c_kidlist_delete(dns_c_kidlist_t **list);
isc_uint32_t dns_c_kidlist_keycount(dns_c_kidlist_t *list);
-
+
isc_result_t dns_c_kidlist_undef(dns_c_kidlist_t *list, const char *keyid);
isc_result_t dns_c_kidlist_find(dns_c_kidlist_t *list, const char *keyid,
@@ -257,7 +257,7 @@ isc_result_t dns_c_kdeflist_copy(isc_mem_t *mem, dns_c_kdeflist_t **dest,
isc_result_t dns_c_kdeflist_append(dns_c_kdeflist_t *list, dns_c_kdef_t *key,
isc_boolean_t copy);
-isc_result_t dns_c_kdeflist_undef(dns_c_kdeflist_t *list, const char *keyid);
+isc_result_t dns_c_kdeflist_undef(dns_c_kdeflist_t *list, const char *keyid);
isc_result_t dns_c_kdeflist_find(dns_c_kdeflist_t *list, const char *keyid,
dns_c_kdef_t **retval);
diff --git a/lib/dns/include/dns/conflog.h b/lib/dns/include/dns/conflog.h
index d85f779eb0..b53c4afbf4 100644
--- a/lib/dns/include/dns/conflog.h
+++ b/lib/dns/include/dns/conflog.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: conflog.h,v 1.14 2000/07/27 09:47:37 tale Exp $ */
+/* $Id: conflog.h,v 1.15 2000/08/01 01:23:55 tale Exp $ */
#ifndef DNS_CONFLOG_H
#define DNS_CONFLOG_H 1
@@ -33,7 +33,7 @@
* MP:
*
* Caller must do appropriate locking
- *
+ *
* Reliability:
*
* No impact.
@@ -41,7 +41,7 @@
* Resources:
*
* Caller supplies memory allocators
- *
+ *
* Security:
*
* No impact.
@@ -49,7 +49,7 @@
* Standards:
*
* N/A
- *
+ *
*/
/***
@@ -85,7 +85,7 @@ typedef struct dns_c_logging_list dns_c_logginglist_t;
struct dns_c_logging_list {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
ISC_LIST(dns_c_logchan_t) channels;
ISC_LIST(dns_c_logcat_t) categories;
};
@@ -99,7 +99,7 @@ struct dns_c_logchan
char *name;
- dns_c_logchantype_t ctype;
+ dns_c_logchantype_t ctype;
union {
struct
{ /* when ctype == dns_c_logchan_file */
@@ -124,8 +124,8 @@ struct dns_c_logchan
* Some channels are predefined e.g. default_syslog, in which case
* this is true.
*/
- isc_boolean_t predefined;
-
+ isc_boolean_t predefined;
+
ISC_LINK(dns_c_logchan_t) next;
dns_c_setbits_t setflags;
};
@@ -140,12 +140,12 @@ struct dns_c_logcat {
char *catname;
char **channel_names;
- size_t cnames_len; /* size, in elements of
+ size_t cnames_len; /* size, in elements of
channel_names */
size_t nextcname; /* index in
- channel_names of next
+ channel_names of next
free spot. */
-
+
isc_boolean_t predefined;
ISC_LINK(dns_c_logcat_t) next;
diff --git a/lib/dns/include/dns/conflsn.h b/lib/dns/include/dns/conflsn.h
index 48d9a63348..f34a58d0c7 100644
--- a/lib/dns/include/dns/conflsn.h
+++ b/lib/dns/include/dns/conflsn.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: conflsn.h,v 1.16 2000/07/27 09:47:38 tale Exp $ */
+/* $Id: conflsn.h,v 1.17 2000/08/01 01:23:56 tale Exp $ */
#ifndef DNS_CONFLSN_H
#define DNS_CONFLSN_H 1
@@ -28,7 +28,7 @@
* Data structures to hold information related to ``listen-on'' statements
* in the named.conf file.
*/
-
+
/*
*
* MP:
@@ -50,7 +50,7 @@
* Standards:
*
* N/A
- *
+ *
*/
/***
@@ -81,7 +81,7 @@ typedef struct dns_c_lstn_list dns_c_lstnlist_t;
struct dns_c_lstn_on {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
in_port_t port;
dns_c_ipmatchlist_t *iml;
@@ -127,7 +127,7 @@ dns_c_lstnlist_delete(dns_c_lstnlist_t **llist);
* Sets *LLIST to NULL when done.
*
* Requires:
- *
+ *
* Returns:
*
* ISC_R_SUCCESS on success.
diff --git a/lib/dns/include/dns/confndc.h b/lib/dns/include/dns/confndc.h
index 9dc7df7257..b712a6ef4a 100644
--- a/lib/dns/include/dns/confndc.h
+++ b/lib/dns/include/dns/confndc.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confndc.h,v 1.10 2000/07/27 09:47:40 tale Exp $ */
+/* $Id: confndc.h,v 1.11 2000/08/01 01:23:57 tale Exp $ */
#ifndef DNS_CONFNDC_H
#define DNS_CONFNDC_H 1
@@ -47,7 +47,7 @@ typedef struct dns_c_ndckey dnc_c_ndckey_t;
struct dns_c_ndcctx {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
dns_c_ndcopts_t *opts;
dns_c_ndcserverlist_t *servers;
dns_c_kdeflist_t *keys;
@@ -67,7 +67,7 @@ struct dns_c_ndcserverlist {
ISC_LIST(dns_c_ndcserver_t) list;
};
-
+
struct dns_c_ndcserver {
isc_uint32_t magic;
isc_mem_t *mem;
diff --git a/lib/dns/include/dns/confparser.h b/lib/dns/include/dns/confparser.h
index 3076e13ef3..e3f8b46cde 100644
--- a/lib/dns/include/dns/confparser.h
+++ b/lib/dns/include/dns/confparser.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confparser.h,v 1.11 2000/07/27 09:47:41 tale Exp $ */
+/* $Id: confparser.h,v 1.12 2000/08/01 01:23:58 tale Exp $ */
#ifndef DNS_CONFPARSER_H
#define DNS_CONFPARSER_H 1
@@ -42,7 +42,7 @@
*
* Resources:
* Long-term memory allocation done with memory allocator supplied by
- * caller.
+ * caller.
*
* Security:
*
@@ -62,11 +62,11 @@
#include
/*
- * Typedefs for the callbacks done while parsing. If the callback functions
+ * Typedefs for the callbacks done while parsing. If the callback functions
* return anything other than ISC_R_SUCCESS, then the parse routine
* terminates with an error.
*/
-
+
typedef isc_result_t (*dns_c_zonecbk_t)(dns_c_ctx_t *ctx,
dns_c_zone_t *zone,
dns_c_view_t *view,
diff --git a/lib/dns/include/dns/confresolv.h b/lib/dns/include/dns/confresolv.h
index 224508ff07..42dc5a96c9 100644
--- a/lib/dns/include/dns/confresolv.h
+++ b/lib/dns/include/dns/confresolv.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confresolv.h,v 1.9 2000/07/27 09:47:42 tale Exp $ */
+/* $Id: confresolv.h,v 1.10 2000/08/01 01:24:00 tale Exp $ */
#ifndef DNS_CONFRESOLV_H
#define DNS_CONFRESOLV_H 1
@@ -33,7 +33,7 @@
*
* MP:
* Client must do necessary locking.
- *
+ *
* Reliability:
*
* No problems.
@@ -45,7 +45,7 @@
* Security:
*
* N/A
- *
+ *
*/
/***
@@ -81,11 +81,11 @@ dns_c_resolv_new(isc_mem_t *mem, dns_c_resolv_t **cfgres);
* Requires:
* mem be a pointer to a valid memory manager.
* newres be a valid non-NULL pointer.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
* ISC_R_NOMEMORY -- out of memory
- *
+ *
*/
isc_result_t
@@ -96,10 +96,10 @@ dns_c_resolv_delete(dns_c_resolv_t **cfgres);
* Requires:
* cfgres be a valid non-NULL pointer. The pointer it points to
* can be NULL or must be a valid dns_c_resolv_t object.
- *
+ *
* Returns:
* ISC_R_SUCCESS -- all is well
- *
+ *
*/
ISC_LANG_ENDDECLS
diff --git a/lib/dns/include/dns/confrrset.h b/lib/dns/include/dns/confrrset.h
index 0531a18a24..a632a75bb5 100644
--- a/lib/dns/include/dns/confrrset.h
+++ b/lib/dns/include/dns/confrrset.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confrrset.h,v 1.13 2000/07/27 09:47:43 tale Exp $ */
+/* $Id: confrrset.h,v 1.14 2000/08/01 01:24:01 tale Exp $ */
#ifndef DNS_CONFRRSET_H
#define DNS_CONFRRSET_H 1
@@ -25,21 +25,21 @@
*****/
/*
- *
+ *
* MP:
- *
+ *
*
* Reliability:
- *
+ *
*
* Resources:
- *
+ *
*
* Security:
- *
+ *
*
* Standards:
- *
+ *
*/
/***
@@ -68,9 +68,9 @@ typedef struct dns_c_rrso_list dns_c_rrsolist_t;
struct dns_c_rrso {
isc_uint32_t magic;
-
+
isc_mem_t *mem;
-
+
dns_rdataclass_t oclass;
dns_rdatatype_t otype;
char *name;
diff --git a/lib/dns/include/dns/confview.h b/lib/dns/include/dns/confview.h
index 8ee6010755..006900d504 100644
--- a/lib/dns/include/dns/confview.h
+++ b/lib/dns/include/dns/confview.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confview.h,v 1.35 2000/07/31 21:07:06 explorer Exp $ */
+/* $Id: confview.h,v 1.36 2000/08/01 01:24:02 tale Exp $ */
#ifndef DNS_CONFVIEW_H
#define DNS_CONFVIEW_H 1
@@ -25,7 +25,7 @@
*****/
/*
- * Zones as seen by the config file parser. The data structures here define
+ * Zones as seen by the config file parser. The data structures here define
* the zone data as it is in the config file. The data structures here do
* *not* define the things like red-black trees for named's internal data
* structures.
@@ -36,7 +36,7 @@
*
* MP:
* Client must do necessary locking.
- *
+ *
* Reliability:
*
* No problems.
@@ -48,7 +48,7 @@
* Security:
*
* N/A
- *
+ *
*/
/***
@@ -81,7 +81,7 @@ typedef struct dns_c_viewtable dns_c_viewtable_t;
struct dns_c_viewtable {
isc_uint32_t magic;
-
+
isc_mem_t *mem;
ISC_LIST(dns_c_view_t) views;
@@ -90,11 +90,11 @@ struct dns_c_viewtable {
struct dns_c_view {
isc_uint32_t magic;
isc_mem_t *mem;
-
+
char *name;
dns_rdataclass_t viewclass;
-
+
dns_c_zonelist_t *zonelist;
dns_c_forw_t *forward;
@@ -111,9 +111,9 @@ struct dns_c_view {
dns_c_ipmatchlist_t *matchclients;
dns_c_rrsolist_t *ordering; /* XXX not parsed yet */
-
+
dns_severity_t *check_names[DNS_C_TRANSCOUNT];
-
+
/*
* XXX to implement now.
*/
@@ -150,7 +150,7 @@ struct dns_c_view {
dns_c_tkeylist_t *trusted_keys;
-#if 0
+#if 0
/*
* To implement later.
*/
diff --git a/lib/dns/include/dns/confzone.h b/lib/dns/include/dns/confzone.h
index 5e8da632bc..56f3032af9 100644
--- a/lib/dns/include/dns/confzone.h
+++ b/lib/dns/include/dns/confzone.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: confzone.h,v 1.38 2000/07/27 09:47:45 tale Exp $ */
+/* $Id: confzone.h,v 1.39 2000/08/01 01:24:03 tale Exp $ */
#ifndef DNS_CONFZONE_H
#define DNS_CONFZONE_H 1
@@ -25,7 +25,7 @@
*****/
/*
- * Zones as seen by the config file parser. The data structures here define
+ * Zones as seen by the config file parser. The data structures here define
* the zone data as it is in the config file. The data structures here do
* *not* define the things like red-black trees for named's internal data
* structures.
@@ -36,7 +36,7 @@
*
* MP:
* Client must do necessary locking.
- *
+ *
* Reliability:
*
* No problems.
@@ -48,7 +48,7 @@
* Security:
*
* N/A
- *
+ *
*/
/***
@@ -162,8 +162,8 @@ struct dns_c_stub_zone {
dns_c_pklist_t *pubkeylist;
in_port_t master_port;
dns_c_iplist_t *master_ips;
- isc_sockaddr_t transfer_source;
- isc_sockaddr_t transfer_source_v6;
+ isc_sockaddr_t transfer_source;
+ isc_sockaddr_t transfer_source_v6;
isc_uint32_t max_trans_time_in;
isc_uint32_t max_trans_idle_in;
@@ -191,19 +191,19 @@ struct dns_c_hint_zone {
struct dns_c_zone {
isc_int32_t magic;
-
+
isc_mem_t *mem;
isc_uint8_t refcount;
-
+
char *name; /* e.g. "foo.com" */
char *internalname; /* e.g. "foo.com.ext" */
char *database;
- dns_rdataclass_t zclass;
+ dns_rdataclass_t zclass;
dns_c_view_t *view;
isc_boolean_t *enabled;
-
+
dns_c_zonetype_t ztype;
- union
+ union
{
dns_c_masterzone_t mzone;
dns_c_slavezone_t szone;
diff --git a/lib/dns/include/dns/db.h b/lib/dns/include/dns/db.h
index 83fcc5c36e..ec46793e42 100644
--- a/lib/dns/include/dns/db.h
+++ b/lib/dns/include/dns/db.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: db.h,v 1.52 2000/07/27 09:47:46 tale Exp $ */
+/* $Id: db.h,v 1.53 2000/08/01 01:24:04 tale Exp $ */
#ifndef DNS_DB_H
#define DNS_DB_H 1
@@ -75,7 +75,7 @@ typedef struct dns_dbmethods {
isc_result_t (*beginload)(dns_db_t *db, dns_addrdatasetfunc_t *addp,
dns_dbload_t **dbloadp);
isc_result_t (*endload)(dns_db_t *db, dns_dbload_t **dbloadp);
- isc_result_t (*dump)(dns_db_t *db, dns_dbversion_t *version,
+ isc_result_t (*dump)(dns_db_t *db, dns_dbversion_t *version,
const char *filename);
void (*currentversion)(dns_db_t *db,
dns_dbversion_t **versionp);
@@ -498,7 +498,7 @@ dns_db_newversion(dns_db_t *db, dns_dbversion_t **versionp);
* Ensures:
*
* On success, '*versionp' is attached to the current version.
- *
+ *
* Returns:
*
* ISC_R_SUCCESS
@@ -943,7 +943,7 @@ dns_db_findrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
*
* ISC_R_SUCCESS
* ISC_R_NOTFOUND
- *
+ *
* Other results are possible, depending upon the database
* implementation used.
*/
@@ -981,7 +981,7 @@ dns_db_allrdatasets(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
*
* ISC_R_SUCCESS
* ISC_R_NOTFOUND
- *
+ *
* Other results are possible, depending upon the database
* implementation used.
*/
@@ -1036,7 +1036,7 @@ dns_db_addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
* ISC_R_SUCCESS
* DNS_R_UNCHANGED The operation did not change anything.
* ISC_R_NOMEMORY
- *
+ *
* Other results are possible, depending upon the database
* implementation used.
*/
@@ -1052,7 +1052,7 @@ dns_db_subtractrdataset(dns_db_t *db, dns_dbnode_t *node,
* Notes:
*
* If 'newrdataset' is not NULL, then it will be attached to the
- * resulting new rdataset in the database, unless the rdataset has
+ * resulting new rdataset in the database, unless the rdataset has
* become nonexistent.
*
* Requires:
@@ -1075,7 +1075,7 @@ dns_db_subtractrdataset(dns_db_t *db, dns_dbnode_t *node,
* DNS_R_UNCHANGED The operation did not change anything.
* DNS_R_NXRRSET All rdata of the same type as those
* in 'rdataset' have been deleted.
- *
+ *
* Other results are possible, depending upon the database
* implementation used.
*/
@@ -1114,7 +1114,7 @@ dns_db_deleterdataset(dns_db_t *db, dns_dbnode_t *node,
* ISC_R_SUCCESS
* DNS_R_UNCHANGED No rdatasets of 'type' existed before
* the operation was attempted.
- *
+ *
* Other results are possible, depending upon the database
* implementation used.
*/
diff --git a/lib/dns/include/dns/dbiterator.h b/lib/dns/include/dns/dbiterator.h
index edcf040c4a..4bccb653c8 100644
--- a/lib/dns/include/dns/dbiterator.h
+++ b/lib/dns/include/dns/dbiterator.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dbiterator.h,v 1.13 2000/07/27 09:47:48 tale Exp $ */
+/* $Id: dbiterator.h,v 1.14 2000/08/01 01:24:05 tale Exp $ */
#ifndef DNS_DBITERATOR_H
#define DNS_DBITERATOR_H 1
@@ -42,7 +42,7 @@
* MP:
* The iterator itself is not locked. The caller must ensure
* synchronization.
- *
+ *
* The iterator methods ensure appropriate database locking.
*
* Reliability:
diff --git a/lib/dns/include/dns/dbtable.h b/lib/dns/include/dns/dbtable.h
index e81f7ce6a5..6af2724e11 100644
--- a/lib/dns/include/dns/dbtable.h
+++ b/lib/dns/include/dns/dbtable.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dbtable.h,v 1.14 2000/07/27 09:47:49 tale Exp $ */
+/* $Id: dbtable.h,v 1.15 2000/08/01 01:24:07 tale Exp $ */
#ifndef DNS_DBTABLE_H
#define DNS_DBTABLE_H 1
diff --git a/lib/dns/include/dns/dispatch.h b/lib/dns/include/dns/dispatch.h
index 2e5df6ccb3..3068b1a563 100644
--- a/lib/dns/include/dns/dispatch.h
+++ b/lib/dns/include/dns/dispatch.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dispatch.h,v 1.34 2000/07/27 09:47:50 tale Exp $ */
+/* $Id: dispatch.h,v 1.35 2000/08/01 01:24:08 tale Exp $ */
#ifndef DNS_DISPATCH_H
#define DNS_DISPATCH_H 1
@@ -278,7 +278,7 @@ dns_dispatch_detach(dns_dispatch_t **dispp);
* < mumble >
*/
-void
+void
dns_dispatch_starttcp(dns_dispatch_t *disp);
/*
* Start processing of a TCP dispatch once the socket connects.
diff --git a/lib/dns/include/dns/dnssec.h b/lib/dns/include/dns/dnssec.h
index ecef66bc59..2df7bf9f8e 100644
--- a/lib/dns/include/dns/dnssec.h
+++ b/lib/dns/include/dns/dnssec.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dnssec.h,v 1.17 2000/07/27 09:47:51 tale Exp $ */
+/* $Id: dnssec.h,v 1.18 2000/08/01 01:24:09 tale Exp $ */
#ifndef DNS_DNSSEC_H
#define DNS_DNSSEC_H 1
diff --git a/lib/dns/include/dns/events.h b/lib/dns/include/dns/events.h
index 2e6c9330e0..ee9cc3cd7a 100644
--- a/lib/dns/include/dns/events.h
+++ b/lib/dns/include/dns/events.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: events.h,v 1.27 2000/07/27 09:47:52 tale Exp $ */
+/* $Id: events.h,v 1.28 2000/08/01 01:24:10 tale Exp $ */
#ifndef DNS_EVENTS_H
#define DNS_EVENTS_H 1
diff --git a/lib/dns/include/dns/fixedname.h b/lib/dns/include/dns/fixedname.h
index 7c852dbd6d..4b9e0ae921 100644
--- a/lib/dns/include/dns/fixedname.h
+++ b/lib/dns/include/dns/fixedname.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: fixedname.h,v 1.9 2000/07/27 09:47:53 tale Exp $ */
+/* $Id: fixedname.h,v 1.10 2000/08/01 01:24:11 tale Exp $ */
#ifndef DNS_FIXEDNAME_H
#define DNS_FIXEDNAME_H 1
diff --git a/lib/dns/include/dns/journal.h b/lib/dns/include/dns/journal.h
index e903377e30..973c734c73 100644
--- a/lib/dns/include/dns/journal.h
+++ b/lib/dns/include/dns/journal.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: journal.h,v 1.18 2000/07/27 09:47:54 tale Exp $ */
+/* $Id: journal.h,v 1.19 2000/08/01 01:24:12 tale Exp $ */
#ifndef DNS_JOURNAL_H
#define DNS_JOURNAL_H 1
@@ -47,13 +47,13 @@
* A dns_difftuple_t represents a single RR being added or deleted.
* The RR type and class are in the 'rdata' member; the class is always
* the real one, not a DynDNS meta-class, so that the rdatas can be
- * compared using dns_rdata_compare(). The TTL is significant
+ * compared using dns_rdata_compare(). The TTL is significant
* even for deletions, because a deletion/addition pair cannot
* be canceled out if the TTL differs (it might be an explicit
* TTL update).
*
* Tuples are also used to represent complete RRs with owner
- * names for a couple of other purposes, such as the
+ * names for a couple of other purposes, such as the
* individual RRs of a "RRset exists (value dependent)"
* prerequisite set. In this case, op==DNS_DIFFOP_EXISTS,
* and the TTL is ignored.
@@ -73,7 +73,7 @@ typedef struct dns_difftuple dns_difftuple_t;
struct dns_difftuple {
unsigned int magic;
isc_mem_t *mctx;
- dns_diffop_t op;
+ dns_diffop_t op;
dns_name_t name;
dns_ttl_t ttl;
dns_rdata_t rdata;
@@ -83,7 +83,7 @@ struct dns_difftuple {
/*
* A dns_diff_t represents a set of changes being applied to
- * a zone. Diffs are also used to represent "RRset exists
+ * a zone. Diffs are also used to represent "RRset exists
* (value dependent)" prerequisites.
*/
typedef struct dns_diff dns_diff_t;
@@ -158,7 +158,7 @@ dns_difftuple_copy(dns_difftuple_t *orig, dns_difftuple_t **copyp);
* Copy a tuple.
*
* Requires:
- * 'orig' points to a valid tuple
+ * 'orig' points to a valid tuple
* copyp != NULL && *copyp == NULL
*/
@@ -173,7 +173,7 @@ dns_diff_init(isc_mem_t *mctx, dns_diff_t *diff);
*
* Ensures:
* '*diff' is a valid, empty diff.
- */
+ */
void
dns_diff_clear(dns_diff_t *diff);
@@ -230,7 +230,7 @@ dns_diff_sort(dns_diff_t *diff, dns_diff_compare_func *compare);
* Sort 'diff' in-place according to the comparison function 'compare'.
*/
-isc_result_t
+isc_result_t
dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver);
/*
* Apply 'diff' to the database 'db'.
@@ -241,12 +241,12 @@ dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver);
*
* Requires:
* *diff is a valid diff (possibly empty), containing
- * tuples of type DNS_DIFFOP_ADD and/or
+ * tuples of type DNS_DIFFOP_ADD and/or
* For DNS_DIFFOP_DEL tuples, the TTL is ignored.
*
*/
-isc_result_t
+isc_result_t
dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
void *add_private);
/*
@@ -257,7 +257,7 @@ dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
* Requires:
* 'addfunc' is a valid dns_addradatasetfunc_t obtained from
* dns_db_beginload()
- *
+ *
* 'add_private' points to a corresponding dns_dbload_t *
* (XXX why is it a void pointer, then?)
*/
@@ -265,7 +265,7 @@ dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
isc_result_t
dns_diff_print(dns_diff_t *diff, FILE *file);
-/*
+/*
* Print the differences to 'file' or if 'file' is NULL via the
* logging system.
*
@@ -279,9 +279,9 @@ dns_diff_print(dns_diff_t *diff, FILE *file);
* ISC_R_UNEXPECTED
* any error from dns_rdataset_totext()
*/
-
+
/**************************************************************************/
-/*
+/*
* Misc. utilities
* XXX these belong in a general-purpose DNS library
*/
@@ -290,7 +290,7 @@ isc_uint32_t
dns_soa_getserial(dns_rdata_t *rdata);
/*
* Extract the serial number from the rdata of a SOA record.
- *
+ *
* Requires:
* rdata refers to the rdata of a well-formed SOA record.
*/
@@ -316,7 +316,7 @@ dns_db_createsoatuple(dns_db_t *db, dns_dbversion_t *ver, isc_mem_t *mctx,
#define DNS_SERIAL_GT(a, b) ((int)(((a) - (b)) & 0xFFFFFFFF) > 0)
#define DNS_SERIAL_GE(a, b) ((int)(((a) - (b)) & 0xFFFFFFFF) >= 0)
/*
- * Compare SOA serial numbers. DNS_SERIAL_GT(a, b) returns true iff
+ * Compare SOA serial numbers. DNS_SERIAL_GT(a, b) returns true iff
* a is "greater than" b where "greater than" is as defined in RFC1982.
* DNS_SERIAL_GE(a, b) returns true iff a is "greater than or equal to" b.
*/
@@ -332,10 +332,10 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
/*
* Open the journal file 'filename' and create a dns_journal_t object for it.
*
- * If 'write' is ISC_TRUE, the journal is open for writing. If it does
+ * If 'write' is ISC_TRUE, the journal is open for writing. If it does
* not exist, it is created.
*
- * If 'write' is ISC_FALSE, the journal is open for reading. If it does
+ * If 'write' is ISC_FALSE, the journal is open for reading. If it does
* not exist, ISC_R_NOTFOUND is returned.
*/
@@ -367,7 +367,7 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff);
* Requires:
* 'j' is open for writing and dns_journal_begin_transaction()
* has been called.
- *
+ *
* 'diff' is a full or partial, correctly ordered IXFR
* difference sequence.
*/
@@ -423,7 +423,7 @@ dns_journal_iter_init(dns_journal_t *j,
* from SOA serial number 'begin_serial' to 'end_serial'.
*
* Returns:
- * ISC_R_SUCCESS
+ * ISC_R_SUCCESS
* ISC_R_RANGE begin_serial is outside the addressable range.
* ISC_R_NOTFOUND begin_serial is within the range of adressable
* serial numbers covered by the journal, but
@@ -494,7 +494,7 @@ dns_db_diff(isc_mem_t *mctx,
* the order). This journal entry will consist of a single,
* possibly very large transaction. Append the journal
* entry to the journal file specified by 'journal_filename'.
- */
+ */
ISC_LANG_ENDDECLS
diff --git a/lib/dns/include/dns/keyflags.h b/lib/dns/include/dns/keyflags.h
index 02831f5ab9..bcec393ae7 100644
--- a/lib/dns/include/dns/keyflags.h
+++ b/lib/dns/include/dns/keyflags.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keyflags.h,v 1.7 2000/07/27 09:47:55 tale Exp $ */
+/* $Id: keyflags.h,v 1.8 2000/08/01 01:24:13 tale Exp $ */
#ifndef DNS_KEYFLAGS_H
#define DNS_KEYFLAGS_H 1
@@ -32,7 +32,7 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source);
* Convert the text 'source' refers to into a DNSSEC KEY flags value.
* The text may contain either a set of flag mnemonics separated by
* vertical bars or a decimal flags value. For compatibility with
- * older versions of BIND and the DNSSEC signer, octal values
+ * older versions of BIND and the DNSSEC signer, octal values
* prefixed with a zero and hexadecimal values prefixed with "0x"
* are also accepted.
*
diff --git a/lib/dns/include/dns/keytable.h b/lib/dns/include/dns/keytable.h
index c86e0fd45f..894814f11f 100644
--- a/lib/dns/include/dns/keytable.h
+++ b/lib/dns/include/dns/keytable.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keytable.h,v 1.8 2000/07/27 09:47:56 tale Exp $ */
+/* $Id: keytable.h,v 1.9 2000/08/01 01:24:14 tale Exp $ */
#ifndef DNS_KEYTABLE_H
#define DNS_KEYTABLE_H 1
@@ -155,7 +155,7 @@ dns_keytable_findkeynode(dns_keytable_t *keytable, dns_name_t *name,
* Any other result indicates an error.
*/
-isc_result_t
+isc_result_t
dns_keytable_findnextkeynode(dns_keytable_t *keytable, dns_keynode_t *keynode,
dns_keynode_t **nextnodep);
/*
diff --git a/lib/dns/include/dns/keyvalues.h b/lib/dns/include/dns/keyvalues.h
index 3e8e3a31ef..738ce886c7 100644
--- a/lib/dns/include/dns/keyvalues.h
+++ b/lib/dns/include/dns/keyvalues.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keyvalues.h,v 1.8 2000/07/27 09:47:58 tale Exp $ */
+/* $Id: keyvalues.h,v 1.9 2000/08/01 01:24:15 tale Exp $ */
#ifndef DNS_KEYVALUES_H
#define DNS_KEYVALUES_H 1
diff --git a/lib/dns/include/dns/lib.h b/lib/dns/include/dns/lib.h
index a13af1b604..3784c098dd 100644
--- a/lib/dns/include/dns/lib.h
+++ b/lib/dns/include/dns/lib.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lib.h,v 1.4 2000/07/27 09:47:59 tale Exp $ */
+/* $Id: lib.h,v 1.5 2000/08/01 01:24:16 tale Exp $ */
#ifndef DNS_LIB_H
#define DNS_LIB_H 1
diff --git a/lib/dns/include/dns/log.h b/lib/dns/include/dns/log.h
index bc5cc7d58d..01987968d4 100644
--- a/lib/dns/include/dns/log.h
+++ b/lib/dns/include/dns/log.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.h,v 1.22 2000/07/27 09:48:00 tale Exp $ */
+/* $Id: log.h,v 1.23 2000/08/01 01:24:17 tale Exp $ */
/* Principal Authors: DCL */
diff --git a/lib/dns/include/dns/master.h b/lib/dns/include/dns/master.h
index 6c5678df43..59b241f4c1 100644
--- a/lib/dns/include/dns/master.h
+++ b/lib/dns/include/dns/master.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: master.h,v 1.21 2000/07/27 09:48:01 tale Exp $ */
+/* $Id: master.h,v 1.22 2000/08/01 01:24:19 tale Exp $ */
#ifndef DNS_MASTER_H
#define DNS_MASTER_H 1
@@ -72,7 +72,7 @@ dns_master_loadbuffer(isc_buffer_t *buffer,
*
* If 'age_ttl' is ISC_TRUE and the master file contains one or more
* $DATE directives, the TTLs of the data will be aged accordingly.
- *
+ *
* 'callbacks->commit' is assumed to call 'callbacks->error' or
* 'callbacks->warn' to generate any error messages required.
*
diff --git a/lib/dns/include/dns/masterdump.h b/lib/dns/include/dns/masterdump.h
index 97a5853d74..5fb740a197 100644
--- a/lib/dns/include/dns/masterdump.h
+++ b/lib/dns/include/dns/masterdump.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: masterdump.h,v 1.11 2000/07/27 09:48:02 tale Exp $ */
+/* $Id: masterdump.h,v 1.12 2000/08/01 01:24:20 tale Exp $ */
#ifndef DNS_MASTERDUMP_H
#define DNS_MASTERDUMP_H 1
@@ -37,7 +37,7 @@
/*
* Style options for masterfile dumps. This struct is currently
* opaque, so applications cannot define their own style but have
- * to choose a predefined style. A more flexible interface may
+ * to choose a predefined style. A more flexible interface may
* be exported in the future.
*/
@@ -50,7 +50,7 @@ ISC_LANG_BEGINDECLS
***/
/*
- * The default masterfile style.
+ * The default masterfile style.
*/
extern const dns_master_style_t dns_master_style_default;
@@ -64,14 +64,14 @@ dns_master_dumptostream(isc_mem_t *mctx, dns_db_t *db,
dns_dbversion_t *version,
const dns_master_style_t *style, FILE *f);
/*
- * Dump the database 'db' to the steam 'f' in RFC1035 master
+ * Dump the database 'db' to the steam 'f' in RFC1035 master
* file format, in the style defined by 'style'
* (e.g., &dns_default_master_style_default)
*
* Temporary dynamic memory may be allocated from 'mctx'.
*
* Returns:
- * ISC_R_SUCCESS
+ * ISC_R_SUCCESS
* ISC_R_NOMEMORY
* Any database or rrset iterator error.
* Any dns_rdata_totext() error code.
@@ -82,14 +82,14 @@ dns_master_dump(isc_mem_t *mctx, dns_db_t *db,
dns_dbversion_t *version,
const dns_master_style_t *style, const char *filename);
/*
- * Dump the database 'db' to the file 'filename' in RFC1035 master
+ * Dump the database 'db' to the file 'filename' in RFC1035 master
* file format, in the style defined by 'style'
* (e.g., &dns_default_master_style_default)
*
* Temporary dynamic memory may be allocated from 'mctx'.
*
* Returns:
- * ISC_R_SUCCESS
+ * ISC_R_SUCCESS
* ISC_R_NOMEMORY
* Any database or rrset iterator error.
* Any dns_rdata_totext() error code.
diff --git a/lib/dns/include/dns/message.h b/lib/dns/include/dns/message.h
index 6faf0302f8..9984a92655 100644
--- a/lib/dns/include/dns/message.h
+++ b/lib/dns/include/dns/message.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: message.h,v 1.74 2000/07/27 09:48:03 tale Exp $ */
+/* $Id: message.h,v 1.75 2000/08/01 01:24:21 tale Exp $ */
#ifndef DNS_MESSAGE_H
#define DNS_MESSAGE_H 1
@@ -221,7 +221,7 @@ ISC_LANG_BEGINDECLS
isc_result_t
dns_message_create(isc_mem_t *mctx, unsigned int intent, dns_message_t **msgp);
-
+
/*
* Create msg structure.
*
@@ -289,7 +289,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
dns_messagetextflag_t flags,
isc_buffer_t *target);
/*
- * Convert section 'section' or 'pseudosection' of message 'msg' to
+ * Convert section 'section' or 'pseudosection' of message 'msg' to
* a cleartext representation
*
* Notes:
@@ -317,7 +317,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
* ISC_R_NOSPACE
* ISC_R_NOMORE
*
- * Note: On error return, *target may be partially filled with data.
+ * Note: On error return, *target may be partially filled with data.
*/
isc_result_t
@@ -373,8 +373,8 @@ dns_message_parse(dns_message_t *msg, isc_buffer_t *source,
* and the order of the RRs in the message is preserved.
* Otherwise, only one dns_name_t object will be created for each unique
* owner name in the section, and each such dns_name_t will have a list
- * of rdatasets. To access the names and their data, use
- * dns_message_firstname() and dns_message_nextname().
+ * of rdatasets. To access the names and their data, use
+ * dns_message_firstname() and dns_message_nextname().
*
* OPT and TSIG records are always handled specially, regardless of the
* 'preserve_order' setting.
@@ -542,7 +542,7 @@ dns_message_renderend(dns_message_t *msg);
* Returns:
* ISC_R_SUCCESS -- all is well.
*/
-
+
void
dns_message_renderreset(dns_message_t *msg);
/*
@@ -564,7 +564,7 @@ dns_message_firstname(dns_message_t *msg, dns_section_t section);
* Set internal per-section name pointer to the beginning of the section.
*
* The functions dns_message_firstname() and dns_message_nextname() may
- * be used for iterating over the owner names in a section.
+ * be used for iterating over the owner names in a section.
*
* Requires:
*
@@ -877,7 +877,7 @@ dns_message_reply(dns_message_t *msg, isc_boolean_t want_question_section);
* Requires:
*
* 'msg' is a valid message with parsing intent, and contains a query.
- *
+ *
* Ensures:
*
* The message will have a rendering intent. If 'want_question_section'
diff --git a/lib/dns/include/dns/name.h b/lib/dns/include/dns/name.h
index 9f1336842b..2d22d5f48d 100644
--- a/lib/dns/include/dns/name.h
+++ b/lib/dns/include/dns/name.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: name.h,v 1.77 2000/07/31 23:09:47 tale Exp $ */
+/* $Id: name.h,v 1.78 2000/08/01 01:24:22 tale Exp $ */
#ifndef DNS_NAME_H
#define DNS_NAME_H 1
@@ -250,7 +250,7 @@ dns_name_reset(dns_name_t *name);
*
* + If any buffer is associated with 'name' (via dns_name_setbuffer()
* or by being part of a dns_fixedname_t) the link to the buffer
- * is retained but the buffer itself is cleared.
+ * is retained but the buffer itself is cleared.
*
* + Of the attributes associated with 'name', all are retained except
* DNS_NAMEATTR_ABSOLUTE.
@@ -603,7 +603,7 @@ dns_name_depth(const dns_name_t *name);
/***
*** Labels
***/
-
+
unsigned int
dns_name_countlabels(const dns_name_t *name);
/*
@@ -676,7 +676,7 @@ dns_name_clone(dns_name_t *source, dns_name_t *target);
*
* This call is functionally equivalent to:
*
- * dns_name_getlabelsequence(source, 0,
+ * dns_name_getlabelsequence(source, 0,
* dns_label_countlabels(source),
* target);
*
@@ -786,7 +786,7 @@ dns_name_towire(dns_name_t *name, dns_compress_t *cctx, isc_buffer_t *target);
/*
* Convert 'name' into wire format, compressing it as specified by the
* compression context 'cctx', and storing the result in 'target'.
- *
+ *
* Notes:
* If the compression context allows global compression, then the
* global compression table may be updated.
@@ -872,7 +872,7 @@ dns_name_totext(dns_name_t *name, isc_boolean_t omit_final_dot,
isc_buffer_t *target);
/*
* Convert 'name' into text format, storing the result in 'target'.
- *
+ *
* Notes:
* If 'omit_final_dot' is true, then the final '.' in absolute
* names other than the root name will be omitted.
@@ -1070,9 +1070,9 @@ dns_name_dup(dns_name_t *source, isc_mem_t *mctx, dns_name_t *target);
* Requires:
*
* 'source' is a valid non-empty name.
- *
+ *
* 'target' is a valid name that is not read-only.
- *
+ *
* 'mctx' is a valid memory context.
*/
@@ -1086,11 +1086,11 @@ dns_name_dupwithoffsets(dns_name_t *source, isc_mem_t *mctx,
* Requires:
*
* 'source' is a valid non-empty name.
- *
+ *
* 'target' is a valid name that is not read-only.
*
* 'target' has no offsets table.
- *
+ *
* 'mctx' is a valid memory context.
*/
@@ -1135,7 +1135,7 @@ dns_name_digest(dns_name_t *name, dns_digestfunc_t digest, void *arg);
* ISC_R_SUCCESS
*
* Many other results are possible if not successful.
- *
+ *
*/
isc_boolean_t
@@ -1179,7 +1179,7 @@ dns_name_format(dns_name_t *name, char *cp, unsigned int size);
* 'size' bytes. The resulting string is guaranteed to be
* null terminated.
*
- * The formatted name will have a terminating dot only if it is
+ * The formatted name will have a terminating dot only if it is
* the root.
*
* This function cannot fail, instead any errors are indicated
diff --git a/lib/dns/include/dns/namedconf.h b/lib/dns/include/dns/namedconf.h
index a4d9155342..7bce93b115 100644
--- a/lib/dns/include/dns/namedconf.h
+++ b/lib/dns/include/dns/namedconf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: namedconf.h,v 1.7 2000/07/27 09:48:05 tale Exp $ */
+/* $Id: namedconf.h,v 1.8 2000/08/01 01:24:23 tale Exp $ */
#ifndef DNS_NAMEDCONF_H
#define DNS_NAMEDCONF_H 1
diff --git a/lib/dns/include/dns/ncache.h b/lib/dns/include/dns/ncache.h
index ac7d291c2b..0a8cc5503a 100644
--- a/lib/dns/include/dns/ncache.h
+++ b/lib/dns/include/dns/ncache.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ncache.h,v 1.10 2000/07/27 09:48:07 tale Exp $ */
+/* $Id: ncache.h,v 1.11 2000/08/01 01:24:24 tale Exp $ */
#ifndef DNS_NCACHE_H
#define DNS_NCACHE_H 1
diff --git a/lib/dns/include/dns/nxt.h b/lib/dns/include/dns/nxt.h
index 067c3b6b14..43647cfaf6 100644
--- a/lib/dns/include/dns/nxt.h
+++ b/lib/dns/include/dns/nxt.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: nxt.h,v 1.9 2000/07/27 09:48:08 tale Exp $ */
+/* $Id: nxt.h,v 1.10 2000/08/01 01:24:25 tale Exp $ */
#ifndef DNS_NXT_H
#define DNS_NXT_H 1
diff --git a/lib/dns/include/dns/peer.h b/lib/dns/include/dns/peer.h
index 4da40f7a07..ced0e98480 100644
--- a/lib/dns/include/dns/peer.h
+++ b/lib/dns/include/dns/peer.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: peer.h,v 1.11 2000/07/27 09:48:09 tale Exp $ */
+/* $Id: peer.h,v 1.12 2000/08/01 01:24:26 tale Exp $ */
#ifndef DNS_PEER_H
#define DNS_PEER_H 1
@@ -51,7 +51,7 @@
struct dns_peerlist {
isc_uint32_t magic;
isc_uint32_t refs;
-
+
isc_mem_t *mem;
ISC_LIST(dns_peer_t) elements;
@@ -73,7 +73,7 @@ struct dns_peer {
dns_name_t *key;
isc_uint32_t bitflags;
-
+
ISC_LINK(dns_peer_t) next;
};
diff --git a/lib/dns/include/dns/rbt.h b/lib/dns/include/dns/rbt.h
index a2f46042e2..c7eec5f038 100644
--- a/lib/dns/include/dns/rbt.h
+++ b/lib/dns/include/dns/rbt.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbt.h,v 1.45 2000/07/31 23:27:25 tale Exp $ */
+/* $Id: rbt.h,v 1.46 2000/08/01 01:24:28 tale Exp $ */
#ifndef DNS_RBT_H
#define DNS_RBT_H 1
@@ -211,7 +211,7 @@ dns_rbt_create(isc_mem_t *mctx, void (*deleter)(void *, void *),
* responsible for cleaning up any memory associated with the data
* pointer of a node when the node is deleted. It is passed the
* deleted node's data pointer as its first argument and deleter_arg
- * as its second argument.
+ * as its second argument.
*
* Requires:
* mctx is a pointer to a valid memory context.
@@ -361,7 +361,7 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
*
* If the chain parameter is non-NULL, then the path through the tree
* to the DNSSEC predecessor of the searched for name is maintained,
- * unless the DNS_RBTFIND_NOPREDECESSOR or DNS_RBTFIND_NOEXACT option
+ * unless the DNS_RBTFIND_NOPREDECESSOR or DNS_RBTFIND_NOEXACT option
* is used. (For more details on those options, see below.)
*
* If there is no predecessor, then the chain will point to nowhere, as
@@ -408,7 +408,7 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
* will not point to the DNSSEC predecessor, but will instead point
* to the exact match, if there was any. Thus the preceding paragraphs
* should have "exact match" substituted for "predecessor" to describe
- * how the various elements of the chain are set. This was done to
+ * how the various elements of the chain are set. This was done to
* ensure that the chain's state was sane, and to prevent problems that
* occurred when running the predecessor location code under conditions
* it was not designed for. It is not clear *where* the chain should
@@ -592,7 +592,7 @@ dns_rbt_printall(dns_rbt_t *rbt);
*
* Notes:
* The name stored at each node, along with the node's color, is printed.
- * Then the down pointer, left and right pointers are displayed
+ * Then the down pointer, left and right pointers are displayed
* recursively in turn. NULL down pointers are silently omitted;
* NULL left and right pointers are printed.
*/
@@ -677,7 +677,7 @@ dns_rbtnodechain_current(dns_rbtnodechain_t *chain, dns_name_t *name,
* 'origin', if non-NULL, is the sequence of labels in the levels
* above the terminal level, such as "isc.org." in the above example.
* 'origin' is always "." for the root node.
- *
+ *
*
* Returns:
* ISC_R_SUCCESS name, origin & node were successfully set.
diff --git a/lib/dns/include/dns/rcode.h b/lib/dns/include/dns/rcode.h
index 6e8ad1077f..b0a301d2c3 100644
--- a/lib/dns/include/dns/rcode.h
+++ b/lib/dns/include/dns/rcode.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rcode.h,v 1.10 2000/07/27 09:48:11 tale Exp $ */
+/* $Id: rcode.h,v 1.11 2000/08/01 01:24:29 tale Exp $ */
#ifndef DNS_RCODE_H
#define DNS_RCODE_H 1
diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h
index 1a191b6c57..9b05c0e220 100644
--- a/lib/dns/include/dns/rdata.h
+++ b/lib/dns/include/dns/rdata.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdata.h,v 1.39 2000/07/27 09:48:12 tale Exp $ */
+/* $Id: rdata.h,v 1.40 2000/08/01 01:24:30 tale Exp $ */
#ifndef DNS_RDATA_H
#define DNS_RDATA_H 1
@@ -244,7 +244,7 @@ dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx,
/*
* Convert 'rdata' into wire format, compressing it as specified by the
* compression context 'cctx', and storing the result in 'target'.
- *
+ *
* Notes:
* If the compression context allows global compression, then the
* global compression table may be updated.
@@ -348,7 +348,7 @@ isc_result_t
dns_rdata_tofmttext(dns_rdata_t *rdata, dns_name_t *origin, unsigned int flags,
unsigned int width, char *linebreak, isc_buffer_t *target);
/*
- * Like dns_rdata_totext, but do formatted output suitable for
+ * Like dns_rdata_totext, but do formatted output suitable for
* database dumps. This is intended for use by dns_db_dump();
* library users are discouraged from calling it directly.
*
@@ -358,16 +358,16 @@ dns_rdata_tofmttext(dns_rdata_t *rdata, dns_name_t *origin, unsigned int flags,
* are added when necessary. Because RRs contain unbreakable elements
* such as domain names whose length is variable, unpredictable, and
* potentially large, there is no guarantee that the lines will
- * not exceed 'width' anyway.
+ * not exceed 'width' anyway.
*
* If (flags & DNS_STYLEFLAG_MULTILINE) == 0, the rdata is always
* printed as a single line, and no parentheses are used.
* The 'width' and 'linebreak' arguments are ignored.
*
* If (flags & DNS_STYLEFLAG_COMMENT) != 0, output explanatory
- * comments next to things like the SOA timer fields. Some
+ * comments next to things like the SOA timer fields. Some
* comments (e.g., the SOA ones) are only printed when multiline
- * output is selected.
+ * output is selected.
*/
isc_result_t
@@ -406,7 +406,7 @@ isc_result_t
dns_rdata_tostruct(dns_rdata_t *rdata, void *target, isc_mem_t *mctx);
/*
* Convert an rdata into its C structure representation.
- *
+ *
* If 'mctx' is NULL then 'rdata' must persist while 'target' is being used.
*
* If 'mctx' is non NULL then memory will be allocated if required.
diff --git a/lib/dns/include/dns/rdataclass.h b/lib/dns/include/dns/rdataclass.h
index e9453a4588..04e0a99649 100644
--- a/lib/dns/include/dns/rdataclass.h
+++ b/lib/dns/include/dns/rdataclass.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataclass.h,v 1.13 2000/07/27 09:48:14 tale Exp $ */
+/* $Id: rdataclass.h,v 1.14 2000/08/01 01:24:31 tale Exp $ */
#ifndef DNS_RDATACLASS_H
#define DNS_RDATACLASS_H 1
diff --git a/lib/dns/include/dns/rdatalist.h b/lib/dns/include/dns/rdatalist.h
index e367b8e42e..a9865a4aba 100644
--- a/lib/dns/include/dns/rdatalist.h
+++ b/lib/dns/include/dns/rdatalist.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatalist.h,v 1.11 2000/07/27 09:48:15 tale Exp $ */
+/* $Id: rdatalist.h,v 1.12 2000/08/01 01:24:32 tale Exp $ */
#ifndef DNS_RDATALIST_H
#define DNS_RDATALIST_H 1
diff --git a/lib/dns/include/dns/rdataset.h b/lib/dns/include/dns/rdataset.h
index 64ef5c3287..10ba9d1ac7 100644
--- a/lib/dns/include/dns/rdataset.h
+++ b/lib/dns/include/dns/rdataset.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataset.h,v 1.34 2000/07/27 09:48:16 tale Exp $ */
+/* $Id: rdataset.h,v 1.35 2000/08/01 01:24:33 tale Exp $ */
#ifndef DNS_RDATASET_H
#define DNS_RDATASET_H 1
@@ -223,7 +223,7 @@ dns_rdataset_count(dns_rdataset_t *rdataset);
* 'rdataset' is a valid, associated rdataset.
*
* Returns:
- * The number of records in 'rdataset'.
+ * The number of records in 'rdataset'.
*/
isc_result_t
diff --git a/lib/dns/include/dns/rdatasetiter.h b/lib/dns/include/dns/rdatasetiter.h
index 3aad61c93e..f85b7d4b9d 100644
--- a/lib/dns/include/dns/rdatasetiter.h
+++ b/lib/dns/include/dns/rdatasetiter.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatasetiter.h,v 1.11 2000/07/27 09:48:17 tale Exp $ */
+/* $Id: rdatasetiter.h,v 1.12 2000/08/01 01:24:34 tale Exp $ */
#ifndef DNS_RDATASETITER_H
#define DNS_RDATASETITER_H 1
@@ -34,7 +34,7 @@
* it, an implementation of the class is required. This implementation is
* supplied by the database.
*
- * It is the client's responsibility to call dns_rdataset_disassociate()
+ * It is the client's responsibility to call dns_rdataset_disassociate()
* on all rdatasets returned.
*
* XXX XXX
@@ -42,7 +42,7 @@
* MP:
* The iterator itself is not locked. The caller must ensure
* synchronization.
- *
+ *
* The iterator methods ensure appropriate database locking.
*
* Reliability:
diff --git a/lib/dns/include/dns/rdataslab.h b/lib/dns/include/dns/rdataslab.h
index e34e62637b..2b061e448f 100644
--- a/lib/dns/include/dns/rdataslab.h
+++ b/lib/dns/include/dns/rdataslab.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataslab.h,v 1.13 2000/07/27 09:48:18 tale Exp $ */
+/* $Id: rdataslab.h,v 1.14 2000/08/01 01:24:36 tale Exp $ */
#ifndef DNS_RDATASLAB_H
#define DNS_RDATASLAB_H 1
diff --git a/lib/dns/include/dns/rdatatype.h b/lib/dns/include/dns/rdatatype.h
index 00373cfc46..a3d0d0e280 100644
--- a/lib/dns/include/dns/rdatatype.h
+++ b/lib/dns/include/dns/rdatatype.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatatype.h,v 1.12 2000/07/27 09:48:19 tale Exp $ */
+/* $Id: rdatatype.h,v 1.13 2000/08/01 01:24:37 tale Exp $ */
#ifndef DNS_RDATATYPE_H
#define DNS_RDATATYPE_H 1
diff --git a/lib/dns/include/dns/request.h b/lib/dns/include/dns/request.h
index 1e4220b746..885abe5b15 100644
--- a/lib/dns/include/dns/request.h
+++ b/lib/dns/include/dns/request.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: request.h,v 1.12 2000/07/27 09:48:20 tale Exp $ */
+/* $Id: request.h,v 1.13 2000/08/01 01:24:38 tale Exp $ */
#ifndef DNS_REQUEST_H
#define DNS_REQUEST_H 1
diff --git a/lib/dns/include/dns/resolver.h b/lib/dns/include/dns/resolver.h
index 1dbc8bc35f..6a024b1fe9 100644
--- a/lib/dns/include/dns/resolver.h
+++ b/lib/dns/include/dns/resolver.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resolver.h,v 1.30 2000/07/27 09:48:21 tale Exp $ */
+/* $Id: resolver.h,v 1.31 2000/08/01 01:24:39 tale Exp $ */
#ifndef DNS_RESOLVER_H
#define DNS_RESOLVER_H 1
@@ -265,7 +265,7 @@ dns_resolver_createfetch(dns_resolver_t *res, dns_name_t *name,
unsigned int options, isc_task_t *task,
isc_taskaction_t action, void *arg,
dns_rdataset_t *rdataset,
- dns_rdataset_t *sigrdataset,
+ dns_rdataset_t *sigrdataset,
dns_fetch_t **fetchp);
/*
* Recurse to answer a question.
@@ -276,13 +276,13 @@ dns_resolver_createfetch(dns_resolver_t *res, dns_name_t *name,
*
* The 'domain' is a parent domain of 'name' for which
* a set of name servers 'nameservers' is known. If no
- * such name server information is available, set
+ * such name server information is available, set
* 'domain' and 'nameservers' to NULL.
*
* 'forwarders' is unimplemented, and subject to change when
* we figure out how selective forwarding will work.
*
- * When the fetch completes (successfully or otherwise), a
+ * When the fetch completes (successfully or otherwise), a
* DNS_EVENT_FETCHDONE event with action 'action' and arg 'arg' will be
* posted to 'task'.
*
diff --git a/lib/dns/include/dns/result.h b/lib/dns/include/dns/result.h
index ca2ae877df..e9da0a2587 100644
--- a/lib/dns/include/dns/result.h
+++ b/lib/dns/include/dns/result.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.h,v 1.63 2000/07/27 09:48:22 tale Exp $ */
+/* $Id: result.h,v 1.64 2000/08/01 01:24:40 tale Exp $ */
#ifndef DNS_RESULT_H
#define DNS_RESULT_H 1
diff --git a/lib/dns/include/dns/rootns.h b/lib/dns/include/dns/rootns.h
index 74e50f1709..af872edb34 100644
--- a/lib/dns/include/dns/rootns.h
+++ b/lib/dns/include/dns/rootns.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rootns.h,v 1.6 2000/07/27 09:48:23 tale Exp $ */
+/* $Id: rootns.h,v 1.7 2000/08/01 01:24:41 tale Exp $ */
#ifndef DNS_ROOTNS_H
#define DNS_ROOTNS_H 1
diff --git a/lib/dns/include/dns/secalg.h b/lib/dns/include/dns/secalg.h
index de7e408d51..fe34f4e401 100644
--- a/lib/dns/include/dns/secalg.h
+++ b/lib/dns/include/dns/secalg.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: secalg.h,v 1.10 2000/07/27 09:48:24 tale Exp $ */
+/* $Id: secalg.h,v 1.11 2000/08/01 01:24:42 tale Exp $ */
#ifndef DNS_SECALG_H
#define DNS_SECALG_H 1
diff --git a/lib/dns/include/dns/secproto.h b/lib/dns/include/dns/secproto.h
index e664bcaa60..e7e8cd5887 100644
--- a/lib/dns/include/dns/secproto.h
+++ b/lib/dns/include/dns/secproto.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: secproto.h,v 1.7 2000/07/27 09:48:26 tale Exp $ */
+/* $Id: secproto.h,v 1.8 2000/08/01 01:24:43 tale Exp $ */
#ifndef DNS_SECPROTO_H
#define DNS_SECPROTO_H 1
diff --git a/lib/dns/include/dns/ssu.h b/lib/dns/include/dns/ssu.h
index 9de4d1b282..f35a253267 100644
--- a/lib/dns/include/dns/ssu.h
+++ b/lib/dns/include/dns/ssu.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ssu.h,v 1.9 2000/07/27 09:48:27 tale Exp $ */
+/* $Id: ssu.h,v 1.10 2000/08/01 01:24:44 tale Exp $ */
#ifndef DNS_SSU_H
#define DNS_SSU_H 1
diff --git a/lib/dns/include/dns/tcpmsg.h b/lib/dns/include/dns/tcpmsg.h
index 1086ad26e3..67fcd45b02 100644
--- a/lib/dns/include/dns/tcpmsg.h
+++ b/lib/dns/include/dns/tcpmsg.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tcpmsg.h,v 1.13 2000/07/27 09:48:28 tale Exp $ */
+/* $Id: tcpmsg.h,v 1.14 2000/08/01 01:24:45 tale Exp $ */
#ifndef DNS_TCPMSG_H
#define DNS_TCPMSG_H 1
diff --git a/lib/dns/include/dns/time.h b/lib/dns/include/dns/time.h
index c8c040b2a7..c315a8f4fa 100644
--- a/lib/dns/include/dns/time.h
+++ b/lib/dns/include/dns/time.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.h,v 1.7 2000/07/27 09:48:29 tale Exp $ */
+/* $Id: time.h,v 1.8 2000/08/01 01:24:46 tale Exp $ */
#ifndef DNS_TIME_H
#define DNS_TIME_H 1
@@ -37,9 +37,9 @@ isc_result_t
dns_time64_fromtext(char *source, isc_int64_t *target);
/*
* Convert a date and time in YYYYMMDDHHMMSS text format at 'source'
- * into to a 64-bit count of seconds since Jan 1 1970 0:00 GMT.
+ * into to a 64-bit count of seconds since Jan 1 1970 0:00 GMT.
* Store the count at 'target'.
- */
+ */
isc_result_t
dns_time32_fromtext(char *source, isc_uint32_t *target);
@@ -47,12 +47,12 @@ dns_time32_fromtext(char *source, isc_uint32_t *target);
* Like dns_time64_fromtext, but returns the second count modulo 2^32
* as per RFC2535.
*/
-
+
isc_result_t
dns_time64_totext(isc_int64_t value, isc_buffer_t *target);
/*
- * Convert a 64-bit count of seconds since Jan 1 1970 0:00 GMT into
+ * Convert a 64-bit count of seconds since Jan 1 1970 0:00 GMT into
* a YYYYMMDDHHMMSS text representation and append it to 'target'.
*/
@@ -63,7 +63,7 @@ dns_time32_totext(isc_uint32_t value, isc_buffer_t *target);
* Of those dates whose counts of seconds since Jan 1 1970 0:00 GMT
* are congruent with 'value' modulo 2^32, the one closest to the
* current date is chosen.
- */
+ */
ISC_LANG_ENDDECLS
diff --git a/lib/dns/include/dns/tkey.h b/lib/dns/include/dns/tkey.h
index 1e1acfa641..1916822faa 100644
--- a/lib/dns/include/dns/tkey.h
+++ b/lib/dns/include/dns/tkey.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tkey.h,v 1.14 2000/07/27 09:48:30 tale Exp $ */
+/* $Id: tkey.h,v 1.15 2000/08/01 01:24:47 tale Exp $ */
#ifndef DNS_TKEY_H
#define DNS_TKEY_H 1
diff --git a/lib/dns/include/dns/tkeyconf.h b/lib/dns/include/dns/tkeyconf.h
index bd4beac695..257a7becc5 100644
--- a/lib/dns/include/dns/tkeyconf.h
+++ b/lib/dns/include/dns/tkeyconf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tkeyconf.h,v 1.5 2000/07/27 09:48:31 tale Exp $ */
+/* $Id: tkeyconf.h,v 1.6 2000/08/01 01:24:49 tale Exp $ */
#ifndef DNS_TKEYCONF_H
#define DNS_TKEYCONF_H 1
@@ -45,7 +45,7 @@ dns_tkeyctx_fromconfig(dns_c_ctx_t *cfg, isc_mem_t *mctx, isc_entropy_t *ectx,
* ISC_R_SUCCESS
* ISC_R_NOMEMORY
*/
-
+
ISC_LANG_ENDDECLS
#endif /* DNS_TKEYCONF_H */
diff --git a/lib/dns/include/dns/tsig.h b/lib/dns/include/dns/tsig.h
index 0031163d1f..3344d27362 100644
--- a/lib/dns/include/dns/tsig.h
+++ b/lib/dns/include/dns/tsig.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tsig.h,v 1.30 2000/07/28 23:27:01 bwelling Exp $ */
+/* $Id: tsig.h,v 1.31 2000/08/01 01:24:50 tale Exp $ */
#ifndef DNS_TSIG_H
#define DNS_TSIG_H 1
@@ -45,7 +45,7 @@ struct dns_tsig_keyring {
dns_rbt_t *keys;
isc_rwlock_t lock;
isc_mem_t *mctx;
-};
+};
struct dns_tsigkey {
/* Unlocked */
diff --git a/lib/dns/include/dns/tsigconf.h b/lib/dns/include/dns/tsigconf.h
index 97bf2ecca3..f9689a524b 100644
--- a/lib/dns/include/dns/tsigconf.h
+++ b/lib/dns/include/dns/tsigconf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tsigconf.h,v 1.5 2000/07/27 09:48:33 tale Exp $ */
+/* $Id: tsigconf.h,v 1.6 2000/08/01 01:24:51 tale Exp $ */
#ifndef DNS_TSIGCONF_H
#define DNS_TSIGCONF_H 1
@@ -43,7 +43,7 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
* ISC_R_SUCCESS
* ISC_R_NOMEMORY
*/
-
+
ISC_LANG_ENDDECLS
#endif /* DNS_TSIGCONF_H */
diff --git a/lib/dns/include/dns/ttl.h b/lib/dns/include/dns/ttl.h
index 5c2ab7b519..0937b5fe2c 100644
--- a/lib/dns/include/dns/ttl.h
+++ b/lib/dns/include/dns/ttl.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ttl.h,v 1.10 2000/07/27 09:48:34 tale Exp $ */
+/* $Id: ttl.h,v 1.11 2000/08/01 01:24:52 tale Exp $ */
#ifndef DNS_TTL_H
#define DNS_TTL_H 1
@@ -43,7 +43,7 @@ dns_ttl_totext(isc_uint32_t src, isc_boolean_t verbose,
*
* If 'verbose' is ISC_FALSE, use the terse BIND 8 style, like "1w2d3h4m5s".
*
- * If 'verbose' is ISC_TRUE, use a verbose style like the SOA comments
+ * If 'verbose' is ISC_TRUE, use a verbose style like the SOA comments
* in "dig", like "1 week 2 days 3 hours 4 minutes 5 seconds".
*
* Returns:
diff --git a/lib/dns/include/dns/types.h b/lib/dns/include/dns/types.h
index 4942b2bb14..bd373b7452 100644
--- a/lib/dns/include/dns/types.h
+++ b/lib/dns/include/dns/types.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: types.h,v 1.90 2000/07/27 09:48:35 tale Exp $ */
+/* $Id: types.h,v 1.91 2000/08/01 01:24:53 tale Exp $ */
#ifndef DNS_TYPES_H
#define DNS_TYPES_H 1
diff --git a/lib/dns/include/dns/validator.h b/lib/dns/include/dns/validator.h
index 50215e8573..eab27df709 100644
--- a/lib/dns/include/dns/validator.h
+++ b/lib/dns/include/dns/validator.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: validator.h,v 1.11 2000/07/27 09:48:37 tale Exp $ */
+/* $Id: validator.h,v 1.12 2000/08/01 01:24:54 tale Exp $ */
#ifndef DNS_VALIDATOR_H
#define DNS_VALIDATOR_H 1
@@ -92,13 +92,13 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
*
* The complete response message may be given in 'message',
* to make available any authority section NXTs that may be
- * needed for validation of a response resulting from a
- * wildcard expansion (though no such wildcard validation
+ * needed for validation of a response resulting from a
+ * wildcard expansion (though no such wildcard validation
* is implemented yet). If the complete response message
* is not available, 'message' is NULL.
*
* To validate a negative response, the complete negative response
- * message is given in 'message'. The 'rdataset', and
+ * message is given in 'message'. The 'rdataset', and
* 'sigrdataset' arguments must be NULL, but the 'name' and 'type'
* arguments must be provided.
*
@@ -118,7 +118,7 @@ dns_validator_cancel(dns_validator_t *validator);
* Cancel a DNSSEC validation in progress.
*
* Requires:
- * 'validator' points to a valid DNSSEC validator, which
+ * 'validator' points to a valid DNSSEC validator, which
* may or may not already have completed.
*
* Ensures:
diff --git a/lib/dns/include/dns/view.h b/lib/dns/include/dns/view.h
index 01bfd76cb6..750cfba1ba 100644
--- a/lib/dns/include/dns/view.h
+++ b/lib/dns/include/dns/view.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: view.h,v 1.46 2000/07/31 21:07:07 explorer Exp $ */
+/* $Id: view.h,v 1.47 2000/08/01 01:24:55 tale Exp $ */
#ifndef DNS_VIEW_H
#define DNS_VIEW_H 1
@@ -116,7 +116,7 @@ struct dns_view {
* locked by server configuration lock.
*/
dns_acl_t * matchclients;
-
+
/* Locked by lock. */
unsigned int references;
unsigned int weakrefs;
@@ -390,7 +390,7 @@ dns_view_find(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
* 'type' is a valid dns_rdatatype_t, and is not a meta query type
* (e.g. dns_rdatatype_any), or dns_rdatatype_sig.
*
- * 'foundname' is
+ * 'foundname' is
*
* 'rdataset' is a valid, disassociated rdataset.
*
@@ -488,7 +488,7 @@ dns_view_findzonecut(dns_view_t *view, dns_name_t *name, dns_name_t *fname,
* covers 'type', then 'sigrdataset' will be bound to it.
*
* If the DNS_DBFIND_NOEXACT option is set, then the zonecut returned
- * (if any) will be the deepest known ancestor of 'name'.
+ * (if any) will be the deepest known ancestor of 'name'.
*
* Requires:
*
@@ -525,7 +525,7 @@ dns_view_load(dns_view_t *view, isc_boolean_t stop);
/*
* Load all zones attached to this view. If 'stop' is ISC_TRUE,
* stop on the first error and return it. If 'stop'
- * is ISC_FALSE, ignore errors.
+ * is ISC_FALSE, ignore errors.
*
* Requires:
*
diff --git a/lib/dns/include/dns/xfrin.h b/lib/dns/include/dns/xfrin.h
index 64c9f7d7fa..c6fe8baa6f 100644
--- a/lib/dns/include/dns/xfrin.h
+++ b/lib/dns/include/dns/xfrin.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: xfrin.h,v 1.15 2000/07/27 09:48:39 tale Exp $ */
+/* $Id: xfrin.h,v 1.16 2000/08/01 01:24:56 tale Exp $ */
#ifndef DNS_XFRIN_H
#define DNS_XFRIN_H 1
@@ -59,7 +59,7 @@ dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
dns_xfrindone_t done, dns_xfrin_ctx_t **xfrp);
/*
* Attempt to start an incoming zone transfer of 'zone'
- * from 'masteraddr', creating a dns_xfrin_ctx_t object to
+ * from 'masteraddr', creating a dns_xfrin_ctx_t object to
* manage it. Attach '*xfrp' to the newly created object.
*
* Iff ISC_R_SUCCESS is returned, '*done' is guaranteed to be
@@ -84,9 +84,9 @@ dns_xfrin_shutdown(dns_xfrin_ctx_t *xfr);
void
dns_xfrin_detach(dns_xfrin_ctx_t **xfrp);
/*
- * Detach a reference to a zone transfer object.
+ * Detach a reference to a zone transfer object.
*
- * (Because there is no attach() method, there can currently
+ * (Because there is no attach() method, there can currently
* only be one reference).
*/
diff --git a/lib/dns/include/dns/zone.h b/lib/dns/include/dns/zone.h
index b32bb8f058..87d71c54d2 100644
--- a/lib/dns/include/dns/zone.h
+++ b/lib/dns/include/dns/zone.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.h,v 1.63 2000/07/27 09:48:40 tale Exp $ */
+/* $Id: zone.h,v 1.64 2000/08/01 01:24:58 tale Exp $ */
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
@@ -79,7 +79,7 @@ dns_zone_setclass(dns_zone_t *zone, dns_rdataclass_t rdclass);
* dns_zone_setclass() not to have been called since the zone was
* created.
* 'rdclass' != dns_rdataclass_none.
- */
+ */
dns_rdataclass_t
dns_zone_getclass(dns_zone_t *zone);
@@ -110,7 +110,7 @@ dns_zone_setview(dns_zone_t *zone, dns_view_t *view);
*
* Require:
* 'zone' to be a valid zone.
- */
+ */
dns_view_t *
dns_zone_getview(dns_zone_t *zone);
@@ -147,7 +147,7 @@ dns_zone_getorigin(dns_zone_t *zone);
isc_result_t
dns_zone_setdatabase(dns_zone_t *zone, const char *database);
/*
- * Sets the name of the database to be loaded.
+ * Sets the name of the database to be loaded.
* For databases loaded from MASTER files this corresponds to the
* file name of the MASTER file.
*
@@ -202,7 +202,7 @@ dns_zone_detach(dns_zone_t **zonep);
void
dns_zone_iattach(dns_zone_t *source, dns_zone_t **target);
/*
- * Attach '*target' to 'source' incrementing its internal
+ * Attach '*target' to 'source' incrementing its internal
* reference count. This is intended for use by operations
* such as zone transfers that need to prevent the zone
* object from being freed but not from shutting down.
@@ -212,7 +212,7 @@ dns_zone_iattach(dns_zone_t *source, dns_zone_t **target);
* 'zone' to be a valid zone.
* 'target' to be non NULL and '*target' to be NULL.
*/
-
+
void
dns_zone_idetach(dns_zone_t **zonep);
/*
@@ -221,7 +221,7 @@ dns_zone_idetach(dns_zone_t **zonep);
* zone, it will be freed.
*
* Require:
- * The caller is running in the context of the zone's task.
+ * The caller is running in the context of the zone's task.
* 'zonep' to point to a valid zone.
*/
@@ -278,7 +278,7 @@ isc_result_t
dns_zone_setdbtype(dns_zone_t *zone, const char *db_type);
/*
* Sets the database type. Current database types are: "rbt", "rbt64".
- * 'db_type' is not checked to see if it is a valid database type.
+ * 'db_type' is not checked to see if it is a valid database type.
*
* Require:
* 'zone' to be a valid zone.
@@ -289,7 +289,7 @@ dns_zone_setdbtype(dns_zone_t *zone, const char *db_type);
* ISC_R_SUCCESS
*/
-void
+void
dns_zone_markdirty(dns_zone_t *zone);
/*
* Mark a zone as 'dirty'.
@@ -705,7 +705,7 @@ dns_zone_setjournal(dns_zone_t *zone, const char *journal);
*
* Returns:
* ISC_R_SUCCESS
- * ISC_R_NOMEMORY
+ * ISC_R_NOMEMORY
*/
char *
@@ -882,7 +882,7 @@ dns_zone_getmgr(dns_zone_t *zone);
* Requires:
* 'zone' to be a valid zone.
*/
-
+
void
dns_zone_setsigvalidityinterval(dns_zone_t *zone, isc_uint32_t interval);
/*
@@ -959,7 +959,7 @@ dns_zonemgr_attach(dns_zonemgr_t *source, dns_zonemgr_t **target);
* 'zone' to be a valid zone.
* 'target' to be non NULL and '*target' to be NULL.
*/
-
+
void
dns_zonemgr_detach(dns_zonemgr_t **zmgrp);
/*
diff --git a/lib/dns/include/dns/zoneconf.h b/lib/dns/include/dns/zoneconf.h
index 4cb86be221..5326b3c9b9 100644
--- a/lib/dns/include/dns/zoneconf.h
+++ b/lib/dns/include/dns/zoneconf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zoneconf.h,v 1.12 2000/07/27 09:48:41 tale Exp $ */
+/* $Id: zoneconf.h,v 1.13 2000/08/01 01:24:59 tale Exp $ */
#ifndef DNS_ZONECONF_H
#define DNS_ZONECONF_H 1
diff --git a/lib/dns/include/dns/zt.h b/lib/dns/include/dns/zt.h
index 4dfdfa4a1d..3b9d8cb291 100644
--- a/lib/dns/include/dns/zt.h
+++ b/lib/dns/include/dns/zt.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zt.h,v 1.20 2000/07/27 09:48:42 tale Exp $ */
+/* $Id: zt.h,v 1.21 2000/08/01 01:25:00 tale Exp $ */
#ifndef DNS_ZT_H
#define DNS_ZT_H 1
diff --git a/lib/dns/journal.c b/lib/dns/journal.c
index 8db3bde1a3..58a92a6694 100644
--- a/lib/dns/journal.c
+++ b/lib/dns/journal.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: journal.c,v 1.56 2000/07/27 09:46:08 tale Exp $ */
+/* $Id: journal.c,v 1.57 2000/08/01 01:22:25 tale Exp $ */
#include
@@ -80,7 +80,7 @@ decode_uint32(unsigned char *p) {
(p[3] << 0));
}
-static inline void
+static inline void
encode_uint32(isc_uint32_t val, unsigned char *p) {
p[0] = (isc_uint8_t)(val >> 24);
p[1] = (isc_uint8_t)(val >> 16);
@@ -103,7 +103,7 @@ dns_soa_getserial(dns_rdata_t *rdata) {
* (it starts 20 bytes from the end). This is a bit of
* a kludge, but the alternative approach of using
* dns_rdata_tostruct() and dns_rdata_fromstruct()
- * would involve a lot of unnecessary work (like
+ * would involve a lot of unnecessary work (like
* building domain names and allocating temporary memory)
* when all we really want to do is to change 32 bits of
* fixed-sized data. Besides, fromstruct_soa() is not
@@ -129,20 +129,20 @@ dns_db_createsoatuple(dns_db_t *db, dns_dbversion_t *ver, isc_mem_t *mctx,
dns_rdataset_t rdataset;
dns_rdata_t rdata;
dns_name_t *zonename;
-
+
zonename = dns_db_origin(db);
-
+
node = NULL;
result = dns_db_findnode(db, zonename, ISC_FALSE, &node);
if (result != ISC_R_SUCCESS)
goto nonode;
-
+
dns_rdataset_init(&rdataset);
result = dns_db_findrdataset(db, node, ver, dns_rdatatype_soa, 0,
(isc_stdtime_t)0, &rdataset, NULL);
if (result != ISC_R_SUCCESS)
goto freenode;
-
+
result = dns_rdataset_first(&rdataset);
if (result != ISC_R_SUCCESS)
goto freenode;
@@ -178,7 +178,7 @@ dns_difftuple_create(isc_mem_t *mctx,
unsigned char *datap;
REQUIRE(tp != NULL && *tp == NULL);
-
+
/*
* Create a new tuple. The variable-size wire-format name data and
* rdata immediately follow the dns_difftuple_t structure
@@ -192,13 +192,13 @@ dns_difftuple_create(isc_mem_t *mctx,
t->op = op;
datap = (unsigned char *)(t + 1);
-
+
memcpy(datap, name->ndata, name->length);
dns_name_init(&t->name, NULL);
dns_name_clone(name, &t->name);
t->name.ndata = datap;
datap += name->length;
-
+
t->ttl = ttl;
memcpy(datap, rdata->data, rdata->length);
@@ -207,7 +207,7 @@ dns_difftuple_create(isc_mem_t *mctx,
t->rdata.rdclass = rdata->rdclass;
t->rdata.type = rdata->type;
datap += rdata->length;
-
+
ISC_LINK_INIT(&t->rdata, link);
t->magic = DNS_DIFFTUPLE_MAGIC;
@@ -276,9 +276,9 @@ dns_diff_appendminimal(dns_diff_t *diff, dns_difftuple_t **tuplep)
* that we never delete nonexistent data or add existing
* data).
*
- * If we find an old update of the same kind as
+ * If we find an old update of the same kind as
* the one we are doing, there must be a programming
- * error. We report it but try to continue anyway.
+ * error. We report it but try to continue anyway.
*/
for (ot = ISC_LIST_HEAD(diff->tuples); ot != NULL;
ot = next_ot)
@@ -288,7 +288,7 @@ dns_diff_appendminimal(dns_diff_t *diff, dns_difftuple_t **tuplep)
dns_rdata_compare(&ot->rdata, &(*tuplep)->rdata) == 0 &&
ot->ttl == (*tuplep)->ttl)
{
- ISC_LIST_UNLINK(diff->tuples, ot, link);
+ ISC_LIST_UNLINK(diff->tuples, ot, link);
if ((*tuplep)->op == ot->op) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"unexpected non-minimal diff");
@@ -308,16 +308,16 @@ dns_diff_appendminimal(dns_diff_t *diff, dns_difftuple_t **tuplep)
ENSURE(*tuplep == NULL);
}
-isc_result_t
+isc_result_t
dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver)
{
dns_difftuple_t *t;
dns_dbnode_t *node = NULL;
isc_result_t result;
-
+
REQUIRE(DNS_DIFF_VALID(diff));
REQUIRE(DNS_DB_VALID(db));
-
+
t = ISC_LIST_HEAD(diff->tuples);
while (t != NULL) {
dns_name_t *name;
@@ -326,10 +326,10 @@ dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver)
name = &t->name;
/*
* Find the node.
- * We create the node if it does not exist.
- * This will cause an empty node to be created if the diff
+ * We create the node if it does not exist.
+ * This will cause an empty node to be created if the diff
* contains a deletion of an RR at a nonexistent name,
- * but such diffs should never be created in the first
+ * but such diffs should never be created in the first
* place.
*/
node = NULL;
@@ -343,10 +343,10 @@ dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver)
op = t->op;
type = t->rdata.type;
- covers = rdata_covers(&t->rdata);
+ covers = rdata_covers(&t->rdata);
/*
- * Collect a contiguous set of updates with
+ * Collect a contiguous set of updates with
* the same operation (add/delete) and RR type
* into a single rdatalist so that the
* database rrset merging/subtraction code
@@ -438,8 +438,8 @@ dns_diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver)
}
/* XXX this duplicates lots of code in dns_diff_apply(). */
-
-isc_result_t
+
+isc_result_t
dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
void *add_private)
{
@@ -447,7 +447,7 @@ dns_diff_load(dns_diff_t *diff, dns_addrdatasetfunc_t addfunc,
isc_result_t result;
REQUIRE(DNS_DIFF_VALID(diff));
-
+
t = ISC_LIST_HEAD(diff->tuples);
while (t != NULL) {
dns_name_t *name;
@@ -517,7 +517,7 @@ dns_diff_sort(dns_diff_t *diff, dns_diff_compare_func *compare) {
dns_difftuple_t **v;
dns_difftuple_t *p;
REQUIRE(DNS_DIFF_VALID(diff));
-
+
for (p = ISC_LIST_HEAD(diff->tuples);
p != NULL;
p = ISC_LIST_NEXT(p, link))
@@ -556,7 +556,7 @@ diff_tuple_tordataset(dns_difftuple_t *t, dns_rdatalist_t *rdl,
REQUIRE(DNS_DIFFTUPLE_VALID(t));
REQUIRE(rdl != NULL);
REQUIRE(rds != NULL);
-
+
rdl->type = t->rdata.type;
rdl->rdclass = t->rdata.rdclass;
rdl->ttl = t->ttl;
@@ -587,7 +587,7 @@ dns_diff_print(dns_diff_t *diff, FILE *file) {
isc_region_t r;
dns_rdatalist_t rdl;
- dns_rdataset_t rds;
+ dns_rdataset_t rds;
result = diff_tuple_tordataset(t, &rdl, &rds);
if (result != ISC_R_SUCCESS) {
@@ -633,7 +633,7 @@ dns_diff_print(dns_diff_t *diff, FILE *file) {
t->op == DNS_DIFFOP_ADD ?
"add" : "del",
(int) r.length, (char *) r.base);
- } else
+ } else
goto cleanup;
}
result = ISC_R_SUCCESS;
@@ -655,25 +655,25 @@ dns_diff_print(dns_diff_t *diff, FILE *file) {
*
* - The index. This is an unordered array of index entries
* of type journal_rawpos_t giving the locations
- * of some arbitrary subset of the journal's addressable
- * transactions. The index entries are used as hints to
- * speed up the process of locating a transaction with a given
+ * of some arbitrary subset of the journal's addressable
+ * transactions. The index entries are used as hints to
+ * speed up the process of locating a transaction with a given
* serial number. Unused index entries have an "offset"
- * field of zero. The size of the index can vary between
+ * field of zero. The size of the index can vary between
* journal files, but does not change during the lifetime
* of a file. The size can be zero.
*
* - The journal data. This consists of one or more transactions.
* Each transaction begins with a transaction header of type
- * journal_rawxhdr_t. The transaction header is followed by a
- * sequence of RRs, similar in structure to an IXFR difference
+ * journal_rawxhdr_t. The transaction header is followed by a
+ * sequence of RRs, similar in structure to an IXFR difference
* sequence (RFC1995). That is, the pre-transaction SOA,
- * zero or more other deleted RRs, the post-transaction SOA,
- * and zero or more other added RRs. Unlike in IXFR, each RR
+ * zero or more other deleted RRs, the post-transaction SOA,
+ * and zero or more other added RRs. Unlike in IXFR, each RR
* is prefixed with a 32-bit length.
*
* The journal data part grows as new transactions are
- * appended to the file. Only those transactions
+ * appended to the file. Only those transactions
* whose serial number is current-(2^31-1) to current
* are considered "addressable" and may be pointed
* to from the header or index. They may be preceded
@@ -683,7 +683,7 @@ dns_diff_print(dns_diff_t *diff, FILE *file) {
* the "end" position in the header. The latter will
* be overwritten when new transactions are added.
*/
-
+
/*
* On-disk representation of a "pointer" to a journal entry.
* These are used in the journal header to locate the beginning
@@ -720,7 +720,7 @@ typedef union {
/* Position of the first addressable transaction */
journal_rawpos_t begin;
/* Position of the next (yet nonexistent) transaction. */
- journal_rawpos_t end;
+ journal_rawpos_t end;
/* Number of index entries following the header. */
unsigned char index_size[4];
} h;
@@ -770,8 +770,8 @@ typedef struct {
typedef struct {
isc_uint32_t size;
- isc_uint32_t serial0;
- isc_uint32_t serial1;
+ isc_uint32_t serial0;
+ isc_uint32_t serial1;
} journal_xhdr_t;
/*
@@ -788,11 +788,11 @@ typedef struct {
*
* The header starts with the magic string ";BIND LOG V9\n"
* to identify the file as a BIND 9 journal file. An ASCII
- * identification string is used rather than a binary magic
+ * identification string is used rather than a binary magic
* number to be consistent with BIND 8 (BIND 8 journal files
* are ASCII text files).
*/
-
+
static journal_header_t
initial_journal_header = { ";BIND LOG V9\n", { 0, 0 }, { 0, 0 }, 0 };
@@ -822,7 +822,7 @@ struct dns_journal {
unsigned int n_soa; /* Number of SOAs seen */
journal_pos_t pos[2]; /* Begin/end position */
} x;
-
+
/* Iteration state (when reading). */
struct {
/* These define the part of the journal we iterate over. */
@@ -862,7 +862,7 @@ static void
journal_header_decode(journal_rawheader_t *raw, journal_header_t *cooked) {
INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
memcpy(cooked->format, raw->h.format, sizeof(cooked->format));
- journal_pos_decode(&raw->h.begin, &cooked->begin);
+ journal_pos_decode(&raw->h.begin, &cooked->begin);
journal_pos_decode(&raw->h.end, &cooked->end);
cooked->index_size = decode_uint32(raw->h.index_size);
}
@@ -872,7 +872,7 @@ journal_header_encode(journal_header_t *cooked, journal_rawheader_t *raw) {
INSIST(sizeof(cooked->format) == sizeof(raw->h.format));
memset(raw->pad, 0, sizeof(raw->pad));
memcpy(raw->h.format, cooked->format, sizeof(raw->h.format));
- journal_pos_encode(&raw->h.begin, &cooked->begin);
+ journal_pos_encode(&raw->h.begin, &cooked->begin);
journal_pos_encode(&raw->h.end, &cooked->end);
encode_uint32(cooked->index_size, raw->h.index_size);
}
@@ -922,7 +922,7 @@ journal_write(dns_journal_t *j, void *mem, size_t nbytes) {
j->filename, isc_result_totext(result));
return (ISC_R_UNEXPECTED);
}
- j->offset += nbytes;
+ j->offset += nbytes;
return (ISC_R_SUCCESS);
}
@@ -949,7 +949,7 @@ journal_fsync(dns_journal_t *j) {
/*
* Read/write a transaction header at the current file position.
*/
-
+
static isc_result_t
journal_read_xhdr(dns_journal_t *j, journal_xhdr_t *xhdr) {
journal_rawxhdr_t raw;
@@ -978,7 +978,7 @@ journal_write_xhdr(dns_journal_t *j, isc_uint32_t size,
/*
* Read an RR header at the current file position.
*/
-
+
static isc_result_t
journal_read_rrhdr(dns_journal_t *j, journal_rrhdr_t *rrhdr) {
journal_rawrrhdr_t raw;
@@ -1001,7 +1001,7 @@ journal_file_create(isc_mem_t *mctx, const char *filename) {
void *mem; /* Memory for temporary index image. */
INSIST(sizeof(journal_rawheader_t) == JOURNAL_HEADER_SIZE);
-
+
result = isc_stdio_open(filename, "w", &fp);
if (result != ISC_R_SUCCESS) {
isc_log_write(JOURNAL_COMMON_LOGARGS, ISC_LOG_ERROR,
@@ -1032,12 +1032,12 @@ journal_file_create(isc_mem_t *mctx, const char *filename) {
"%s: write: %s",
filename, isc_result_totext(result));
(void)isc_stdio_close(fp);
- (void)isc_file_remove(filename);
- isc_mem_put(mctx, mem, size);
+ (void)isc_file_remove(filename);
+ isc_mem_put(mctx, mem, size);
return (ISC_R_UNEXPECTED);
}
- isc_mem_put(mctx, mem, size);
-
+ isc_mem_put(mctx, mem, size);
+
result = isc_stdio_close(fp);
if (result != ISC_R_SUCCESS) {
isc_log_write(JOURNAL_COMMON_LOGARGS, ISC_LOG_ERROR,
@@ -1049,7 +1049,7 @@ journal_file_create(isc_mem_t *mctx, const char *filename) {
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
@@ -1058,12 +1058,12 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
isc_result_t result;
journal_rawheader_t rawheader;
dns_journal_t *j;
-
+
INSIST(journalp != NULL && *journalp == NULL);
j = isc_mem_get(mctx, sizeof(*j));
if (j == NULL)
return (ISC_R_NOMEMORY);
-
+
j->mctx = mctx;
j->state = JOURNAL_STATE_INVALID;
j->fp = NULL;
@@ -1101,7 +1101,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
/*
* Set magic early so that seek/read can succeed.
*/
- j->magic = DNS_JOURNAL_MAGIC;
+ j->magic = DNS_JOURNAL_MAGIC;
CHECK(journal_seek(j, 0));
CHECK(journal_read(j, &rawheader, sizeof(rawheader)));
@@ -1126,7 +1126,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
j->filename);
FAIL(ISC_R_UNEXPECTED);
}
-
+
/*
* If there is an index, read the raw index into a dynamically
* allocated buffer and then convert it into a cooked index.
@@ -1135,14 +1135,14 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
unsigned int i;
unsigned int rawbytes;
unsigned char *p;
-
+
rawbytes = j->header.index_size * sizeof(journal_rawpos_t);
j->rawindex = isc_mem_get(mctx, rawbytes);
if (j->rawindex == NULL)
FAIL(ISC_R_NOMEMORY);
-
+
CHECK(journal_read(j, j->rawindex, rawbytes));
-
+
j->index = isc_mem_get(mctx, j->header.index_size *
sizeof(journal_pos_t));
if (j->index == NULL)
@@ -1164,7 +1164,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
*/
dns_name_init(&j->it.name, NULL);
dns_rdata_init(&j->it.rdata);
-
+
/*
* Set up empty initial buffers for uncheched and checked
* wire format RR data. They will be reallocated
@@ -1176,7 +1176,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
j->state =
write ? JOURNAL_STATE_WRITE : JOURNAL_STATE_READ;
-
+
*journalp = j;
return (ISC_R_SUCCESS);
@@ -1189,7 +1189,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
}
if (j->fp != NULL)
(void)isc_stdio_close(j->fp);
- isc_mem_put(j->mctx, j, sizeof(*j));
+ isc_mem_put(j->mctx, j, sizeof(*j));
return (result);
}
@@ -1205,7 +1205,7 @@ dns_journal_open(isc_mem_t *mctx, const char *filename, isc_boolean_t write,
* server receiving the IXFR - it may help reduce the amount of
* rdataset merging it has to do.
*/
-static int
+static int
ixfr_order(const void *av, const void *bv) {
dns_difftuple_t * const *ap = av;
dns_difftuple_t * const *bp = bv;
@@ -1216,7 +1216,7 @@ ixfr_order(const void *av, const void *bv) {
r = (b->op == DNS_DIFFOP_DEL) - (a->op == DNS_DIFFOP_DEL);
if (r != 0)
return (r);
-
+
r = (b->rdata.type == dns_rdatatype_soa) -
(a->rdata.type == dns_rdatatype_soa);
if (r != 0)
@@ -1228,7 +1228,7 @@ ixfr_order(const void *av, const void *bv) {
/*
* Advance '*pos' to the next journal transaction.
- *
+ *
* Requires:
* *pos refers to a valid journal transaction.
*
@@ -1238,7 +1238,7 @@ ixfr_order(const void *av, const void *bv) {
*
* Returns one of:
*
- * ISC_R_SUCCESS
+ * ISC_R_SUCCESS
* ISC_R_NOMORE *pos pointed at the last transaction
* Other results due to file errors are possible.
*/
@@ -1247,7 +1247,7 @@ journal_next(dns_journal_t *j, journal_pos_t *pos) {
isc_result_t result;
journal_xhdr_t xhdr;
REQUIRE(DNS_JOURNAL_VALID(j));
-
+
result = journal_seek(j, pos->offset);
if (result != ISC_R_SUCCESS)
return (result);
@@ -1278,9 +1278,9 @@ journal_next(dns_journal_t *j, journal_pos_t *pos) {
< pos->offset) {
isc_log_write(JOURNAL_COMMON_LOGARGS, ISC_LOG_ERROR,
"%s: offset too large", j->filename);
- return (ISC_R_UNEXPECTED);
+ return (ISC_R_UNEXPECTED);
}
-
+
pos->offset += sizeof(journal_rawxhdr_t) + xhdr.size;
pos->serial = xhdr.serial1;
return (ISC_R_SUCCESS);
@@ -1311,7 +1311,7 @@ index_find(dns_journal_t *j, isc_uint32_t serial, journal_pos_t *best_guess) {
* the odd-numbered entries and compacting the others into the first
* half of the index. This decimates old index entries exponentially
* over time, so that the index always contains a much larger fraction
- * of recent serial numbers than of old ones. This is deliberate -
+ * of recent serial numbers than of old ones. This is deliberate -
* most index searches are for outgoing IXFR, and IXFR tends to request
* recent versions more often than old ones.
*/
@@ -1341,7 +1341,7 @@ index_add(dns_journal_t *j, journal_pos_t *pos) {
k++;
}
}
- INSIST(i < j->header.index_size);
+ INSIST(i < j->header.index_size);
INSIST(! POS_VALID(j->index[i]));
/*
@@ -1372,24 +1372,24 @@ index_invalidate(dns_journal_t *j, isc_uint32_t serial) {
* If found, store its position at '*pos' and return ISC_R_SUCCESS.
*
* If 'serial' is current (= the ending serial number of the
- * last transaction in the journal), set '*pos' to
+ * last transaction in the journal), set '*pos' to
* the position immediately following the last transaction and
* return ISC_R_SUCCESS.
*
- * If 'serial' is within the range of addressable serial numbers
+ * If 'serial' is within the range of addressable serial numbers
* covered by the journal but that particular serial number is missing
* (from the journal, not just from the index), return ISC_R_NOTFOUND.
*
* If 'serial' is outside the range of addressable serial numbers
* covered by the journal, return ISC_R_RANGE.
- *
+ *
*/
static isc_result_t
journal_find(dns_journal_t *j, isc_uint32_t serial, journal_pos_t *pos) {
isc_result_t result;
journal_pos_t current_pos;
REQUIRE(DNS_JOURNAL_VALID(j));
-
+
if (DNS_SERIAL_GT(j->header.begin.serial, serial))
return (ISC_R_RANGE);
if (DNS_SERIAL_GT(serial, j->header.end.serial))
@@ -1401,7 +1401,7 @@ journal_find(dns_journal_t *j, isc_uint32_t serial, journal_pos_t *pos) {
current_pos = j->header.begin;
index_find(j, serial, ¤t_pos);
-
+
while (current_pos.serial != serial) {
if (DNS_SERIAL_GT(current_pos.serial, serial))
return (ISC_R_NOTFOUND);
@@ -1418,10 +1418,10 @@ dns_journal_begin_transaction(dns_journal_t *j) {
isc_uint32_t offset;
isc_result_t result;
journal_rawxhdr_t hdr;
-
+
REQUIRE(DNS_JOURNAL_VALID(j));
REQUIRE(j->state == JOURNAL_STATE_WRITE);
-
+
/*
* Find the file offset where the new transaction should
* be written, and seek there.
@@ -1437,7 +1437,7 @@ dns_journal_begin_transaction(dns_journal_t *j) {
j->x.n_soa = 0;
CHECK(journal_seek(j, offset));
-
+
/*
* Write a dummy transaction header of all zeroes to reserve
* space. It will be filled in when the transaction is
@@ -1451,7 +1451,7 @@ dns_journal_begin_transaction(dns_journal_t *j) {
result = ISC_R_SUCCESS;
failure:
return (result);
-}
+}
isc_result_t
dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
@@ -1461,10 +1461,10 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
unsigned int size;
isc_result_t result;
isc_region_t used;
-
+
REQUIRE(DNS_DIFF_VALID(diff));
REQUIRE(j->state == JOURNAL_STATE_TRANSACTION);
-
+
isc_log_write(JOURNAL_DEBUG_LOGARGS(3), "writing to journal");
dns_diff_print(diff, NULL);
@@ -1480,7 +1480,7 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
if (j->x.n_soa < 2)
j->x.pos[j->x.n_soa].serial =
dns_soa_getserial(&t->rdata);
- j->x.n_soa++;
+ j->x.n_soa++;
}
size += sizeof(journal_rawrrhdr_t);
size += t->name.length; /* XXX should have access macro? */
@@ -1491,7 +1491,7 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
mem = isc_mem_get(j->mctx, size);
if (mem == NULL)
return (ISC_R_NOMEMORY);
-
+
isc_buffer_init(&buffer, mem, size);
/*
@@ -1517,12 +1517,12 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
INSIST(isc_buffer_availablelength(&buffer) >= t->rdata.length);
isc_buffer_putmem(&buffer, t->rdata.data, t->rdata.length);
}
-
+
isc_buffer_usedregion(&buffer, &used);
INSIST(used.length == size);
j->x.pos[1].offset += used.length;
-
+
/*
* Write the buffer contents to the journal file.
*/
@@ -1534,17 +1534,17 @@ dns_journal_writediff(dns_journal_t *j, dns_diff_t *diff) {
if (mem != NULL)
isc_mem_put(j->mctx, mem, size);
return (result);
-
+
}
isc_result_t
dns_journal_commit(dns_journal_t *j) {
isc_result_t result;
journal_rawheader_t rawheader;
-
+
REQUIRE(DNS_JOURNAL_VALID(j));
REQUIRE(j->state == JOURNAL_STATE_TRANSACTION);
-
+
/*
* Perform some basic consistency checks.
*/
@@ -1560,7 +1560,7 @@ dns_journal_commit(dns_journal_t *j) {
{
isc_log_write(JOURNAL_COMMON_LOGARGS, ISC_LOG_ERROR,
"malformed transaction: serial number "
- "would decrease");
+ "would decrease");
return (ISC_R_UNEXPECTED);
}
if (! JOURNAL_EMPTY(&j->header)) {
@@ -1575,7 +1575,7 @@ dns_journal_commit(dns_journal_t *j) {
return (ISC_R_UNEXPECTED);
}
}
-
+
/*
* Some old journal entries may become non-addressable
* when we increment the current serial number. Purge them
@@ -1615,10 +1615,10 @@ dns_journal_commit(dns_journal_t *j) {
j->header.begin = j->x.pos[0];
}
j->header.end = j->x.pos[1];
- journal_header_encode(&j->header, &rawheader);
+ journal_header_encode(&j->header, &rawheader);
CHECK(journal_seek(j, 0));
CHECK(journal_write(j, &rawheader, sizeof(rawheader)));
-
+
/*
* Update the index.
*/
@@ -1634,7 +1634,7 @@ dns_journal_commit(dns_journal_t *j) {
unsigned int rawbytes;
rawbytes = j->header.index_size * sizeof(journal_rawpos_t);
-
+
p = j->rawindex;
for (i = 0; i < j->header.index_size; i++) {
encode_uint32(j->index[i].serial, p);
@@ -1643,7 +1643,7 @@ dns_journal_commit(dns_journal_t *j) {
p += 4;
}
INSIST(p == j->rawindex + rawbytes);
-
+
CHECK(journal_write(j, j->index, rawbytes));
}
@@ -1656,7 +1656,7 @@ dns_journal_commit(dns_journal_t *j) {
* We no longer have a transaction open.
*/
j->state = JOURNAL_STATE_WRITE;
-
+
result = ISC_R_SUCCESS;
failure:
@@ -1700,7 +1700,7 @@ dns_journal_destroy(dns_journal_t **journalp) {
isc_mem_put(j->mctx, j, sizeof(*j));
*journalp = NULL;
}
-
+
/*
* Roll the open journal 'j' into the database 'db'.
* A new database version will be created.
@@ -1720,12 +1720,12 @@ roll_forward(dns_journal_t *j, dns_db_t *db) {
dns_diff_t diff;
unsigned int n_soa = 0;
unsigned int n_put = 0;
-
+
REQUIRE(DNS_JOURNAL_VALID(j));
REQUIRE(DNS_DB_VALID(db));
-
+
dns_diff_init(j->mctx, &diff);
-
+
/*
* Set up empty initial buffers for uncheched and checked
* wire format transaction data. They will be reallocated
@@ -1772,11 +1772,11 @@ roll_forward(dns_journal_t *j, dns_db_t *db) {
isc_uint32_t ttl;
dns_rdata_t *rdata;
dns_difftuple_t *tuple = NULL;
-
+
name = NULL;
rdata = NULL;
dns_journal_current_rr(j, &name, &ttl, &rdata);
-
+
if (rdata->type == dns_rdatatype_soa)
n_soa++;
@@ -1813,7 +1813,7 @@ roll_forward(dns_journal_t *j, dns_db_t *db) {
CHECK(dns_diff_apply(&diff, db, ver));
dns_diff_clear(&diff);
}
-
+
failure:
if (ver != NULL)
dns_db_closeversion(db, &ver, result == ISC_R_SUCCESS ?
@@ -1825,7 +1825,7 @@ roll_forward(dns_journal_t *j, dns_db_t *db) {
isc_mem_put(j->mctx, target.base, target.length);
dns_diff_clear(&diff);
-
+
return (result);
}
@@ -1836,7 +1836,7 @@ dns_journal_rollforward(isc_mem_t *mctx, dns_db_t *db, const char *filename) {
REQUIRE(DNS_DB_VALID(db));
REQUIRE(filename != NULL);
-
+
j = NULL;
result = dns_journal_open(mctx, filename, ISC_FALSE, &j);
if (result == ISC_R_NOTFOUND) {
@@ -1864,7 +1864,7 @@ dns_journal_print(isc_mem_t *mctx, const char *filename, FILE *file) {
dns_diff_t diff;
unsigned int n_soa = 0;
unsigned int n_put = 0;
-
+
REQUIRE(filename != NULL);
j = NULL;
@@ -1879,9 +1879,9 @@ dns_journal_print(isc_mem_t *mctx, const char *filename, FILE *file) {
"journal open failure");
return (result);
}
-
+
dns_diff_init(j->mctx, &diff);
-
+
/*
* Set up empty initial buffers for uncheched and checked
* wire format transaction data. They will be reallocated
@@ -1903,11 +1903,11 @@ dns_journal_print(isc_mem_t *mctx, const char *filename, FILE *file) {
isc_uint32_t ttl;
dns_rdata_t *rdata;
dns_difftuple_t *tuple = NULL;
-
+
name = NULL;
rdata = NULL;
dns_journal_current_rr(j, &name, &ttl, &rdata);
-
+
if (rdata->type == dns_rdatatype_soa)
n_soa++;
@@ -1941,7 +1941,7 @@ dns_journal_print(isc_mem_t *mctx, const char *filename, FILE *file) {
dns_diff_clear(&diff);
}
goto cleanup;
-
+
failure:
isc_log_write(JOURNAL_COMMON_LOGARGS, ISC_LOG_ERROR,
"%s: cannot print: journal file corrupt", j->filename);
@@ -1954,7 +1954,7 @@ dns_journal_print(isc_mem_t *mctx, const char *filename, FILE *file) {
dns_diff_clear(&diff);
dns_journal_destroy(&j);
-
+
return (result);
}
@@ -2013,11 +2013,11 @@ dns_journal_iter_init(dns_journal_t *j,
isc_uint32_t begin_serial, isc_uint32_t end_serial)
{
isc_result_t result;
-
- CHECK(journal_find(j, begin_serial, &j->it.bpos));
+
+ CHECK(journal_find(j, begin_serial, &j->it.bpos));
INSIST(j->it.bpos.serial == begin_serial);
- CHECK(journal_find(j, end_serial, &j->it.epos));
+ CHECK(journal_find(j, end_serial, &j->it.epos));
INSIST(j->it.epos.serial == end_serial);
result = ISC_R_SUCCESS;
@@ -2031,8 +2031,8 @@ isc_result_t
dns_journal_first_rr(dns_journal_t *j) {
isc_result_t result;
- /*
- * Seek to the beginning of the first transaction we are
+ /*
+ * Seek to the beginning of the first transaction we are
* interested in.
*/
CHECK(journal_seek(j, j->it.bpos.offset));
@@ -2042,7 +2042,7 @@ dns_journal_first_rr(dns_journal_t *j) {
j->it.xpos = 0; /* ...and haven't used any of it. */
return (read_one_rr(j));
-
+
failure:
return (result);
}
@@ -2050,7 +2050,7 @@ dns_journal_first_rr(dns_journal_t *j) {
static isc_result_t
read_one_rr(dns_journal_t *j) {
isc_result_t result;
-
+
dns_rdatatype_t rdtype;
dns_rdataclass_t rdclass;
unsigned int rdlen;
@@ -2100,25 +2100,25 @@ read_one_rr(dns_journal_t *j) {
"(%d bytes)", j->filename, rrhdr.size);
FAIL(ISC_R_UNEXPECTED);
}
-
+
CHECK(size_buffer(j->mctx, &j->it.source, rrhdr.size));
CHECK(journal_read(j, j->it.source.base, rrhdr.size));
isc_buffer_add(&j->it.source, rrhdr.size);
- /*
+ /*
* The target buffer is made the same size
* as the source buffer, with the assumption that when
* no compression in present, the output of dns_*_fromwire()
* is no larger than the input.
*/
CHECK(size_buffer(j->mctx, &j->it.target, rrhdr.size));
-
+
/*
* Parse the owner name. We don't know where it
* ends yet, so we make the entire "remaining"
* part of the buffer "active".
*/
- isc_buffer_setactive(&j->it.source,
+ isc_buffer_setactive(&j->it.source,
j->it.source.used - j->it.source.current);
CHECK(dns_name_fromwire(&j->it.name, &j->it.source,
&j->it.dctx, ISC_FALSE, &j->it.target));
@@ -2128,7 +2128,7 @@ read_one_rr(dns_journal_t *j) {
*/
if (isc_buffer_remaininglength(&j->it.source) < 10)
FAIL(DNS_R_FORMERR);
-
+
rdtype = isc_buffer_getuint16(&j->it.source);
rdclass = isc_buffer_getuint16(&j->it.source);
ttl = isc_buffer_getuint32(&j->it.source);
@@ -2148,7 +2148,7 @@ read_one_rr(dns_journal_t *j) {
/* XXX could do additional consistency checks here */
j->it.current_serial = dns_soa_getserial(&j->it.rdata);
}
-
+
result = ISC_R_SUCCESS;
failure:
@@ -2199,7 +2199,7 @@ get_name_diff(dns_db_t *db, dns_dbversion_t *ver, isc_stdtime_t now,
result = dns_dbiterator_current(dbit, &node, name);
if (result != ISC_R_SUCCESS)
return (result);
-
+
result = dns_db_allrdatasets(db, node, ver, now, &rdsiter);
if (result != ISC_R_SUCCESS)
goto cleanup_node;
@@ -2234,7 +2234,7 @@ get_name_diff(dns_db_t *db, dns_dbversion_t *ver, isc_stdtime_t now,
}
if (result != ISC_R_NOMORE)
goto cleanup_iterator;
-
+
result = ISC_R_SUCCESS;
cleanup_iterator:
@@ -2279,7 +2279,7 @@ dns_diff_subtract(dns_diff_t diff[2], dns_diff_t *r) {
p[1] = ISC_LIST_HEAD(diff[1].tuples);
if (p[0] == NULL && p[1] == NULL)
break;
-
+
for (i = 0; i < 2; i++)
if (p[!i] == NULL) {
ISC_LIST_UNLINK(diff[i].tuples, p[i], link);
@@ -2337,11 +2337,11 @@ dns_db_diff(isc_mem_t *mctx,
db[0] = dba, db[1] = dbb;
ver[0] = dbvera, ver[1] = dbverb;
-
+
dns_diff_init(mctx, &diff[0]);
dns_diff_init(mctx, &diff[1]);
dns_diff_init(mctx, &resultdiff);
-
+
dns_fixedname_init(&fixname[0]);
dns_fixedname_init(&fixname[1]);
@@ -2366,7 +2366,7 @@ dns_db_diff(isc_mem_t *mctx,
have[i] = ISC_TRUE;
}
}
-
+
if (! have[0] && ! have[1]) {
INSIST(ISC_LIST_EMPTY(diff[0].tuples));
INSIST(ISC_LIST_EMPTY(diff[1].tuples));
@@ -2382,7 +2382,7 @@ dns_db_diff(isc_mem_t *mctx,
goto next;
}
}
-
+
t = dns_name_compare(dns_fixedname_name(&fixname[0]),
dns_fixedname_name(&fixname[1]));
if (t < 0) {
@@ -2419,7 +2419,7 @@ dns_db_diff(isc_mem_t *mctx,
INSIST(ISC_LIST_EMPTY(diff[0].tuples));
INSIST(ISC_LIST_EMPTY(diff[1].tuples));
dns_diff_clear(&resultdiff);
-
+
failure:
dns_dbiterator_destroy(&dbit[0]);
dns_dbiterator_destroy(&dbit[1]);
diff --git a/lib/dns/keytable.c b/lib/dns/keytable.c
index 374b57ced0..ea1a4687a0 100644
--- a/lib/dns/keytable.c
+++ b/lib/dns/keytable.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keytable.c,v 1.20 2000/07/27 09:46:09 tale Exp $ */
+/* $Id: keytable.c,v 1.21 2000/08/01 01:22:26 tale Exp $ */
#include
@@ -39,7 +39,7 @@ struct dns_keytable {
isc_uint32_t active_nodes;
/* Locked by rwlock. */
isc_uint32_t references;
- dns_rbt_t *table;
+ dns_rbt_t *table;
};
#define KEYTABLE_MAGIC 0x4b54626cU /* KTbl */
@@ -160,7 +160,7 @@ dns_keytable_detach(dns_keytable_t **keytablep) {
keytable = *keytablep;
RWLOCK(&keytable->rwlock, isc_rwlocktype_write);
-
+
INSIST(keytable->references > 0);
keytable->references--;
LOCK(&keytable->lock);
diff --git a/lib/dns/lib.c b/lib/dns/lib.c
index 67f44d6009..dba4671308 100644
--- a/lib/dns/lib.c
+++ b/lib/dns/lib.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lib.c,v 1.6 2000/07/27 09:46:10 tale Exp $ */
+/* $Id: lib.c,v 1.7 2000/08/01 01:22:27 tale Exp $ */
#include
diff --git a/lib/dns/log.c b/lib/dns/log.c
index 78c80f9512..b79051f6a9 100644
--- a/lib/dns/log.c
+++ b/lib/dns/log.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.25 2000/07/27 09:46:11 tale Exp $ */
+/* $Id: log.c,v 1.26 2000/08/01 01:22:28 tale Exp $ */
/* Principal Authors: DCL */
diff --git a/lib/dns/master.c b/lib/dns/master.c
index b6c0b21baf..5a6aa22c69 100644
--- a/lib/dns/master.c
+++ b/lib/dns/master.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: master.c,v 1.60 2000/07/30 20:28:07 bwelling Exp $ */
+/* $Id: master.c,v 1.61 2000/08/01 01:22:30 tale Exp $ */
#include
@@ -43,7 +43,7 @@
*
* RDLSZ reflects the number of different types with the same name expected.
* RDSZ reflects the number of rdata expected at a give name that can fit into
- * 64k.
+ * 64k.
*/
#define RDLSZ 32
@@ -55,7 +55,7 @@
/*
* Target buffer size and minimum target size.
* MINTSIZ must be big enough to hold the largest rdata record.
- *
+ *
* TSIZ >= MINTSIZ
*/
#define TSIZ (128*1024)
@@ -63,10 +63,10 @@
* max message size - header - root - type - class - ttl - rdlen
*/
#define MINTSIZ (65535 - 12 - 1 - 2 - 2 - 4 - 2)
-/*
- * Size for tokens in the presentation format,
+/*
+ * Size for tokens in the presentation format,
* The largest tokens are the base64 blocks in KEY and CERT records,
- * Largest key allowed is about 1372 bytes but
+ * Largest key allowed is about 1372 bytes but
* there is no fixed upper bound on CERT records.
* 2K is too small for some X.509s, 8K is overkill.
*/
@@ -78,7 +78,7 @@ typedef ISC_LIST(dns_rdatalist_t) rdatalist_head_t;
* Master file loading state that persists across $INCLUDEs.
*/
typedef struct {
- isc_boolean_t ttl_known;
+ isc_boolean_t ttl_known;
isc_boolean_t default_ttl_known;
isc_uint32_t ttl;
isc_uint32_t default_ttl;
@@ -177,7 +177,7 @@ loadctx_init(loadctx_t *ctx) {
ctx->default_ttl = 0;
ctx->warn_1035 = ISC_TRUE; /* XXX Argument? */
}
-
+
static isc_result_t
load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
dns_rdataclass_t zclass, isc_boolean_t age_ttl,
@@ -200,7 +200,7 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
isc_boolean_t initialws;
char *include_file = NULL;
isc_token_t token;
- isc_result_t result = ISC_R_UNEXPECTED;
+ isc_result_t result = ISC_R_UNEXPECTED;
rdatalist_head_t glue_list;
rdatalist_head_t current_list;
dns_rdatalist_t *this;
@@ -331,7 +331,7 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
if (ttl_offset != 0) {
(callbacks->error)(callbacks,
"%s: %s:%lu: $INCLUDE "
- "may not be used with $DATE",
+ "may not be used with $DATE",
"dns_master_load",
isc_lex_getsourcename(lex),
isc_lex_getsourceline(lex));
@@ -408,10 +408,10 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
ttl_offset = current_time - dump_time;
read_till_eol = ISC_TRUE;
continue;
- } else if (strncasecmp(token.value.as_pointer,
+ } else if (strncasecmp(token.value.as_pointer,
"$", 1) == 0) {
- (callbacks->error)(callbacks,
- "%s: %s:%lu: "
+ (callbacks->error)(callbacks,
+ "%s: %s:%lu: "
"unknown $ directive '%s'",
"dns_master_load",
isc_lex_getsourcename(lex),
@@ -622,7 +622,7 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
isc_lex_getsourcename(lex),
isc_lex_getsourceline(lex));
ctx->warn_1035 = ISC_FALSE;
- }
+ }
if (token.type != isc_tokentype_string) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
@@ -630,7 +630,7 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
result = ISC_R_UNEXPECTED;
goto cleanup;
}
-
+
if (rdclass == 0 &&
dns_rdataclass_fromtext(&rdclass,
&token.value.as_textregion)
@@ -700,7 +700,7 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
/*
* Adjust the TTL for $DATE. If the RR has already
* expired, ignore it without even parsing the rdata
- * part (good for performance, bad for catching
+ * part (good for performance, bad for catching
* syntax errors).
*/
if (ctx->ttl < ttl_offset) {
@@ -850,9 +850,9 @@ load(isc_lex_t *lex, dns_name_t *top, dns_name_t *origin,
isc_lex_close(lex);
isc_lex_destroy(&lex);
}
- while ((this = ISC_LIST_HEAD(current_list)) != NULL)
+ while ((this = ISC_LIST_HEAD(current_list)) != NULL)
ISC_LIST_UNLINK(current_list, this, link);
- while ((this = ISC_LIST_HEAD(glue_list)) != NULL)
+ while ((this = ISC_LIST_HEAD(glue_list)) != NULL)
ISC_LIST_UNLINK(glue_list, this, link);
if (rdatalist != NULL)
isc_mem_put(mctx, rdatalist,
@@ -943,7 +943,7 @@ dns_master_loadbuffer(isc_buffer_t *buffer, dns_name_t *top,
REQUIRE(buffer != NULL);
loadctx_init(&ctx);
-
+
result = isc_lex_create(mctx, TOKENSIZ, &lex);
if (result != ISC_R_SUCCESS)
return (result);
@@ -1046,7 +1046,7 @@ grow_rdata(int new_len, dns_rdata_t *old, int old_len,
}
this = ISC_LIST_NEXT(this, link);
}
-
+
/*
* Copy glue relinking.
*/
diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c
index a6fad91eac..0cb3fae5de 100644
--- a/lib/dns/masterdump.c
+++ b/lib/dns/masterdump.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: masterdump.c,v 1.28 2000/07/27 09:46:13 tale Exp $ */
+/* $Id: masterdump.c,v 1.29 2000/08/01 01:22:31 tale Exp $ */
#include
@@ -59,23 +59,23 @@ struct dns_master_style {
* define the formatting of the rdata part and are defined in
* rdata.h.
*/
-
+
/* Omit the owner name when possible. */
#define DNS_STYLEFLAG_OMIT_OWNER 0x00010000U
/*
- * Omit the TTL when possible. If DNS_STYLEFLAG_TTL is
+ * Omit the TTL when possible. If DNS_STYLEFLAG_TTL is
* also set, this means no TTLs are ever printed
* because $TTL directives are generated before every
- * change in the TTL. In this case, no columns need to
+ * change in the TTL. In this case, no columns need to
* be reserved for the TTL. Master files generated with
* these options will be rejected by BIND 4.x because it
* does not recognize the $TTL directive.
*
- * If DNS_STYLEFLAG_TTL is not also set, the TTL will be
+ * If DNS_STYLEFLAG_TTL is not also set, the TTL will be
* omitted when it is equal to the previous TTL.
- * This is correct according to RFC1035, but the
- * TTLs may be silently misinterpreted by older
+ * This is correct according to RFC1035, but the
+ * TTLs may be silently misinterpreted by older
* versions of BIND which use the SOA MINTTL as a
* default TTL value.
*/
@@ -93,14 +93,14 @@ struct dns_master_style {
*/
#define DNS_STYLEFLAG_REL_OWNER 0x00100000U
-/* Print domain names in RR data in relative form when possible.
+/* Print domain names in RR data in relative form when possible.
For this to take effect, DNS_STYLEFLAG_REL_OWNER must also be set. */
#define DNS_STYLEFLAG_REL_DATA 0x00200000U
/*
* The maximum length of the newline+indentation that is output
- * when inserting a line break in an RR. This effectively puts an
+ * when inserting a line break in an RR. This effectively puts an
* upper limits on the value of "rdata_column", because if it is
* very large, the tabs and spaces needed to reach it will not fit.
*/
@@ -126,7 +126,7 @@ typedef struct dns_totext_ctx {
* Because the TTL is always omitted, and the class is almost always
* omitted, neither is allocated any columns.
*/
-const dns_master_style_t
+const dns_master_style_t
dns_master_style_default = {
DNS_STYLEFLAG_OMIT_OWNER |
DNS_STYLEFLAG_OMIT_CLASS |
@@ -136,13 +136,13 @@ dns_master_style_default = {
DNS_STYLEFLAG_TTL |
DNS_STYLEFLAG_COMMENT |
DNS_STYLEFLAG_MULTILINE,
- 24, 24, 24, 32, 80, 8
+ 24, 24, 24, 32, 80, 8
};
/*
* A style suitable for dns_rdataset_totext().
*/
-dns_master_style_t
+dns_master_style_t
dns_masterfile_style_debug = {
DNS_STYLEFLAG_REL_OWNER,
24, 32, 40, 48, 80, 8
@@ -158,7 +158,7 @@ static char tabs[N_TABS+1] = "\t\t\t\t\t\t\t\t\t\t";
/*
- * Output tabs and spaces to go from column '*current' to
+ * Output tabs and spaces to go from column '*current' to
* column 'to', and update '*current' to reflect the new
* current column.
*/
@@ -177,7 +177,7 @@ indent(unsigned int *current, unsigned int to, int tabwidth,
to = from + 1;
ntabs = to / tabwidth - from / tabwidth;
- if (ntabs < 0)
+ if (ntabs < 0)
ntabs = 0;
if (ntabs > 0) {
@@ -185,7 +185,7 @@ indent(unsigned int *current, unsigned int to, int tabwidth,
if (r.length < (unsigned) ntabs)
return (ISC_R_NOSPACE);
p = r.base;
-
+
t = ntabs;
while (t) {
int n = t;
@@ -207,7 +207,7 @@ indent(unsigned int *current, unsigned int to, int tabwidth,
return (ISC_R_NOSPACE);
p = r.base;
- t = nspaces;
+ t = nspaces;
while (t) {
int n = t;
if (n > N_SPACES)
@@ -216,7 +216,7 @@ indent(unsigned int *current, unsigned int to, int tabwidth,
p += n;
t -= n;
}
- isc_buffer_add(target, nspaces);
+ isc_buffer_add(target, nspaces);
*current = to;
return (ISC_R_SUCCESS);
@@ -225,12 +225,12 @@ indent(unsigned int *current, unsigned int to, int tabwidth,
static isc_result_t
totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
isc_result_t result;
-
+
REQUIRE(style->tab_width != 0);
ctx->style = *style;
ctx->class_printed = ISC_FALSE;
-
+
dns_fixedname_init(&ctx->origin_fixname);
/*
@@ -243,19 +243,19 @@ totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
isc_buffer_init(&buf, ctx->linebreak_buf,
sizeof(ctx->linebreak_buf));
-
+
isc_buffer_availableregion(&buf, &r);
if (r.length < 1)
return (DNS_R_TEXTTOOLONG);
r.base[0] = '\n';
isc_buffer_add(&buf, 1);
- result = indent(&col, ctx->style.rdata_column,
+ result = indent(&col, ctx->style.rdata_column,
ctx->style.tab_width, &buf);
/*
* Do not return ISC_R_NOSPACE if the line break string
- * buffer is too small, because that would just make
- * dump_rdataset() retry indenfinitely with ever
+ * buffer is too small, because that would just make
+ * dump_rdataset() retry indenfinitely with ever
* bigger target buffers. That's a different buffer,
* so it won't help. Use DNS_R_TEXTTOOLONG as a substitute.
*/
@@ -263,7 +263,7 @@ totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
return (DNS_R_TEXTTOOLONG);
if (result != ISC_R_SUCCESS)
return (result);
-
+
isc_buffer_availableregion(&buf, &r);
if (r.length < 1)
return (DNS_R_TEXTTOOLONG);
@@ -277,7 +277,7 @@ totext_ctx_init(const dns_master_style_t *style, dns_totext_ctx_t *ctx) {
ctx->origin = NULL;
ctx->current_ttl = 0;
ctx->current_ttl_valid = ISC_FALSE;
-
+
return (ISC_R_SUCCESS);
}
@@ -309,9 +309,9 @@ rdataset_totext(dns_rdataset_t *rdataset,
isc_boolean_t first = ISC_TRUE;
isc_uint32_t current_ttl;
isc_boolean_t current_ttl_valid;
-
+
REQUIRE(DNS_RDATASET_VALID(rdataset));
-
+
result = dns_rdataset_first(rdataset);
REQUIRE(result == ISC_R_SUCCESS);
@@ -320,7 +320,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
do {
column = 0;
-
+
/*
* Owner name.
*/
@@ -357,7 +357,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
column += length;
/*
- * If the $TTL directive is not in use, the TTL we
+ * If the $TTL directive is not in use, the TTL we
* just printed becomes the default for subsequent RRs.
*/
if ((ctx->style.flags & DNS_STYLEFLAG_TTL) == 0) {
@@ -397,7 +397,7 @@ rdataset_totext(dns_rdataset_t *rdataset,
/*
* Rdata.
- */
+ */
{
dns_rdata_t rdata;
isc_region_t r;
@@ -429,10 +429,10 @@ rdataset_totext(dns_rdataset_t *rdataset,
/*
* Update the ctx state to reflect what we just printed.
- * This is done last, only when we are sure we will return
- * success, because this function may be called multiple
+ * This is done last, only when we are sure we will return
+ * success, because this function may be called multiple
* times with increasing buffer sizes until it succeeds,
- * and failed attempts must not update the state prematurely.
+ * and failed attempts must not update the state prematurely.
*/
ctx->class_printed = ISC_TRUE;
ctx->current_ttl= current_ttl;
@@ -505,7 +505,7 @@ question_totext(dns_rdataset_t *rdataset,
/*
* Provide a backwards compatible interface for printing a
- * single rdataset or question section. This is now used
+ * single rdataset or question section. This is now used
* only by wire_test.c.
*/
isc_result_t
@@ -532,36 +532,36 @@ dns_rdataset_totext(dns_rdataset_t *rdataset,
*/
if (dns_name_countlabels(owner_name) == 0)
owner_name = NULL;
-
+
if (no_rdata_or_ttl)
- return (question_totext(rdataset, owner_name, &ctx,
+ return (question_totext(rdataset, owner_name, &ctx,
omit_final_dot, target));
else
- return (rdataset_totext(rdataset, owner_name, &ctx,
+ return (rdataset_totext(rdataset, owner_name, &ctx,
omit_final_dot, target));
}
/*
* Print an rdataset. 'buffer' is a scratch buffer, which must have been
- * dynamically allocated by the caller. It must be large enough to
+ * dynamically allocated by the caller. It must be large enough to
* hold the result from dns_ttl_totext(). If more than that is needed,
* the buffer will be grown automatically.
*/
static isc_result_t
dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
- dns_totext_ctx_t *ctx,
+ dns_totext_ctx_t *ctx,
isc_buffer_t *buffer, FILE *f)
{
isc_region_t r;
isc_result_t result;
-
+
REQUIRE(buffer->length > 0);
/*
* Output a $TTL directive if needed.
*/
-
+
if ((ctx->style.flags & DNS_STYLEFLAG_TTL) != 0) {
if (ctx->current_ttl_valid == ISC_FALSE ||
ctx->current_ttl != rdataset->ttl)
@@ -582,13 +582,13 @@ dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
ctx->current_ttl_valid = ISC_TRUE;
}
}
-
+
isc_buffer_clear(buffer);
/*
* Generate the text representation of the rdataset into
* the buffer. If the buffer is too small, grow it.
- */
+ */
for (;;) {
int newlength;
void *newmem;
@@ -619,7 +619,7 @@ dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
isc_result_totext(result));
return (result);
}
-
+
return (ISC_R_SUCCESS);
}
@@ -627,13 +627,13 @@ dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset,
* Dump all the rdatasets of a domain name to a master file.
*/
static isc_result_t
-dump_rdatasets(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter,
+dump_rdatasets(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter,
dns_totext_ctx_t *ctx,
isc_buffer_t *buffer, FILE *f)
{
isc_result_t result;
dns_rdataset_t rdataset;
-
+
dns_rdataset_init(&rdataset);
result = dns_rdatasetiter_first(rdsiter);
while (result == ISC_R_SUCCESS) {
@@ -664,12 +664,12 @@ dump_rdatasets(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter,
/*
* Initial size of text conversion buffer. The buffer is used
- * for several purposes: converting origin names, rdatasets,
+ * for several purposes: converting origin names, rdatasets,
* $DATE timestamps, and comment strings for $TTL directives.
*
* When converting rdatasets, it is dynamically resized, but
- * when converting origins, timestamps, etc it is not. Therefore,
- * the initial size must large enough to hold the longest possible
+ * when converting origins, timestamps, etc it is not. Therefore,
+ * the initial size must large enough to hold the longest possible
* text representation of any domain name (for $ORIGIN).
*/
static const int initial_buffer_length = 1200;
@@ -708,13 +708,13 @@ dns_master_dumptostream(isc_mem_t *mctx, dns_db_t *db,
bufmem = isc_mem_get(mctx, initial_buffer_length);
if (bufmem == NULL)
return (ISC_R_NOMEMORY);
-
+
isc_buffer_init(&buffer, bufmem, initial_buffer_length);
/*
* If the database has cache semantics, output an RFC2540
* $DATE directive so that the TTLs can be adjusted when
- * it is reloaded. For zones it is not really needed, and
+ * it is reloaded. For zones it is not really needed, and
* it would make the file incompatible with pre-RFC2540
* software, so we omit it in the zone case.
*/
@@ -726,7 +726,7 @@ dns_master_dumptostream(isc_mem_t *mctx, dns_db_t *db,
}
result = dns_db_createiterator(db,
- ((ctx.style.flags & DNS_STYLEFLAG_REL_OWNER) != 0) ?
+ ((ctx.style.flags & DNS_STYLEFLAG_REL_OWNER) != 0) ?
ISC_TRUE : ISC_FALSE,
&dbiter);
if (result != ISC_R_SUCCESS)
@@ -773,10 +773,10 @@ dns_master_dumptostream(isc_mem_t *mctx, dns_db_t *db,
goto iter_failure;
result = ISC_R_SUCCESS;
-
+
iter_failure:
dns_dbiterator_destroy(&dbiter);
-
+
create_iter_failure:
isc_mem_put(mctx, buffer.base, buffer.length);
return (result);
diff --git a/lib/dns/message.c b/lib/dns/message.c
index 53fccf7a98..191085278a 100644
--- a/lib/dns/message.c
+++ b/lib/dns/message.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: message.c,v 1.137 2000/07/27 09:46:15 tale Exp $ */
+/* $Id: message.c,v 1.138 2000/08/01 01:22:32 tale Exp $ */
/***
*** Imports
@@ -843,7 +843,7 @@ getrdata(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
* the const attribute of a string, for compilers that
* would warn about such things.
*/
- rdata->data = (unsigned char *)1;
+ rdata->data = (unsigned char *)1;
rdata->length = 0;
rdata->rdclass = rdclass;
rdata->type = rdtype;
@@ -1116,7 +1116,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
* established a class. Do so now.
*/
if (msg->state == DNS_SECTION_ANY) {
- if ((msg->opcode != dns_opcode_update) &&
+ if ((msg->opcode != dns_opcode_update) &&
(rdclass == 0 || rdclass == dns_rdataclass_any)) {
result = DNS_R_FORMERR;
goto cleanup;
@@ -1124,7 +1124,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
msg->rdclass = rdclass;
msg->state = DNS_SECTION_QUESTION;
}
-
+
/*
* If this class is different than the one in the question
* section, bail.
@@ -1192,7 +1192,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
goto cleanup;
}
}
-
+
/*
* ... now get ttl and rdatalen, and check buffer.
*/
@@ -1205,7 +1205,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
}
/*
- * Read the rdata from the wire format. Interpret the
+ * Read the rdata from the wire format. Interpret the
* rdata according to its actual class, even if it had a
* DynDNS meta-class in the packet (unless this is a TSIG).
* Then put the meta-class back into the finished rdata.
@@ -1408,7 +1408,7 @@ getsection(isc_buffer_t *source, dns_message_t *msg, dns_decompress_t *dctx,
INSIST(free_name == ISC_FALSE);
INSIST(free_rdataset == ISC_FALSE);
}
-
+
return (ISC_R_SUCCESS);
cleanup:
@@ -1942,7 +1942,7 @@ dns_message_nextname(dns_message_t *msg, dns_section_t section) {
REQUIRE(DNS_MESSAGE_VALID(msg));
REQUIRE(VALID_NAMED_SECTION(section));
REQUIRE(msg->cursors[section] != NULL);
-
+
msg->cursors[section] = ISC_LIST_NEXT(msg->cursors[section], link);
if (msg->cursors[section] == NULL)
@@ -2226,7 +2226,7 @@ dns_message_getopt(dns_message_t *msg) {
*/
REQUIRE(DNS_MESSAGE_VALID(msg));
-
+
return (msg->opt);
}
@@ -2349,7 +2349,7 @@ dns_message_setquerytsig(dns_message_t *msg, isc_buffer_t *querytsig) {
result = dns_message_gettemprdata(msg, &rdata);
if (result != ISC_R_SUCCESS)
goto cleanup;
-
+
result = dns_message_gettemprdatalist(msg, &list);
if (result != ISC_R_SUCCESS)
goto cleanup;
@@ -2546,7 +2546,7 @@ dns_message_signer(dns_message_t *msg, dns_name_t *signer) {
result = dns_rdata_tostruct(&rdata, &sig, NULL);
if (result != ISC_R_SUCCESS)
return (result);
-
+
if (msg->verified_sig && msg->sig0status == dns_rcode_noerror)
result = ISC_R_SUCCESS;
else
diff --git a/lib/dns/name.c b/lib/dns/name.c
index 49210c13ef..ccb91d30c6 100644
--- a/lib/dns/name.c
+++ b/lib/dns/name.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: name.c,v 1.99 2000/07/31 23:09:49 tale Exp $ */
+/* $Id: name.c,v 1.100 2000/08/01 01:22:33 tale Exp $ */
#include
@@ -177,7 +177,7 @@ static struct dns_constname root = {
{
DNS_NAME_MAGIC,
root.const_ndata, 1, 1,
- DNS_NAMEATTR_READONLY | DNS_NAMEATTR_ABSOLUTE,
+ DNS_NAMEATTR_READONLY | DNS_NAMEATTR_ABSOLUTE,
root.const_offsets, NULL,
{(void *)-1, (void *)-1},
{NULL, NULL}
@@ -220,7 +220,7 @@ compact(dns_name_t *name, unsigned char *offsets);
static inline unsigned int
get_bit(unsigned char *array, unsigned int idx) {
unsigned int byte, shift;
-
+
byte = array[idx / 8];
shift = 7 - (idx % 8);
@@ -230,7 +230,7 @@ get_bit(unsigned char *array, unsigned int idx) {
static inline void
set_bit(unsigned char *array, unsigned int idx, unsigned int bit) {
unsigned int shift, mask;
-
+
shift = 7 - (idx % 8);
mask = 1 << shift;
@@ -250,7 +250,7 @@ dns_label_type(dns_label_t *label) {
REQUIRE(label->length > 0);
REQUIRE(label->base[0] <= 63 ||
label->base[0] == DNS_LABELTYPE_BITSTRING);
-
+
if (label->base[0] <= 63)
return (dns_labeltype_ordinary);
else
@@ -272,7 +272,7 @@ dns_label_countbits(dns_label_t *label) {
count = label->base[1];
if (count == 0)
count = 256;
-
+
return (count);
}
@@ -308,7 +308,7 @@ dns_name_init(dns_name_t *name, unsigned char *offsets) {
/*
* Initialize 'name'.
*/
-
+
name->magic = DNS_NAME_MAGIC;
name->ndata = NULL;
name->length = 0;
@@ -694,7 +694,7 @@ dns_name_compare(const dns_name_t *name1, const dns_name_t *name2) {
* compared the caller must ensure that they are both relative to the
* same domain.
*/
-
+
(void)dns_name_fullcompare(name1, name2, &order, &nlabels, &nbits);
return (order);
@@ -958,12 +958,12 @@ dns_name_getlabel(const dns_name_t *name, unsigned int n, dns_label_t *label) {
/*
* Make 'label' refer to the 'n'th least significant label of 'name'.
*/
-
+
REQUIRE(VALID_NAME(name));
REQUIRE(name->labels > 0);
REQUIRE(n < name->labels);
REQUIRE(label != NULL);
-
+
SETUP_OFFSETS(name, offsets, odata);
label->base = &name->ndata[offsets[n]];
@@ -1139,7 +1139,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
}
REQUIRE(BINDABLE(name));
-
+
INIT_OFFSETS(name, offsets, odata);
offsets[0] = 0;
@@ -1156,7 +1156,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
tbcount = 0;
bitlength = 0;
maxlength = 0;
- kind = ft_init;
+ kind = ft_init;
/*
* Make 'name' empty in case of failure.
@@ -1204,7 +1204,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
state = ft_at;
break;
}
-
+
/* FALLTHROUGH */
case ft_start:
label = ndata;
@@ -1670,7 +1670,7 @@ dns_name_fromtext(dns_name_t *name, isc_buffer_t *source,
}
if ((origin->attributes & DNS_NAMEATTR_ABSOLUTE) != 0)
name->attributes |= DNS_NAMEATTR_ABSOLUTE;
- }
+ }
} else
name->attributes |= DNS_NAMEATTR_ABSOLUTE;
@@ -1855,7 +1855,7 @@ dns_name_totext(dns_name_t *name, isc_boolean_t omit_final_dot,
"Unexpected label type %02x", count);
/* NOTREACHED */
}
-
+
/*
* The following assumes names are absolute. If not, we
* fix things up later. Note that this means that in some
@@ -1884,7 +1884,7 @@ dns_name_downcase(dns_name_t *source, dns_name_t *name, isc_buffer_t *target) {
unsigned char *sndata, *ndata;
unsigned int nlen, count, bytes, labels;
isc_buffer_t buffer;
-
+
/*
* Downcase 'source'.
*/
@@ -2216,10 +2216,10 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source,
hops = 0;
saw_bitstring = ISC_FALSE;
done = ISC_FALSE;
-
+
ndata = isc_buffer_used(target);
nused = 0;
-
+
/*
* Find the maximum number of uncompressed target name
* bytes we are willing to generate. This is the smaller
@@ -2229,10 +2229,10 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source,
nmax = isc_buffer_availablelength(target);
if (nmax > 255)
nmax = 255;
-
+
cdata = isc_buffer_current(source);
cused = 0;
-
+
current = source->current;
biggest_pointer = current;
@@ -2363,7 +2363,7 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source,
isc_buffer_forward(source, cused);
isc_buffer_add(target, name->length);
-
+
return (ISC_R_SUCCESS);
full:
@@ -2379,7 +2379,7 @@ dns_name_fromwire(dns_name_t *name, isc_buffer_t *source,
* big enough buffer.
*/
return (ISC_R_NOSPACE);
-
+
}
isc_result_t
@@ -3063,13 +3063,13 @@ dns_name_digest(dns_name_t *name, dns_digestfunc_t digest, void *arg) {
dns_name_init(&downname, NULL);
isc_buffer_init(&buffer, data, sizeof(data));
-
+
result = dns_name_downcase(name, &downname, &buffer);
if (result != ISC_R_SUCCESS)
return (result);
-
+
isc_buffer_usedregion(&buffer, &r);
-
+
return ((digest)(arg, &r));
}
@@ -3114,7 +3114,7 @@ dns_name_format(dns_name_t *name, char *cp, unsigned int size) {
isc_buffer_t buf;
REQUIRE(size > 0);
-
+
/*
* Leave room for null termination after buffer.
*/
diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c
index 3a8bb01725..f1d4358174 100644
--- a/lib/dns/ncache.c
+++ b/lib/dns/ncache.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ncache.c,v 1.20 2000/07/27 09:46:17 tale Exp $ */
+/* $Id: ncache.c,v 1.21 2000/08/01 01:22:35 tale Exp $ */
#include
@@ -336,7 +336,7 @@ dns_ncache_towire(dns_rdataset_t *rdataset, dns_compress_t *cctx,
*/
rdlen = *target;
isc_buffer_add(target, 2);
-
+
/*
* Write the rdata.
*/
@@ -360,7 +360,7 @@ dns_ncache_towire(dns_rdataset_t *rdataset, dns_compress_t *cctx,
} while (remaining.length > 0);
*countp = count;
-
+
return (ISC_R_SUCCESS);
rollback:
diff --git a/lib/dns/nxt.c b/lib/dns/nxt.c
index e4c0e95f3b..63bb7134c3 100644
--- a/lib/dns/nxt.c
+++ b/lib/dns/nxt.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: nxt.c,v 1.19 2000/07/27 09:46:18 tale Exp $ */
+/* $Id: nxt.c,v 1.20 2000/08/01 01:22:36 tale Exp $ */
#include
@@ -123,7 +123,7 @@ dns_buildnxtrdata(dns_db_t *db, dns_dbversion_t *version,
r.length += ((max_type + 7) / 8);
INSIST(r.length <= DNS_NXT_BUFFERSIZE);
- dns_rdata_fromregion(rdata,
+ dns_rdata_fromregion(rdata,
dns_db_class(db),
dns_rdatatype_nxt,
&r);
@@ -141,13 +141,13 @@ dns_buildnxt(dns_db_t *db, dns_dbversion_t *version, dns_dbnode_t *node,
unsigned char data[DNS_NXT_BUFFERSIZE];
dns_rdatalist_t rdatalist;
dns_rdataset_t rdataset;
-
+
dns_rdataset_init(&rdataset);
result = dns_buildnxtrdata(db, version, node,
target, data, &rdata);
check_result(result, "dns_buildnxtrdata");
-
+
rdatalist.rdclass = dns_rdataclass_in;
rdatalist.type = dns_rdatatype_nxt;
rdatalist.covers = 0;
diff --git a/lib/dns/peer.c b/lib/dns/peer.c
index 81f4547ace..f955ccf8d1 100644
--- a/lib/dns/peer.c
+++ b/lib/dns/peer.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: peer.c,v 1.9 2000/07/27 09:46:20 tale Exp $ */
+/* $Id: peer.c,v 1.10 2000/08/01 01:22:37 tale Exp $ */
#include
@@ -45,21 +45,21 @@ dns_peer_delete(dns_peer_t **peer);
isc_result_t
dns_peerlist_new(isc_mem_t *mem, dns_peerlist_t **list) {
dns_peerlist_t *l;
-
+
REQUIRE(list != NULL);
-
+
l = isc_mem_get(mem, sizeof *l);
if (l == NULL) {
return (ISC_R_NOMEMORY);
}
-
+
ISC_LIST_INIT(l->elements);
l->mem = mem;
l->refs = 1;
l->magic = DNS_PEERLIST_MAGIC;
-
+
*list = l;
-
+
return (ISC_R_SUCCESS);
}
@@ -71,7 +71,7 @@ dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target) {
REQUIRE(*target == NULL);
source->refs++;
-
+
ENSURE(source->refs != 0xffffffffU);
*target = source;
@@ -80,7 +80,7 @@ dns_peerlist_attach(dns_peerlist_t *source, dns_peerlist_t **target) {
void
dns_peerlist_detach(dns_peerlist_t **list) {
dns_peerlist_t *plist;
-
+
REQUIRE(list != NULL);
REQUIRE(*list != NULL);
REQUIRE(DNS_PEERLIST_VALID(*list));
@@ -105,11 +105,11 @@ dns_peerlist_delete(dns_peerlist_t **list) {
REQUIRE(list != NULL);
REQUIRE(DNS_PEERLIST_VALID(*list));
-
+
l = *list;
REQUIRE(l->refs == 0);
-
+
server = ISC_LIST_HEAD(l->elements);
while (server != NULL) {
stmp = ISC_LIST_NEXT(server, next);
@@ -118,15 +118,15 @@ dns_peerlist_delete(dns_peerlist_t **list) {
if (r != ISC_R_SUCCESS) {
return (r);
}
-
+
server = stmp;
}
-
+
l->magic = 0;
isc_mem_put(l->mem, l, sizeof *l);
-
+
*list = NULL;
-
+
return (ISC_R_SUCCESS);
}
@@ -135,36 +135,36 @@ dns_peerlist_addpeer(dns_peerlist_t *peers, dns_peer_t *peer) {
dns_peer_t *p = NULL;
dns_peer_attach(peer, &p);
-
+
ISC_LIST_APPEND(peers->elements, peer, next);
}
-
+
isc_result_t
dns_peerlist_peerbyaddr(dns_peerlist_t *servers,
isc_netaddr_t *addr, dns_peer_t **retval)
{
dns_peer_t *server;
isc_result_t res;
-
+
REQUIRE(retval != NULL);
REQUIRE(DNS_PEERLIST_VALID(servers));
-
+
server = ISC_LIST_HEAD(servers->elements);
while (server != NULL) {
if (isc_netaddr_equal(addr, &server->address)) {
break;
}
-
+
server = ISC_LIST_NEXT(server, next);
}
-
+
if (server != NULL) {
*retval = server;
res = ISC_R_SUCCESS;
} else {
res = ISC_R_NOTFOUND;
}
-
+
return (res);
}
@@ -180,18 +180,18 @@ dns_peerlist_currpeer(dns_peerlist_t *peers, dns_peer_t **retval) {
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
dns_peer_new(isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr) {
dns_peer_t *peer;
-
+
REQUIRE(peerptr != NULL);
-
+
peer = isc_mem_get(mem, sizeof *peer);
if (peer == NULL) {
return (ISC_R_NOMEMORY);
}
-
+
peer->magic = DNS_PEER_MAGIC;
peer->address = *addr;
peer->mem = mem;
@@ -202,13 +202,13 @@ dns_peer_new(isc_mem_t *mem, isc_netaddr_t *addr, dns_peer_t **peerptr) {
peer->provide_ixfr = ISC_FALSE;
peer->key = NULL;
peer->refs = 1;
-
+
memset(&peer->bitflags, 0x0, sizeof peer->bitflags);
-
+
ISC_LINK_INIT(peer, next);
-
+
*peerptr = peer;
-
+
return (ISC_R_SUCCESS);
}
@@ -219,7 +219,7 @@ dns_peer_attach(dns_peer_t *source, dns_peer_t **target) {
REQUIRE(*target == NULL);
source->refs++;
-
+
ENSURE(source->refs != 0xffffffffU);
*target = source;
@@ -230,7 +230,7 @@ dns_peer_attach(dns_peer_t *source, dns_peer_t **target) {
isc_result_t
dns_peer_detach(dns_peer_t **peer) {
dns_peer_t *p;
-
+
REQUIRE(peer != NULL);
REQUIRE(*peer != NULL);
REQUIRE(DNS_PEER_VALID(*peer));
@@ -253,41 +253,41 @@ static isc_result_t
dns_peer_delete(dns_peer_t **peer) {
dns_peer_t *p;
isc_mem_t *mem;
-
+
REQUIRE(peer != NULL);
REQUIRE(DNS_PEER_VALID(*peer));
-
+
p = *peer;
REQUIRE(p->refs == 0);
-
+
mem = p->mem;
p->mem = NULL;
p->magic = 0;
-
+
if (p->key != NULL) {
dns_name_free(p->key, mem);
isc_mem_put(mem, p->key, sizeof(dns_name_t));
}
-
+
isc_mem_put(mem, p, sizeof *p);
-
+
*peer = NULL;
-
+
return (ISC_R_SUCCESS);
}
isc_result_t
dns_peer_setbogus(dns_peer_t *peer, isc_boolean_t newval) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_PEER_VALID(peer));
-
+
existed = DNS_BIT_CHECK(BOGUS_BIT, &peer->bitflags);
-
+
peer->bogus = newval;
DNS_BIT_SET(BOGUS_BIT, &peer->bitflags);
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -295,7 +295,7 @@ isc_result_t
dns_peer_getbogus(dns_peer_t *peer, isc_boolean_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
-
+
if (DNS_BIT_CHECK(BOGUS_BIT, &peer->bitflags)) {
*retval = peer->bogus;
return (ISC_R_SUCCESS);
@@ -307,14 +307,14 @@ dns_peer_getbogus(dns_peer_t *peer, isc_boolean_t *retval) {
isc_result_t
dns_peer_setprovideixfr(dns_peer_t *peer, isc_boolean_t newval) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_PEER_VALID(peer));
-
+
existed = DNS_BIT_CHECK(PROVIDE_IXFR_BIT, &peer->bitflags);
-
+
peer->provide_ixfr = newval;
DNS_BIT_SET(PROVIDE_IXFR_BIT, &peer->bitflags);
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -322,7 +322,7 @@ isc_result_t
dns_peer_getprovideixfr(dns_peer_t *peer, isc_boolean_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
-
+
if (DNS_BIT_CHECK(PROVIDE_IXFR_BIT, &peer->bitflags)) {
*retval = peer->provide_ixfr;
return (ISC_R_SUCCESS);
@@ -334,14 +334,14 @@ dns_peer_getprovideixfr(dns_peer_t *peer, isc_boolean_t *retval) {
isc_result_t
dns_peer_setrequestixfr(dns_peer_t *peer, isc_boolean_t newval) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_PEER_VALID(peer));
-
+
existed = DNS_BIT_CHECK(REQUEST_IXFR_BIT, &peer->bitflags);
-
+
peer->request_ixfr = newval;
DNS_BIT_SET(REQUEST_IXFR_BIT, &peer->bitflags);
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -349,7 +349,7 @@ isc_result_t
dns_peer_getrequestixfr(dns_peer_t *peer, isc_boolean_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
-
+
if (DNS_BIT_CHECK(REQUEST_IXFR_BIT, &peer->bitflags)) {
*retval = peer->request_ixfr;
return (ISC_R_SUCCESS);
@@ -360,14 +360,14 @@ dns_peer_getrequestixfr(dns_peer_t *peer, isc_boolean_t *retval) {
isc_result_t
dns_peer_settransfers(dns_peer_t *peer, isc_int32_t newval) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_PEER_VALID(peer));
-
+
existed = DNS_BIT_CHECK(TRANSFERS_BIT, &peer->bitflags);
-
+
peer->transfers = newval;
DNS_BIT_SET(TRANSFERS_BIT, &peer->bitflags);
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -375,7 +375,7 @@ isc_result_t
dns_peer_gettransfers(dns_peer_t *peer, isc_int32_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
-
+
if (DNS_BIT_CHECK(TRANSFERS_BIT, &peer->bitflags)) {
*retval = peer->transfers;
return (ISC_R_SUCCESS);
@@ -387,15 +387,15 @@ dns_peer_gettransfers(dns_peer_t *peer, isc_int32_t *retval) {
isc_result_t
dns_peer_settransferformat(dns_peer_t *peer, dns_transfer_format_t newval) {
isc_boolean_t existed;
-
+
REQUIRE(DNS_PEER_VALID(peer));
-
+
existed = DNS_BIT_CHECK(SERVER_TRANSFER_FORMAT_BIT,
&peer->bitflags);
-
+
peer->transfer_format = newval;
DNS_BIT_SET(SERVER_TRANSFER_FORMAT_BIT, &peer->bitflags);
-
+
return (existed ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
@@ -403,7 +403,7 @@ isc_result_t
dns_peer_gettransferformat(dns_peer_t *peer, dns_transfer_format_t *retval) {
REQUIRE(DNS_PEER_VALID(peer));
REQUIRE(retval != NULL);
-
+
if (DNS_BIT_CHECK(SERVER_TRANSFER_FORMAT_BIT, &peer->bitflags)) {
*retval = peer->transfer_format;
return (ISC_R_SUCCESS);
@@ -420,7 +420,7 @@ dns_peer_getkey(dns_peer_t *peer, dns_name_t **retval) {
if (peer->key != NULL) {
*retval = peer->key;
}
-
+
return (peer->key == NULL ? ISC_R_NOTFOUND : ISC_R_SUCCESS);
}
@@ -436,6 +436,6 @@ dns_peer_setkey(dns_peer_t *peer, dns_name_t **keyval) {
peer->key = *keyval;
*keyval = NULL;
-
+
return (exists ? ISC_R_EXISTS : ISC_R_SUCCESS);
}
diff --git a/lib/dns/rbt.c b/lib/dns/rbt.c
index 270e5d8979..75a5363535 100644
--- a/lib/dns/rbt.c
+++ b/lib/dns/rbt.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbt.c,v 1.89 2000/07/31 23:27:24 tale Exp $ */
+/* $Id: rbt.c,v 1.90 2000/08/01 01:22:38 tale Exp $ */
/* Principal Authors: DCL */
@@ -137,7 +137,7 @@ do { \
* A little something to help out in GDB.
*/
dns_name_t Name(dns_rbtnode_t *node);
-dns_name_t
+dns_name_t
Name(dns_rbtnode_t *node) {
dns_name_t name;
@@ -392,7 +392,7 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
do {
current = child;
- INSIST((IS_ROOT(current) &&
+ INSIST((IS_ROOT(current) &&
chain.ancestors[chain.ancestor_count - 1] == NULL) ||
(! IS_ROOT(current) &&
chain.ancestors[chain.ancestor_count - 1] ==
@@ -440,7 +440,7 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
/*
* All of the existing labels are in common,
* so the new name is in a subtree.
- * Whack off the common labels for the
+ * Whack off the common labels for the
* not-in-common part to be searched for
* in the next level.
*/
@@ -451,7 +451,7 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
if (result != ISC_R_SUCCESS)
break;
-
+
/*
* Follow the down pointer (possibly NULL).
*/
@@ -486,7 +486,7 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
* XXX DCL need a better error result?
*/
if (chain.level_count ==
- (sizeof(chain.levels) /
+ (sizeof(chain.levels) /
sizeof(*chain.levels))) {
result = ISC_R_NOSPACE;
break;
@@ -510,7 +510,7 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
if (result != ISC_R_SUCCESS)
break;
- /*
+ /*
* Reproduce the tree attributes of the
* current node.
*/
@@ -648,13 +648,13 @@ dns_rbt_addnode(dns_rbt_t *rbt, dns_name_t *name, dns_rbtnode_t **nodep) {
* result != ISC_R_SUCCESS, which
* is tested after the loop ends).
*/
- result = dns_name_split(add_name,
+ result = dns_name_split(add_name,
common_labels,
common_bits,
add_name,
NULL);
-
+
break;
}
@@ -731,7 +731,7 @@ dns_rbt_findnode(dns_rbt_t *rbt, dns_name_t *name, dns_name_t *foundname,
REQUIRE((options & (DNS_RBTFIND_NOEXACT | DNS_RBTFIND_NOPREDECESSOR))
!= (DNS_RBTFIND_NOEXACT | DNS_RBTFIND_NOPREDECESSOR));
- /*
+ /*
* If there is a chain it needs to appear to be in a sane state,
* otherwise a chain is still needed to generate foundname and
* callback_name.
@@ -1097,7 +1097,7 @@ dns_rbt_findname(dns_rbt_t *rbt, dns_name_t *name, unsigned int options,
*data = DATA(node);
else
result = ISC_R_NOTFOUND;
-
+
return (result);
}
@@ -1185,7 +1185,7 @@ dns_rbt_deletenode(dns_rbt_t *rbt, dns_rbtnode_t *node, isc_boolean_t recurse)
}
}
- /*
+ /*
* Note the node that points to the level of the node that is being
* deleted. If the deleted node is the top level, parent will be set
* to NULL.
@@ -1244,12 +1244,12 @@ create_node(isc_mem_t *mctx, dns_name_t *name, dns_rbtnode_t **nodep) {
labels = dns_name_countlabels(name);
ENSURE(labels > 0);
- /*
+ /*
* Allocate space for the node structure, the name, and the offsets.
*/
node = (dns_rbtnode_t *)isc_mem_get(mctx, sizeof(*node) +
region.length + labels);
-
+
if (node == NULL)
return (ISC_R_NOMEMORY);
@@ -1504,7 +1504,7 @@ dns_rbt_addonlevel(dns_rbtnode_t *node,
MAKE_RED(node);
depth = chain->ancestor_count - 1;
-
+
while (node != root && IS_RED(chain->ancestors[depth])) {
INSIST(depth > 0);
@@ -1578,7 +1578,7 @@ dns_rbt_deletefromlevel(dns_rbtnode_t *delete, dns_rbtnode_t **rootp) {
* Verify that the parent history is (apparently) correct.
*/
INSIST((IS_ROOT(delete) && *rootp == delete) ||
- (! IS_ROOT(delete) &&
+ (! IS_ROOT(delete) &&
(LEFT(PARENT(delete)) == delete ||
RIGHT(PARENT(delete)) == delete)));
@@ -1709,7 +1709,7 @@ dns_rbt_deletefromlevel(dns_rbtnode_t *delete, dns_rbtnode_t **rootp) {
*rootp = child;
IS_ROOT(child) = ISC_TRUE;
PARENT(child) = PARENT(delete);
- }
+ }
/*
* Fix color violations.
@@ -2026,7 +2026,7 @@ dns_rbtnodechain_prev(dns_rbtnodechain_t *chain, dns_name_t *name,
break;
}
}
- }
+ }
if (predecessor != NULL) {
if (DOWN(predecessor) != NULL) {
diff --git a/lib/dns/rbtdb.c b/lib/dns/rbtdb.c
index 07dbb4780a..5046cf206a 100644
--- a/lib/dns/rbtdb.c
+++ b/lib/dns/rbtdb.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb.c,v 1.112 2000/07/27 09:46:22 tale Exp $ */
+/* $Id: rbtdb.c,v 1.113 2000/08/01 01:22:39 tale Exp $ */
/*
* Principal Author: Bob Halley
@@ -352,7 +352,7 @@ static inline void
maybe_free_rbtdb(dns_rbtdb_t *rbtdb, isc_boolean_t set_exiting) {
isc_boolean_t want_free = ISC_TRUE;
unsigned int i;
-
+
/* XXX check for open versions here */
/*
@@ -424,7 +424,7 @@ allocate_version(isc_mem_t *mctx, rbtdb_serial_t serial,
version->commit_ok = ISC_FALSE;
ISC_LIST_INIT(version->changed_list);
ISC_LINK_INIT(version, link);
-
+
return (version);
}
@@ -809,7 +809,7 @@ closeversion(dns_db_t *db, dns_dbversion_t **versionp, isc_boolean_t commit) {
rbtdb_changed_t *changed, *next_changed;
rbtdb_serial_t serial, least_serial;
dns_rbtnode_t *rbtnode;
-
+
REQUIRE(VALID_RBTDB(rbtdb));
version = (rbtdb_version_t *)*versionp;
@@ -1175,7 +1175,7 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
* count by one before storing it.
*/
count--;
- rdataset->private4 = (void *)count;
+ rdataset->private4 = (void *)count;
rdataset->private5 = raw;
}
}
@@ -1338,7 +1338,7 @@ find_wildcard(rbtdb_search_t *search, dns_rbtnode_t **nodep) {
active = ISC_TRUE;
else
active = ISC_FALSE;
-
+
if (node->wild)
wild = ISC_TRUE;
else
@@ -1408,7 +1408,7 @@ find_wildcard(rbtdb_search_t *search, dns_rbtnode_t **nodep) {
break;
}
}
-
+
if (active) {
/*
* The level node is active. Any wildcarding
@@ -1672,7 +1672,7 @@ zone_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
result = dns_name_concatenate(name, NULL,
foundname, NULL);
if (result != ISC_R_SUCCESS)
- goto tree_exit;
+ goto tree_exit;
wild = ISC_TRUE;
goto found;
}
@@ -1733,7 +1733,7 @@ zone_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
*/
LOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
found = NULL;
foundsig = NULL;
sigtype = RBTDB_RDATATYPE_VALUE(dns_rdatatype_sig, type);
@@ -1994,7 +1994,7 @@ zone_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
node_exit:
UNLOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
tree_exit:
RWUNLOCK(&search.rbtdb->tree_lock, isc_rwlocktype_read);
@@ -2057,7 +2057,7 @@ cache_zonecut_callback(dns_rbtnode_t *node, dns_name_t *name, void *arg) {
(void)name;
LOCK(&(search->rbtdb->node_locks[node->locknum].lock));
-
+
/*
* Look for a DNAME rdataset.
*/
@@ -2136,7 +2136,7 @@ find_deepest_zonecut(rbtdb_search_t *search, dns_rbtnode_t *node,
done = ISC_FALSE;
do {
LOCK(&(rbtdb->node_locks[node->locknum].lock));
-
+
/*
* Look for NS and SIG NS rdatasets.
*/
@@ -2326,7 +2326,7 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
*/
LOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
found = NULL;
foundsig = NULL;
sigtype = RBTDB_RDATATYPE_VALUE(dns_rdatatype_sig, type);
@@ -2518,7 +2518,7 @@ cache_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
node_exit:
UNLOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
tree_exit:
RWUNLOCK(&search.rbtdb->tree_lock, isc_rwlocktype_read);
@@ -2584,7 +2584,7 @@ cache_findzonecut(dns_db_t *db, dns_name_t *name, unsigned int options,
*/
LOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
found = NULL;
foundsig = NULL;
header_prev = NULL;
@@ -2641,7 +2641,7 @@ cache_findzonecut(dns_db_t *db, dns_name_t *name, unsigned int options,
*/
UNLOCK(&(search.rbtdb->node_locks[node->locknum].lock));
goto find_ns;
- }
+ }
if (nodep != NULL) {
new_reference(search.rbtdb, node);
@@ -2654,7 +2654,7 @@ cache_findzonecut(dns_db_t *db, dns_name_t *name, unsigned int options,
sigrdataset);
UNLOCK(&(search.rbtdb->node_locks[node->locknum].lock));
-
+
tree_exit:
RWUNLOCK(&search.rbtdb->tree_lock, isc_rwlocktype_read);
@@ -3019,7 +3019,7 @@ allrdatasets(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
iterator->common.now = now;
LOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
-
+
INSIST(rbtnode->references > 0);
rbtnode->references++;
INSIST(rbtnode->references != 0);
@@ -3199,7 +3199,7 @@ add(dns_rbtdb_t *rbtdb, dns_rbtnode_t *rbtnode, rbtdb_version_t *rbtversion,
addedrdataset);
return (DNS_R_UNCHANGED);
}
-
+
/*
* Don't merge if a nonexistent rdataset is involved.
*/
@@ -3330,7 +3330,7 @@ delegating_type(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
else
return (ISC_FALSE);
} else if (type == dns_rdatatype_dname ||
- (type == dns_rdatatype_ns &&
+ (type == dns_rdatatype_ns &&
(node != rbtdb->origin_node || IS_STUB(rbtdb))))
return (ISC_TRUE);
return (ISC_FALSE);
@@ -3388,7 +3388,7 @@ addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
RWLOCK(&rbtdb->tree_lock, isc_rwlocktype_write);
} else
delegating = ISC_FALSE;
-
+
LOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
result = add(rbtdb, rbtnode, rbtversion, newheader, options, ISC_FALSE,
@@ -3664,7 +3664,7 @@ static isc_result_t
beginload(dns_db_t *db, dns_addrdatasetfunc_t *addp, dns_dbload_t **dbloadp) {
rbtdb_load_t *loadctx;
dns_rbtdb_t *rbtdb;
-
+
rbtdb = (dns_rbtdb_t *)db;
REQUIRE(VALID_RBTDB(rbtdb));
@@ -3713,7 +3713,7 @@ endload(dns_db_t *db, dns_dbload_t **dbloadp) {
rbtdb->attributes |= RBTDB_ATTR_LOADED;
UNLOCK(&rbtdb->lock);
-
+
/*
* If there's a NXT rdataset at the zone origin, we consider
* the zone secure.
@@ -3722,7 +3722,7 @@ endload(dns_db_t *db, dns_dbload_t **dbloadp) {
for (header = rbtdb->origin_node->data;
header != NULL;
header = header->next) {
- if (header->type == dns_rdatatype_nxt &&
+ if (header->type == dns_rdatatype_nxt &&
!IGNORE(header))
{
rbtdb->secure = ISC_TRUE;
@@ -3746,7 +3746,7 @@ dump(dns_db_t *db, dns_dbversion_t *version, const char *filename) {
REQUIRE(VALID_RBTDB(rbtdb));
- return (dns_master_dump(rbtdb->common.mctx, db, version,
+ return (dns_master_dump(rbtdb->common.mctx, db, version,
&dns_master_style_default,
filename));
}
@@ -3889,7 +3889,7 @@ dns_rbtdb_create
if (rbtdb->node_lock_count == 0)
rbtdb->node_lock_count = DEFAULT_NODE_LOCK_COUNT;
- rbtdb->node_locks = isc_mem_get(mctx, rbtdb->node_lock_count *
+ rbtdb->node_locks = isc_mem_get(mctx, rbtdb->node_lock_count *
sizeof (rbtdb_nodelock_t));
for (i = 0; i < (int)(rbtdb->node_lock_count); i++) {
result = isc_mutex_init(&rbtdb->node_locks[i].lock);
@@ -3900,7 +3900,7 @@ dns_rbtdb_create
i--;
}
isc_mem_put(mctx, rbtdb->node_locks,
- rbtdb->node_lock_count *
+ rbtdb->node_lock_count *
sizeof (rbtdb_nodelock_t));
isc_rwlock_destroy(&rbtdb->tree_lock);
isc_mutex_destroy(&rbtdb->lock);
@@ -3992,7 +3992,7 @@ dns_rbtdb_create
ISC_LIST_INIT(rbtdb->open_versions);
isc_ondestroy_init(&rbtdb->common.ondest);
-
+
rbtdb->common.magic = DNS_DB_MAGIC;
rbtdb->common.impmagic = RBTDB_MAGIC;
@@ -4112,7 +4112,7 @@ rdatasetiter_destroy(dns_rdatasetiter_t **iteratorp) {
detachnode(rbtiterator->common.db, &rbtiterator->common.node);
isc_mem_put(rbtiterator->common.db->mctx, rbtiterator,
sizeof *rbtiterator);
-
+
*iteratorp = NULL;
}
@@ -4234,7 +4234,7 @@ rdatasetiter_current(dns_rdatasetiter_t *iterator, dns_rdataset_t *rdataset) {
header = rbtiterator->current;
REQUIRE(header != NULL);
-
+
LOCK(&rbtdb->node_locks[rbtnode->locknum].lock);
bind_rdataset(rbtdb, rbtnode, header, rbtiterator->common.now,
@@ -4301,7 +4301,7 @@ dbiterator_first(dns_dbiterator_t *iterator) {
rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
dns_name_t *name, *origin;
-
+
if (rbtdbiter->result != ISC_R_SUCCESS &&
rbtdbiter->result != ISC_R_NOMORE)
return (rbtdbiter->result);
@@ -4346,7 +4346,7 @@ dbiterator_last(dns_dbiterator_t *iterator) {
rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
dns_name_t *name, *origin;
-
+
if (rbtdbiter->result != ISC_R_SUCCESS &&
rbtdbiter->result != ISC_R_NOMORE)
return (rbtdbiter->result);
@@ -4391,7 +4391,7 @@ dbiterator_seek(dns_dbiterator_t *iterator, dns_name_t *name) {
rbtdb_dbiterator_t *rbtdbiter = (rbtdb_dbiterator_t *)iterator;
dns_rbtdb_t *rbtdb = (dns_rbtdb_t *)iterator->db;
dns_name_t *iname, *origin;
-
+
if (rbtdbiter->result != ISC_R_SUCCESS &&
rbtdbiter->result != ISC_R_NOMORE)
return (rbtdbiter->result);
@@ -4522,7 +4522,7 @@ dbiterator_current(dns_dbiterator_t *iterator, dns_dbnode_t **nodep,
result = DNS_R_NEWORIGIN;
} else
result = ISC_R_SUCCESS;
-
+
LOCK(&rbtdb->node_locks[node->locknum].lock);
new_reference(rbtdb, node);
UNLOCK(&rbtdb->node_locks[node->locknum].lock);
diff --git a/lib/dns/rbtdb.h b/lib/dns/rbtdb.h
index 53e8ffa782..891ac245cc 100644
--- a/lib/dns/rbtdb.h
+++ b/lib/dns/rbtdb.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb.h,v 1.10 2000/07/27 09:46:23 tale Exp $ */
+/* $Id: rbtdb.h,v 1.11 2000/08/01 01:22:41 tale Exp $ */
#ifndef DNS_RBTDB_H
#define DNS_RBTDB_H 1
diff --git a/lib/dns/rbtdb64.c b/lib/dns/rbtdb64.c
index afcad92f62..816fcd8f91 100644
--- a/lib/dns/rbtdb64.c
+++ b/lib/dns/rbtdb64.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb64.c,v 1.4 2000/07/27 09:46:25 tale Exp $ */
+/* $Id: rbtdb64.c,v 1.5 2000/08/01 01:22:42 tale Exp $ */
#define DNS_RBTDB_VERSION64 1
#include "rbtdb.c"
diff --git a/lib/dns/rbtdb64.h b/lib/dns/rbtdb64.h
index fa18ba9e7a..8a8c60b7be 100644
--- a/lib/dns/rbtdb64.h
+++ b/lib/dns/rbtdb64.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rbtdb64.h,v 1.9 2000/07/27 09:46:26 tale Exp $ */
+/* $Id: rbtdb64.h,v 1.10 2000/08/01 01:22:43 tale Exp $ */
#ifndef DNS_RBTDB64_H
#define DNS_RBTDB64_H 1
diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c
index d70f91733c..8899d117cd 100644
--- a/lib/dns/rdata.c
+++ b/lib/dns/rdata.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdata.c,v 1.104 2000/07/27 09:46:27 tale Exp $ */
+/* $Id: rdata.c,v 1.105 2000/08/01 01:22:44 tale Exp $ */
#include
#include
@@ -76,7 +76,7 @@
#define ARGS_DIGEST dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg
/*
- * Context structure for the totext_ functions.
+ * Context structure for the totext_ functions.
* Contains formatting options for rdata-to-text
* conversion.
*/
@@ -307,7 +307,7 @@ static struct keyflag {
{ "SIG13", 0x000D, 0x000F },
{ "SIG14", 0x000E, 0x000F },
{ "SIG15", 0x000F, 0x000F },
- { NULL, 0, 0 }
+ { NULL, 0, 0 }
};
/***
@@ -368,7 +368,7 @@ void
dns_rdata_fromregion(dns_rdata_t *rdata, dns_rdataclass_t rdclass,
dns_rdatatype_t type, isc_region_t *r)
{
-
+
REQUIRE(rdata != NULL);
REQUIRE(r != NULL);
@@ -444,10 +444,10 @@ dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx,
st = *target;
TOWIRESWITCH
-
+
if (use_default) {
isc_buffer_availableregion(target, &tr);
- if (tr.length < rdata->length)
+ if (tr.length < rdata->length)
return (ISC_R_NOSPACE);
memcpy(tr.base, rdata->data, rdata->length);
isc_buffer_add(target, rdata->length);
@@ -562,7 +562,7 @@ rdata_totext(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
{
isc_result_t result = ISC_R_NOTIMPLEMENTED;
isc_boolean_t use_default = ISC_FALSE;
-
+
REQUIRE(rdata != NULL);
REQUIRE(tctx->origin == NULL ||
dns_name_isabsolute(tctx->origin) == ISC_TRUE);
@@ -720,7 +720,7 @@ dns_rdatatype_attributes(dns_rdatatype_t type)
return (typeattr[type].flags);
}
-#define NUMBERSIZE sizeof("037777777777") /* 2^32-1 octal + NUL */
+#define NUMBERSIZE sizeof("037777777777") /* 2^32-1 octal + NUL */
static isc_result_t
dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source,
@@ -740,7 +740,7 @@ dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source,
*/
strncpy(buffer, source->base, NUMBERSIZE);
INSIST(buffer[source->length] == '\0');
-
+
n = strtoul(buffer, &e, 10);
if (*e == 0) {
if (n > max)
@@ -752,9 +752,9 @@ dns_mnemonic_fromtext(unsigned int *valuep, isc_textregion_t *source,
* It was not a number after all; fall through.
*/
}
-
+
for (i = 0; table[i].name != NULL; i++) {
- unsigned int n;
+ unsigned int n;
n = strlen(table[i].name);
if (n == source->length &&
strncasecmp(source->base, table[i].name, n) == 0) {
@@ -906,7 +906,7 @@ dns_rcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) {
isc_result_t
dns_rcode_totext(dns_rcode_t rcode, isc_buffer_t *target) {
- return (dns_mnemonic_totext(rcode, target, rcodes));
+ return (dns_mnemonic_totext(rcode, target, rcodes));
}
isc_result_t
@@ -919,7 +919,7 @@ dns_tsigrcode_fromtext(dns_rcode_t *rcodep, isc_textregion_t *source) {
isc_result_t
dns_tsigrcode_totext(dns_rcode_t rcode, isc_buffer_t *target) {
- return (dns_mnemonic_totext(rcode, target, tsigrcodes));
+ return (dns_mnemonic_totext(rcode, target, tsigrcodes));
}
isc_result_t
@@ -928,11 +928,11 @@ dns_cert_fromtext(dns_cert_t *certp, isc_textregion_t *source) {
RETERR(dns_mnemonic_fromtext(&value, source, certs, 0xffff));
*certp = value;
return (ISC_R_SUCCESS);
-}
+}
isc_result_t
dns_cert_totext(dns_cert_t cert, isc_buffer_t *target) {
- return (dns_mnemonic_totext(cert, target, certs));
+ return (dns_mnemonic_totext(cert, target, certs));
}
isc_result_t
@@ -979,7 +979,7 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source)
*/
strncpy(buffer, source->base, NUMBERSIZE);
INSIST(buffer[source->length] == '\0');
-
+
n = strtoul(buffer, &e, 0); /* Allow hex/octal. */
if (*e == 0) {
if (n > 0xffff)
@@ -990,10 +990,10 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source)
/* It was not a number after all; fall through. */
}
- text = source->base;
+ text = source->base;
end = source->base + source->length;
value = mask = 0;
-
+
while (text < end) {
struct keyflag *p;
unsigned int len;
@@ -1013,7 +1013,7 @@ dns_keyflags_fromtext(dns_keyflags_t *flagsp, isc_textregion_t *source)
if ((mask & p->mask) != 0)
warn("overlapping key flags");
#endif
- mask |= p->mask;
+ mask |= p->mask;
text += len;
if (delim != NULL)
text++; /* Skip "|" */
@@ -1134,7 +1134,7 @@ txt_fromtext(isc_textregion_t *source, isc_buffer_t *target) {
continue;
}
escape = ISC_FALSE;
- if (nrem == 0)
+ if (nrem == 0)
return (ISC_R_NOSPACE);
*t++ = c;
nrem--;
@@ -1158,7 +1158,7 @@ txt_fromwire(isc_buffer_t *source, isc_buffer_t *target) {
n = *sregion.base + 1;
if (n > sregion.length)
return (ISC_R_UNEXPECTEDEND);
-
+
isc_buffer_availableregion(target, &tregion);
if (n > tregion.length)
return (ISC_R_NOSPACE);
@@ -1184,7 +1184,7 @@ name_prefix(dns_name_t *name, dns_name_t *origin, dns_name_t *target) {
l1 = dns_name_countlabels(name);
l2 = dns_name_countlabels(origin);
-
+
if (l1 == l2)
goto return_false;
@@ -1271,7 +1271,7 @@ name_tobuffer(dns_name_t *name, isc_buffer_t *target) {
static isc_uint32_t
uint32_fromregion(isc_region_t *region) {
unsigned long value;
-
+
REQUIRE(region->length >= 4);
value = region->base[0] << 24;
value |= region->base[1] << 16;
@@ -1282,7 +1282,7 @@ uint32_fromregion(isc_region_t *region) {
static isc_uint16_t
uint16_fromregion(isc_region_t *region) {
-
+
REQUIRE(region->length >= 2);
return ((region->base[0] << 8) | region->base[1]);
@@ -1290,7 +1290,7 @@ uint16_fromregion(isc_region_t *region) {
static isc_uint8_t
uint8_fromregion(isc_region_t *region) {
-
+
REQUIRE(region->length >= 1);
return (region->base[0]);
@@ -1303,7 +1303,7 @@ gettoken(isc_lex_t *lexer, isc_token_t *token, isc_tokentype_t expect,
unsigned int options = ISC_LEXOPT_EOL | ISC_LEXOPT_EOF |
ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE;
isc_result_t result;
-
+
if (expect == isc_tokentype_qstring)
options |= ISC_LEXOPT_QSTRING;
else if (expect == isc_tokentype_number)
@@ -1322,7 +1322,7 @@ gettoken(isc_lex_t *lexer, isc_token_t *token, isc_tokentype_t expect,
isc_result_totext(result));
return (ISC_R_UNEXPECTED);
}
- if (eol && ((token->type == isc_tokentype_eol) ||
+ if (eol && ((token->type == isc_tokentype_eol) ||
(token->type == isc_tokentype_eof)))
return (ISC_R_SUCCESS);
if (token->type == isc_tokentype_string &&
@@ -1435,7 +1435,7 @@ static isc_result_t putbyte(int c, isc_buffer_t *, struct state *state);
static isc_result_t byte_btoa(int c, isc_buffer_t *, struct state *state);
/*
- * Decode ASCII-encoded byte c into binary representation and
+ * Decode ASCII-encoded byte c into binary representation and
* place into *bufp, advancing bufp.
*/
static isc_result_t
@@ -1597,8 +1597,8 @@ byte_btoa(int c, isc_buffer_t *target, struct state *state) {
} else {
register int tmp = 0;
register isc_int32_t tmpword = word;
-
- if (tmpword < 0) {
+
+ if (tmpword < 0) {
/*
* Because some don't support u_long.
*/
@@ -1645,10 +1645,10 @@ btoa_totext(unsigned char *inbuf, int inbuflen, isc_buffer_t *target) {
Ceor = Csum = Crot = word = bcount = 0;
for (inc = 0; inc < inbuflen; inbuf++, inc++)
RETERR(byte_btoa(*inbuf, target, state));
-
+
while (bcount != 0)
RETERR(byte_btoa(0, target, state));
-
+
/*
* Put byte count and checksum information at end of buffer,
* delimited by 'x'
diff --git a/lib/dns/rdata/any_255/tsig_250.c b/lib/dns/rdata/any_255/tsig_250.c
index 50368ad873..16af8792c9 100644
--- a/lib/dns/rdata/any_255/tsig_250.c
+++ b/lib/dns/rdata/any_255/tsig_250.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tsig_250.c,v 1.42 2000/07/27 09:48:46 tale Exp $ */
+/* $Id: tsig_250.c,v 1.43 2000/08/01 01:25:04 tale Exp $ */
/* Reviewed: Thu Mar 16 13:39:43 PST 2000 by gson */
@@ -122,7 +122,7 @@ static inline isc_result_t
totext_any_tsig(ARGS_TOTEXT) {
isc_region_t sr;
isc_region_t sigr;
- char buf[sizeof "281474976710655 "];
+ char buf[sizeof "281474976710655 "];
char *bufp;
dns_name_t name;
dns_name_t prefix;
@@ -185,15 +185,15 @@ totext_any_tsig(ARGS_TOTEXT) {
REQUIRE(n <= sr.length);
sigr = sr;
sigr.length = n;
- if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
+ if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
RETERR(str_totext(" (", target));
RETERR(str_totext(tctx->linebreak, target));
- RETERR(isc_base64_totext(&sigr, tctx->width - 2,
+ RETERR(isc_base64_totext(&sigr, tctx->width - 2,
tctx->linebreak, target));
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
RETERR(str_totext(" ) ", target));
else
- RETERR(str_totext(" ", target));
+ RETERR(str_totext(" ", target));
isc_region_consume(&sr, n);
/*
@@ -238,7 +238,7 @@ fromwire_any_tsig(ARGS_FROMWIRE) {
REQUIRE(type == 250);
REQUIRE(rdclass == 255);
-
+
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
/*
@@ -319,7 +319,7 @@ compare_any_tsig(ARGS_COMPARE) {
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 250);
REQUIRE(rdata1->rdclass == 255);
-
+
dns_rdata_toregion(rdata1, &r1);
dns_rdata_toregion(rdata2, &r2);
dns_name_init(&name1, NULL);
@@ -410,7 +410,7 @@ tostruct_any_tsig(ARGS_TOSTRUCT) {
REQUIRE(rdata->type == 250);
REQUIRE(rdata->rdclass == 255);
-
+
tsig = (dns_rdata_any_tsig_t *) target;
tsig->common.rdclass = rdata->rdclass;
tsig->common.rdtype = rdata->type;
@@ -425,7 +425,7 @@ tostruct_any_tsig(ARGS_TOSTRUCT) {
dns_name_fromregion(&alg, &sr);
dns_name_init(&tsig->algorithm, NULL);
RETERR(name_duporclone(&alg, mctx, &tsig->algorithm));
-
+
isc_region_consume(&sr, name_length(&tsig->algorithm));
/*
@@ -496,7 +496,7 @@ tostruct_any_tsig(ARGS_TOSTRUCT) {
cleanup:
if (mctx != NULL)
- dns_name_free(&tsig->algorithm, tsig->mctx);
+ dns_name_free(&tsig->algorithm, tsig->mctx);
if (mctx != NULL && tsig->signature != NULL)
isc_mem_free(mctx, tsig->signature);
return (ISC_R_NOMEMORY);
@@ -513,7 +513,7 @@ freestruct_any_tsig(ARGS_FREESTRUCT) {
if (tsig->mctx == NULL)
return;
- dns_name_free(&tsig->algorithm, tsig->mctx);
+ dns_name_free(&tsig->algorithm, tsig->mctx);
if (tsig->signature != NULL)
isc_mem_free(tsig->mctx, tsig->signature);
if (tsig->other != NULL)
diff --git a/lib/dns/rdata/any_255/tsig_250.h b/lib/dns/rdata/any_255/tsig_250.h
index 1a618afae8..2784afc724 100644
--- a/lib/dns/rdata/any_255/tsig_250.h
+++ b/lib/dns/rdata/any_255/tsig_250.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tsig_250.h,v 1.18 2000/07/27 09:48:47 tale Exp $ */
+/* $Id: tsig_250.h,v 1.19 2000/08/01 01:25:05 tale Exp $ */
/* RFC 2845 */
diff --git a/lib/dns/rdata/generic/afsdb_18.c b/lib/dns/rdata/generic/afsdb_18.c
index fb65c5bca8..e0fd240f7a 100644
--- a/lib/dns/rdata/generic/afsdb_18.c
+++ b/lib/dns/rdata/generic/afsdb_18.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: afsdb_18.c,v 1.30 2000/07/27 09:48:48 tale Exp $ */
+/* $Id: afsdb_18.c,v 1.31 2000/08/01 01:25:06 tale Exp $ */
/* Reviewed: Wed Mar 15 14:59:00 PST 2000 by explorer */
@@ -43,7 +43,7 @@ fromtext_afsdb(ARGS_FROMTEXT) {
if (token.value.as_ulong > 0xffff)
return (ISC_R_RANGE);
RETERR(uint16_tobuffer(token.value.as_ulong, target));
-
+
/*
* Hostname.
*/
@@ -87,7 +87,7 @@ fromwire_afsdb(ARGS_FROMWIRE) {
UNUSED(rdclass);
REQUIRE(type == 18);
-
+
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
dns_name_init(&name, NULL);
@@ -167,7 +167,7 @@ fromstruct_afsdb(ARGS_FROMSTRUCT) {
REQUIRE(source != NULL);
REQUIRE(afsdb->common.rdclass == rdclass);
REQUIRE(afsdb->common.rdtype == type);
-
+
RETERR(uint16_tobuffer(afsdb->subtype, target));
dns_name_toregion(&afsdb->server, ®ion);
return (isc_buffer_copyregion(target, ®ion));
diff --git a/lib/dns/rdata/generic/afsdb_18.h b/lib/dns/rdata/generic/afsdb_18.h
index 25c60705ea..1bcd0bfd87 100644
--- a/lib/dns/rdata/generic/afsdb_18.h
+++ b/lib/dns/rdata/generic/afsdb_18.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_AFSDB_18_H
#define GENERIC_AFSDB_18_H 1
-/* $Id: afsdb_18.h,v 1.13 2000/07/27 09:48:50 tale Exp $ */
+/* $Id: afsdb_18.h,v 1.14 2000/08/01 01:25:07 tale Exp $ */
/* RFC 1183 */
diff --git a/lib/dns/rdata/generic/cert_37.c b/lib/dns/rdata/generic/cert_37.c
index 6be6a1e070..15fa7081db 100644
--- a/lib/dns/rdata/generic/cert_37.c
+++ b/lib/dns/rdata/generic/cert_37.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cert_37.c,v 1.31 2000/07/27 09:48:51 tale Exp $ */
+/* $Id: cert_37.c,v 1.32 2000/08/01 01:25:08 tale Exp $ */
/* Reviewed: Wed Mar 15 21:14:32 EST 2000 by tale */
@@ -44,7 +44,7 @@ fromtext_cert(ARGS_FROMTEXT) {
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
RETERR(dns_cert_fromtext(&cert, &token.value.as_textregion));
RETERR(uint16_tobuffer(cert, target));
-
+
/*
* Key tag.
*/
@@ -115,7 +115,7 @@ fromwire_cert(ARGS_FROMWIRE) {
isc_region_t sr;
REQUIRE(type == 37);
-
+
UNUSED(rdclass);
UNUSED(dctx);
UNUSED(downcase);
@@ -162,7 +162,7 @@ fromstruct_cert(ARGS_FROMSTRUCT) {
REQUIRE(source != NULL);
REQUIRE(cert->common.rdtype == type);
REQUIRE(cert->common.rdclass == rdclass);
-
+
RETERR(uint16_tobuffer(cert->type, target));
RETERR(uint16_tobuffer(cert->key_tag, target));
RETERR(uint8_tobuffer(cert->algorithm, target));
diff --git a/lib/dns/rdata/generic/cert_37.h b/lib/dns/rdata/generic/cert_37.h
index 59fe05bd52..db7c4607d9 100644
--- a/lib/dns/rdata/generic/cert_37.h
+++ b/lib/dns/rdata/generic/cert_37.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cert_37.h,v 1.13 2000/07/27 09:48:52 tale Exp $ */
+/* $Id: cert_37.h,v 1.14 2000/08/01 01:25:09 tale Exp $ */
/* RFC 2538 */
#ifndef GENERIC_CERT_37_H
diff --git a/lib/dns/rdata/generic/cname_5.c b/lib/dns/rdata/generic/cname_5.c
index 3157e9fef7..bc8b2a483b 100644
--- a/lib/dns/rdata/generic/cname_5.c
+++ b/lib/dns/rdata/generic/cname_5.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cname_5.c,v 1.34 2000/07/27 09:48:53 tale Exp $ */
+/* $Id: cname_5.c,v 1.35 2000/08/01 01:25:10 tale Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
@@ -34,9 +34,9 @@ static inline isc_result_t
REQUIRE(type == 5);
UNUSED(rdclass);
-
+
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
-
+
dns_name_init(&name, NULL);
buffer_fromregion(&buffer, &token.value.as_region);
origin = (origin != NULL) ? origin : dns_rootname;
@@ -135,7 +135,7 @@ tostruct_cname(ARGS_TOSTRUCT) {
isc_region_t region;
dns_rdata_cname_t *cname = target;
dns_name_t name;
-
+
REQUIRE(rdata->type == 5);
REQUIRE(target != NULL);
@@ -170,7 +170,7 @@ additionaldata_cname(ARGS_ADDLDATA) {
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
-
+
REQUIRE(rdata->type == 5);
return (ISC_R_SUCCESS);
diff --git a/lib/dns/rdata/generic/cname_5.h b/lib/dns/rdata/generic/cname_5.h
index e3e0665bd6..2899487612 100644
--- a/lib/dns/rdata/generic/cname_5.h
+++ b/lib/dns/rdata/generic/cname_5.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cname_5.h,v 1.21 2000/07/27 09:48:54 tale Exp $ */
+/* $Id: cname_5.h,v 1.22 2000/08/01 01:25:11 tale Exp $ */
#ifndef GENERIC_CNAME_5_H
#define GENERIC_CNAME_5_H 1
diff --git a/lib/dns/rdata/generic/dname_39.c b/lib/dns/rdata/generic/dname_39.c
index e348d5c5d8..bf64a4a29b 100644
--- a/lib/dns/rdata/generic/dname_39.c
+++ b/lib/dns/rdata/generic/dname_39.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dname_39.c,v 1.24 2000/07/27 09:48:55 tale Exp $ */
+/* $Id: dname_39.c,v 1.25 2000/08/01 01:25:13 tale Exp $ */
/* Reviewed: Wed Mar 15 16:52:38 PST 2000 by explorer */
@@ -35,9 +35,9 @@ fromtext_dname(ARGS_FROMTEXT) {
UNUSED(rdclass);
REQUIRE(type == 39);
-
+
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
-
+
dns_name_init(&name, NULL);
buffer_fromregion(&buffer, &token.value.as_region);
origin = (origin != NULL) ? origin : dns_rootname;
@@ -158,7 +158,7 @@ freestruct_dname(ARGS_FREESTRUCT) {
REQUIRE(source != NULL);
REQUIRE(dname->common.rdtype == 39);
-
+
if (dname->mctx == NULL)
return;
diff --git a/lib/dns/rdata/generic/dname_39.h b/lib/dns/rdata/generic/dname_39.h
index 4e6a88c976..28c46e7c7a 100644
--- a/lib/dns/rdata/generic/dname_39.h
+++ b/lib/dns/rdata/generic/dname_39.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_DNAME_39_H
#define GENERIC_DNAME_39_H 1
-/* $Id: dname_39.h,v 1.13 2000/07/27 09:48:56 tale Exp $ */
+/* $Id: dname_39.h,v 1.14 2000/08/01 01:25:14 tale Exp $ */
/* draft-ietf-dnsind-dname-02.txt */
diff --git a/lib/dns/rdata/generic/gpos_27.c b/lib/dns/rdata/generic/gpos_27.c
index 5121cecc2f..229f65ceab 100644
--- a/lib/dns/rdata/generic/gpos_27.c
+++ b/lib/dns/rdata/generic/gpos_27.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: gpos_27.c,v 1.23 2000/07/27 09:48:58 tale Exp $ */
+/* $Id: gpos_27.c,v 1.24 2000/08/01 01:25:15 tale Exp $ */
/* reviewed: Wed Mar 15 16:48:45 PST 2000 by brister */
@@ -94,7 +94,7 @@ static inline int
compare_gpos(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 27);
@@ -163,7 +163,7 @@ tostruct_gpos(ARGS_TOSTRUCT) {
mem_maybedup(mctx, region.base, gpos->alt_len);
if (gpos->altitude == NULL)
goto cleanup_latitude;
- } else
+ } else
gpos->altitude = NULL;
gpos->mctx = mctx;
diff --git a/lib/dns/rdata/generic/gpos_27.h b/lib/dns/rdata/generic/gpos_27.h
index 4fafc31192..4fcdfd2ab5 100644
--- a/lib/dns/rdata/generic/gpos_27.h
+++ b/lib/dns/rdata/generic/gpos_27.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_GPOS_27_H
#define GENERIC_GPOS_27_H 1
-/* $Id: gpos_27.h,v 1.10 2000/07/27 09:48:59 tale Exp $ */
+/* $Id: gpos_27.h,v 1.11 2000/08/01 01:25:16 tale Exp $ */
/* RFC 1712 */
diff --git a/lib/dns/rdata/generic/hinfo_13.c b/lib/dns/rdata/generic/hinfo_13.c
index 7043e62c4a..ab59534930 100644
--- a/lib/dns/rdata/generic/hinfo_13.c
+++ b/lib/dns/rdata/generic/hinfo_13.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: hinfo_13.c,v 1.28 2000/07/27 09:49:00 tale Exp $ */
+/* $Id: hinfo_13.c,v 1.29 2000/08/01 01:25:17 tale Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
@@ -86,7 +86,7 @@ static inline int
compare_hinfo(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 13);
diff --git a/lib/dns/rdata/generic/hinfo_13.h b/lib/dns/rdata/generic/hinfo_13.h
index 63c903ead0..a0ed9540f0 100644
--- a/lib/dns/rdata/generic/hinfo_13.h
+++ b/lib/dns/rdata/generic/hinfo_13.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_HINFO_13_H
#define GENERIC_HINFO_13_H 1
-/* $Id: hinfo_13.h,v 1.20 2000/07/27 09:49:01 tale Exp $ */
+/* $Id: hinfo_13.h,v 1.21 2000/08/01 01:25:18 tale Exp $ */
typedef struct dns_rdata_hinfo {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/isdn_20.c b/lib/dns/rdata/generic/isdn_20.c
index 77f6e89b3e..39e7e8efbf 100644
--- a/lib/dns/rdata/generic/isdn_20.c
+++ b/lib/dns/rdata/generic/isdn_20.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: isdn_20.c,v 1.21 2000/07/27 09:49:02 tale Exp $ */
+/* $Id: isdn_20.c,v 1.22 2000/08/01 01:25:19 tale Exp $ */
/* Reviewed: Wed Mar 15 16:53:11 PST 2000 by bwelling */
@@ -93,7 +93,7 @@ static inline int
compare_isdn(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 20);
@@ -166,7 +166,7 @@ freestruct_isdn(ARGS_FREESTRUCT) {
dns_rdata_isdn_t *isdn = source;
REQUIRE(source != NULL);
-
+
if (isdn->mctx == NULL)
return;
diff --git a/lib/dns/rdata/generic/isdn_20.h b/lib/dns/rdata/generic/isdn_20.h
index 677047f950..8783c93f2a 100644
--- a/lib/dns/rdata/generic/isdn_20.h
+++ b/lib/dns/rdata/generic/isdn_20.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_ISDN_20_H
#define GENERIC_ISDN_20_H 1
-/* $Id: isdn_20.h,v 1.11 2000/07/27 09:49:03 tale Exp $ */
+/* $Id: isdn_20.h,v 1.12 2000/08/01 01:25:20 tale Exp $ */
/* RFC 1183 */
diff --git a/lib/dns/rdata/generic/key_25.c b/lib/dns/rdata/generic/key_25.c
index 035dc1bb4f..3dcc777cc4 100644
--- a/lib/dns/rdata/generic/key_25.c
+++ b/lib/dns/rdata/generic/key_25.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: key_25.c,v 1.28 2000/07/31 19:47:21 bwelling Exp $ */
+/* $Id: key_25.c,v 1.29 2000/08/01 01:25:22 tale Exp $ */
/*
* Reviewed: Wed Mar 15 16:47:10 PST 2000 by halley.
@@ -53,11 +53,11 @@ fromtext_key(ARGS_FROMTEXT) {
RETERR(dns_secproto_fromtext(&proto, &token.value.as_textregion));
RETERR(mem_tobuffer(target, &proto, 1));
- /* algorithm */
+ /* algorithm */
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
RETERR(dns_secalg_fromtext(&alg, &token.value.as_textregion));
RETERR(mem_tobuffer(target, &alg, 1));
-
+
/* No Key? */
if ((flags & 0xc000) == 0xc000)
return (ISC_R_SUCCESS);
diff --git a/lib/dns/rdata/generic/key_25.h b/lib/dns/rdata/generic/key_25.h
index 57b9240a6b..7e8f953f2a 100644
--- a/lib/dns/rdata/generic/key_25.h
+++ b/lib/dns/rdata/generic/key_25.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_KEY_25_H
#define GENERIC_KEY_25_H 1
-/* $Id: key_25.h,v 1.12 2000/07/27 09:49:05 tale Exp $ */
+/* $Id: key_25.h,v 1.13 2000/08/01 01:25:23 tale Exp $ */
/* RFC 2535 */
diff --git a/lib/dns/rdata/generic/loc_29.c b/lib/dns/rdata/generic/loc_29.c
index 56c4957029..b87337ea09 100644
--- a/lib/dns/rdata/generic/loc_29.c
+++ b/lib/dns/rdata/generic/loc_29.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: loc_29.c,v 1.22 2000/07/27 09:49:06 tale Exp $ */
+/* $Id: loc_29.c,v 1.23 2000/08/01 01:25:24 tale Exp $ */
/* Reviewed: Wed Mar 15 18:13:09 PST 2000 by explorer */
@@ -55,7 +55,7 @@ fromtext_loc(ARGS_FROMTEXT) {
UNUSED(downcase);
REQUIRE(type == 29);
-
+
/*
* Defaults.
*/
@@ -154,7 +154,7 @@ fromtext_loc(ARGS_FROMTEXT) {
return (ISC_R_RANGE);
if (d2 == 180 && m2 != 0)
return (ISC_R_RANGE);
-
+
/*
* Seconds.
*/
@@ -265,7 +265,7 @@ fromtext_loc(ARGS_FROMTEXT) {
}
for ( ; i < 2 ; i++)
cm *= 10;
- }
+ }
if (*e == 'm')
e++;
if (*e != 0)
@@ -367,7 +367,7 @@ fromtext_loc(ARGS_FROMTEXT) {
}
for ( ; i < 2 ; i++)
cm *= 10;
- }
+ }
if (*e == 'm')
e++;
if (*e != 0)
@@ -519,7 +519,7 @@ fromwire_loc(ARGS_FROMWIRE) {
UNUSED(downcase);
REQUIRE(type == 29);
-
+
isc_buffer_activeregion(source, &sr);
if (sr.length < 1)
return (ISC_R_UNEXPECTEDEND);
@@ -549,7 +549,7 @@ fromwire_loc(ARGS_FROMWIRE) {
*/
c = sr.base[3];
if (c != 0)
- if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
+ if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
return (ISC_R_RANGE);
isc_region_consume(&sr, 4);
@@ -585,7 +585,7 @@ towire_loc(ARGS_TOWIRE) {
UNUSED(cctx);
REQUIRE(rdata->type == 29);
-
+
return (mem_tobuffer(target, rdata->data, rdata->length));
}
@@ -612,23 +612,23 @@ fromstruct_loc(ARGS_FROMSTRUCT) {
REQUIRE(source != NULL);
REQUIRE(loc->common.rdtype == type);
REQUIRE(loc->common.rdclass == rdclass);
-
+
if (loc->v.v0.version != 0)
return (ISC_R_NOTIMPLEMENTED);
RETERR(uint8_tobuffer(loc->v.v0.version, target));
c = loc->v.v0.size;
- if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
+ if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
return (ISC_R_RANGE);
RETERR(uint8_tobuffer(loc->v.v0.size, target));
c = loc->v.v0.horizontal;
- if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
+ if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
return (ISC_R_RANGE);
RETERR(uint8_tobuffer(loc->v.v0.horizontal, target));
c = loc->v.v0.vertical;
- if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
+ if ((c&0xf) > 9 || ((c>>4)&0xf) > 9 || ((c>>4)&0xf) == 0)
return (ISC_R_RANGE);
RETERR(uint8_tobuffer(loc->v.v0.vertical, target));
diff --git a/lib/dns/rdata/generic/loc_29.h b/lib/dns/rdata/generic/loc_29.h
index fe76476b20..761fbfc07f 100644
--- a/lib/dns/rdata/generic/loc_29.h
+++ b/lib/dns/rdata/generic/loc_29.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_LOC_29_H
#define GENERIC_LOC_29_H 1
-/* $Id: loc_29.h,v 1.12 2000/07/27 09:49:07 tale Exp $ */
+/* $Id: loc_29.h,v 1.13 2000/08/01 01:25:25 tale Exp $ */
/* RFC 1876 */
@@ -26,7 +26,7 @@ typedef struct dns_rdata_loc_0 {
isc_uint8_t version; /* must be first and zero */
isc_uint8_t size;
isc_uint8_t horizontal;
- isc_uint8_t vertical;
+ isc_uint8_t vertical;
isc_uint32_t latitude;
isc_uint32_t longitude;
isc_uint32_t altitude;
diff --git a/lib/dns/rdata/generic/mb_7.c b/lib/dns/rdata/generic/mb_7.c
index f7f3f0d911..f22eb2badc 100644
--- a/lib/dns/rdata/generic/mb_7.c
+++ b/lib/dns/rdata/generic/mb_7.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mb_7.c,v 1.32 2000/07/27 09:49:09 tale Exp $ */
+/* $Id: mb_7.c,v 1.33 2000/08/01 01:25:26 tale Exp $ */
/* Reviewed: Wed Mar 15 17:31:26 PST 2000 by bwelling */
@@ -159,7 +159,7 @@ freestruct_mb(ARGS_FREESTRUCT) {
if (mb->mctx == NULL)
return;
-
+
dns_name_free(&mb->mb, mb->mctx);
mb->mctx = NULL;
}
diff --git a/lib/dns/rdata/generic/mb_7.h b/lib/dns/rdata/generic/mb_7.h
index 910edf4439..4505031b88 100644
--- a/lib/dns/rdata/generic/mb_7.h
+++ b/lib/dns/rdata/generic/mb_7.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MB_7_H
#define GENERIC_MB_7_H 1
-/* $Id: mb_7.h,v 1.20 2000/07/27 09:49:10 tale Exp $ */
+/* $Id: mb_7.h,v 1.21 2000/08/01 01:25:27 tale Exp $ */
typedef struct dns_rdata_mb {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/md_3.c b/lib/dns/rdata/generic/md_3.c
index b822b458b1..3bdf294b87 100644
--- a/lib/dns/rdata/generic/md_3.c
+++ b/lib/dns/rdata/generic/md_3.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: md_3.c,v 1.34 2000/07/27 09:49:11 tale Exp $ */
+/* $Id: md_3.c,v 1.35 2000/08/01 01:25:28 tale Exp $ */
/* Reviewed: Wed Mar 15 17:48:20 PST 2000 by bwelling */
diff --git a/lib/dns/rdata/generic/md_3.h b/lib/dns/rdata/generic/md_3.h
index 643fa6896a..2d6032bfe9 100644
--- a/lib/dns/rdata/generic/md_3.h
+++ b/lib/dns/rdata/generic/md_3.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MD_3_H
#define GENERIC_MD_3_H 1
-/* $Id: md_3.h,v 1.21 2000/07/27 09:49:12 tale Exp $ */
+/* $Id: md_3.h,v 1.22 2000/08/01 01:25:29 tale Exp $ */
typedef struct dns_rdata_md {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/mf_4.c b/lib/dns/rdata/generic/mf_4.c
index 71547f1ec9..dff440e855 100644
--- a/lib/dns/rdata/generic/mf_4.c
+++ b/lib/dns/rdata/generic/mf_4.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mf_4.c,v 1.32 2000/07/27 09:49:13 tale Exp $ */
+/* $Id: mf_4.c,v 1.33 2000/08/01 01:25:30 tale Exp $ */
/* reviewed: Wed Mar 15 17:47:33 PST 2000 by brister */
@@ -71,7 +71,7 @@ fromwire_mf(ARGS_FROMWIRE) {
UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
-
+
dns_name_init(&name, NULL);
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
diff --git a/lib/dns/rdata/generic/mf_4.h b/lib/dns/rdata/generic/mf_4.h
index faa1b32267..f2d449b4af 100644
--- a/lib/dns/rdata/generic/mf_4.h
+++ b/lib/dns/rdata/generic/mf_4.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MF_4_H
#define GENERIC_MF_4_H 1
-/* $Id: mf_4.h,v 1.19 2000/07/27 09:49:14 tale Exp $ */
+/* $Id: mf_4.h,v 1.20 2000/08/01 01:25:32 tale Exp $ */
typedef struct dns_rdata_mf {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/mg_8.c b/lib/dns/rdata/generic/mg_8.c
index 04ebe2b705..4e59368d9e 100644
--- a/lib/dns/rdata/generic/mg_8.c
+++ b/lib/dns/rdata/generic/mg_8.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mg_8.c,v 1.30 2000/07/27 09:49:15 tale Exp $ */
+/* $Id: mg_8.c,v 1.31 2000/08/01 01:25:33 tale Exp $ */
/* reviewed: Wed Mar 15 17:49:21 PST 2000 by brister */
@@ -33,7 +33,7 @@ fromtext_mg(ARGS_FROMTEXT) {
REQUIRE(type == 8);
UNUSED(rdclass);
-
+
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
dns_name_init(&name, NULL);
@@ -71,7 +71,7 @@ fromwire_mg(ARGS_FROMWIRE) {
UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
-
+
dns_name_init(&name, NULL);
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
@@ -157,7 +157,7 @@ freestruct_mg(ARGS_FREESTRUCT) {
REQUIRE(source != NULL);
REQUIRE(mg->common.rdtype == 8);
-
+
if (mg->mctx == NULL)
return;
dns_name_free(&mg->mg, mg->mctx);
diff --git a/lib/dns/rdata/generic/mg_8.h b/lib/dns/rdata/generic/mg_8.h
index d0762c4351..8fbb7d10bf 100644
--- a/lib/dns/rdata/generic/mg_8.h
+++ b/lib/dns/rdata/generic/mg_8.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MG_8_H
#define GENERIC_MG_8_H 1
-/* $Id: mg_8.h,v 1.19 2000/07/27 09:49:16 tale Exp $ */
+/* $Id: mg_8.h,v 1.20 2000/08/01 01:25:34 tale Exp $ */
typedef struct dns_rdata_mg {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/minfo_14.c b/lib/dns/rdata/generic/minfo_14.c
index caf1efa62f..096ff84087 100644
--- a/lib/dns/rdata/generic/minfo_14.c
+++ b/lib/dns/rdata/generic/minfo_14.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: minfo_14.c,v 1.31 2000/07/27 09:49:18 tale Exp $ */
+/* $Id: minfo_14.c,v 1.32 2000/08/01 01:25:35 tale Exp $ */
/* reviewed: Wed Mar 15 17:45:32 PST 2000 by brister */
@@ -34,7 +34,7 @@ fromtext_minfo(ARGS_FROMTEXT) {
REQUIRE(type == 14);
UNUSED(rdclass);
-
+
for (i = 0; i < 2 ; i++) {
RETERR(gettoken(lexer, &token, isc_tokentype_string,
ISC_FALSE));
@@ -83,7 +83,7 @@ static inline isc_result_t
fromwire_minfo(ARGS_FROMWIRE) {
dns_name_t rmail;
dns_name_t email;
-
+
REQUIRE(type == 14);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
diff --git a/lib/dns/rdata/generic/minfo_14.h b/lib/dns/rdata/generic/minfo_14.h
index 4395275ab2..ce0ff5d7ce 100644
--- a/lib/dns/rdata/generic/minfo_14.h
+++ b/lib/dns/rdata/generic/minfo_14.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MINFO_14_H
#define GENERIC_MINFO_14_H 1
-/* $Id: minfo_14.h,v 1.20 2000/07/27 09:49:19 tale Exp $ */
+/* $Id: minfo_14.h,v 1.21 2000/08/01 01:25:36 tale Exp $ */
typedef struct dns_rdata_minfo {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/mr_9.c b/lib/dns/rdata/generic/mr_9.c
index f0495e0efb..7a908b4821 100644
--- a/lib/dns/rdata/generic/mr_9.c
+++ b/lib/dns/rdata/generic/mr_9.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mr_9.c,v 1.29 2000/07/27 09:49:20 tale Exp $ */
+/* $Id: mr_9.c,v 1.30 2000/08/01 01:25:37 tale Exp $ */
/* Reviewed: Wed Mar 15 21:30:35 EST 2000 by tale */
@@ -33,7 +33,7 @@ fromtext_mr(ARGS_FROMTEXT) {
REQUIRE(type == 9);
UNUSED(rdclass);
-
+
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
dns_name_init(&name, NULL);
diff --git a/lib/dns/rdata/generic/mr_9.h b/lib/dns/rdata/generic/mr_9.h
index 6b12e4e976..b5bb01c954 100644
--- a/lib/dns/rdata/generic/mr_9.h
+++ b/lib/dns/rdata/generic/mr_9.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MR_9_H
#define GENERIC_MR_9_H 1
-/* $Id: mr_9.h,v 1.19 2000/07/27 09:49:21 tale Exp $ */
+/* $Id: mr_9.h,v 1.20 2000/08/01 01:25:38 tale Exp $ */
typedef struct dns_rdata_mr {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/mx_15.c b/lib/dns/rdata/generic/mx_15.c
index adf3878ce7..95b1292a42 100644
--- a/lib/dns/rdata/generic/mx_15.c
+++ b/lib/dns/rdata/generic/mx_15.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mx_15.c,v 1.39 2000/07/27 09:49:22 tale Exp $ */
+/* $Id: mx_15.c,v 1.40 2000/08/01 01:25:39 tale Exp $ */
/* reviewed: Wed Mar 15 18:05:46 PST 2000 by brister */
@@ -83,7 +83,7 @@ fromwire_mx(ARGS_FROMWIRE) {
UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
-
+
dns_name_init(&name, NULL);
isc_buffer_activeregion(source, &sregion);
diff --git a/lib/dns/rdata/generic/mx_15.h b/lib/dns/rdata/generic/mx_15.h
index 6cfde17910..23156bedfe 100644
--- a/lib/dns/rdata/generic/mx_15.h
+++ b/lib/dns/rdata/generic/mx_15.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_MX_15_H
#define GENERIC_MX_15_H 1
-/* $Id: mx_15.h,v 1.22 2000/07/27 09:49:23 tale Exp $ */
+/* $Id: mx_15.h,v 1.23 2000/08/01 01:25:41 tale Exp $ */
typedef struct dns_rdata_mx {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/ns_2.c b/lib/dns/rdata/generic/ns_2.c
index 2724eed98c..51c54268ce 100644
--- a/lib/dns/rdata/generic/ns_2.c
+++ b/lib/dns/rdata/generic/ns_2.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ns_2.c,v 1.33 2000/07/27 09:49:24 tale Exp $ */
+/* $Id: ns_2.c,v 1.34 2000/08/01 01:25:42 tale Exp $ */
/* Reviewed: Wed Mar 15 18:15:00 PST 2000 by bwelling */
diff --git a/lib/dns/rdata/generic/ns_2.h b/lib/dns/rdata/generic/ns_2.h
index 97db027c89..ec027a042f 100644
--- a/lib/dns/rdata/generic/ns_2.h
+++ b/lib/dns/rdata/generic/ns_2.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_NS_2_H
#define GENERIC_NS_2_H 1
-/* $Id: ns_2.h,v 1.20 2000/07/31 19:40:52 bwelling Exp $ */
+/* $Id: ns_2.h,v 1.21 2000/08/01 01:25:43 tale Exp $ */
typedef struct dns_rdata_ns {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/null_10.c b/lib/dns/rdata/generic/null_10.c
index 778c9f66f9..c8aefb3fb0 100644
--- a/lib/dns/rdata/generic/null_10.c
+++ b/lib/dns/rdata/generic/null_10.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: null_10.c,v 1.27 2000/07/27 09:49:27 tale Exp $ */
+/* $Id: null_10.c,v 1.28 2000/08/01 01:25:44 tale Exp $ */
/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
@@ -129,7 +129,7 @@ tostruct_null(ARGS_TOSTRUCT) {
static inline void
freestruct_null(ARGS_FREESTRUCT) {
dns_rdata_null_t *null = source;
-
+
REQUIRE(source != NULL);
REQUIRE(null->common.rdtype == 10);
diff --git a/lib/dns/rdata/generic/null_10.h b/lib/dns/rdata/generic/null_10.h
index a7b69b4b64..1484717d5e 100644
--- a/lib/dns/rdata/generic/null_10.h
+++ b/lib/dns/rdata/generic/null_10.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_NULL_10_H
#define GENERIC_NULL_10_H 1
-/* $Id: null_10.h,v 1.18 2000/07/27 09:49:28 tale Exp $ */
+/* $Id: null_10.h,v 1.19 2000/08/01 01:25:45 tale Exp $ */
typedef struct dns_rdata_null {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/nxt_30.c b/lib/dns/rdata/generic/nxt_30.c
index ae0aa21d40..5a815abffd 100644
--- a/lib/dns/rdata/generic/nxt_30.c
+++ b/lib/dns/rdata/generic/nxt_30.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: nxt_30.c,v 1.37 2000/07/27 09:49:29 tale Exp $ */
+/* $Id: nxt_30.c,v 1.38 2000/08/01 01:25:46 tale Exp $ */
/* reviewed: Wed Mar 15 18:21:15 PST 2000 by brister */
@@ -45,7 +45,7 @@ fromtext_nxt(ARGS_FROMTEXT) {
REQUIRE(type == 30);
UNUSED(rdclass);
-
+
/*
* Next domain.
*/
@@ -64,7 +64,7 @@ fromtext_nxt(ARGS_FROMTEXT) {
n = strtol(token.value.as_pointer, &e, 10);
if (e != (char *)token.value.as_pointer && *e == '\0') {
covered = (dns_rdatatype_t)n;
- } else if (dns_rdatatype_fromtext(&covered,
+ } else if (dns_rdatatype_fromtext(&covered,
&token.value.as_textregion) == DNS_R_UNKNOWN)
return (DNS_R_UNKNOWN);
/*
@@ -78,7 +78,7 @@ fromtext_nxt(ARGS_FROMTEXT) {
bm[covered/8] |= (0x80>>(covered%8));
} while (1);
isc_lex_ungettoken(lexer, &token);
- if (first)
+ if (first)
return (ISC_R_SUCCESS);
n = (maxcovered + 8) / 8;
return (mem_tobuffer(target, bm, n));
@@ -137,7 +137,7 @@ fromwire_nxt(ARGS_FROMWIRE) {
dns_name_init(&name, NULL);
RETERR(dns_name_fromwire(&name, source, dctx, downcase, target));
-
+
isc_buffer_activeregion(source, &sr);
/* XXXRTH Enforce RFC 2535 length rules if bit 0 is not set. */
if (sr.length > 8 * 1024)
diff --git a/lib/dns/rdata/generic/nxt_30.h b/lib/dns/rdata/generic/nxt_30.h
index a15a4e3b39..3bf3417072 100644
--- a/lib/dns/rdata/generic/nxt_30.h
+++ b/lib/dns/rdata/generic/nxt_30.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_NXT_30_H
#define GENERIC_NXT_30_H 1
-/* $Id: nxt_30.h,v 1.15 2000/07/27 09:49:30 tale Exp $ */
+/* $Id: nxt_30.h,v 1.16 2000/08/01 01:25:47 tale Exp $ */
/* RFC 2065 */
diff --git a/lib/dns/rdata/generic/opt_41.c b/lib/dns/rdata/generic/opt_41.c
index 2b75dc780b..c8bd926294 100644
--- a/lib/dns/rdata/generic/opt_41.c
+++ b/lib/dns/rdata/generic/opt_41.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: opt_41.c,v 1.17 2000/07/27 09:49:31 tale Exp $ */
+/* $Id: opt_41.c,v 1.18 2000/08/01 01:25:48 tale Exp $ */
/* Reviewed: Thu Mar 16 14:06:44 PST 2000 by gson */
diff --git a/lib/dns/rdata/generic/opt_41.h b/lib/dns/rdata/generic/opt_41.h
index 9c8add70ae..3c8e3f241d 100644
--- a/lib/dns/rdata/generic/opt_41.h
+++ b/lib/dns/rdata/generic/opt_41.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_OPT_41_H
#define GENERIC_OPT_41_H 1
-/* $Id: opt_41.h,v 1.11 2000/07/27 09:49:32 tale Exp $ */
+/* $Id: opt_41.h,v 1.12 2000/08/01 01:25:50 tale Exp $ */
/* RFC 2671 */
diff --git a/lib/dns/rdata/generic/proforma.c b/lib/dns/rdata/generic/proforma.c
index edf7f59777..5259276277 100644
--- a/lib/dns/rdata/generic/proforma.c
+++ b/lib/dns/rdata/generic/proforma.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: proforma.c,v 1.26 2000/07/27 09:49:33 tale Exp $ */
+/* $Id: proforma.c,v 1.27 2000/08/01 01:25:51 tale Exp $ */
#ifndef RDATA_GENERIC_#_#_C
#define RDATA_GENERIC_#_#_C
@@ -111,7 +111,7 @@ freestruct_#(ARGS_FREESTRUCT) {
REQUIRE(source != NULL);
REQUIRE(#->common.rdtype == #);
REQUIRE(#->common.rdclass == #);
-
+
}
static inline isc_result_t
diff --git a/lib/dns/rdata/generic/proforma.h b/lib/dns/rdata/generic/proforma.h
index 66c2bf931a..0b7dd2b446 100644
--- a/lib/dns/rdata/generic/proforma.h
+++ b/lib/dns/rdata/generic/proforma.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_PROFORMA_H
#define GENERIC_PROFORMA_H 1
-/* $Id: proforma.h,v 1.16 2000/07/27 09:49:34 tale Exp $ */
+/* $Id: proforma.h,v 1.17 2000/08/01 01:25:52 tale Exp $ */
typedef struct dns_rdata_# {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/ptr_12.c b/lib/dns/rdata/generic/ptr_12.c
index 7f1545e38d..ddd6d11525 100644
--- a/lib/dns/rdata/generic/ptr_12.c
+++ b/lib/dns/rdata/generic/ptr_12.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ptr_12.c,v 1.30 2000/07/27 09:49:35 tale Exp $ */
+/* $Id: ptr_12.c,v 1.31 2000/08/01 01:25:53 tale Exp $ */
/* Reviewed: Thu Mar 16 14:05:12 PST 2000 by explorer */
@@ -71,7 +71,7 @@ fromwire_ptr(ARGS_FROMWIRE) {
REQUIRE(type == 12);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
-
+
dns_name_init(&name, NULL);
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
@@ -157,7 +157,7 @@ freestruct_ptr(ARGS_FREESTRUCT) {
REQUIRE(source != NULL);
REQUIRE(ptr->common.rdtype == 12);
-
+
if (ptr->mctx == NULL)
return;
diff --git a/lib/dns/rdata/generic/ptr_12.h b/lib/dns/rdata/generic/ptr_12.h
index 27e047fb15..78b689ba48 100644
--- a/lib/dns/rdata/generic/ptr_12.h
+++ b/lib/dns/rdata/generic/ptr_12.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_PTR_12_H
#define GENERIC_PTR_12_H 1
-/* $Id: ptr_12.h,v 1.20 2000/07/27 09:49:36 tale Exp $ */
+/* $Id: ptr_12.h,v 1.21 2000/08/01 01:25:54 tale Exp $ */
typedef struct dns_rdata_ptr {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/rp_17.c b/lib/dns/rdata/generic/rp_17.c
index 43ac67fd7b..55e4fbbddb 100644
--- a/lib/dns/rdata/generic/rp_17.c
+++ b/lib/dns/rdata/generic/rp_17.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rp_17.c,v 1.26 2000/07/27 09:49:38 tale Exp $ */
+/* $Id: rp_17.c,v 1.27 2000/08/01 01:25:55 tale Exp $ */
/* RFC 1183 */
@@ -85,7 +85,7 @@ fromwire_rp(ARGS_FROMWIRE) {
dns_name_t email;
UNUSED(rdclass);
-
+
REQUIRE(type == 17);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
diff --git a/lib/dns/rdata/generic/rp_17.h b/lib/dns/rdata/generic/rp_17.h
index 6a48bcb016..fb44667b5c 100644
--- a/lib/dns/rdata/generic/rp_17.h
+++ b/lib/dns/rdata/generic/rp_17.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_RP_17_H
#define GENERIC_RP_17_H 1
-/* $Id: rp_17.h,v 1.14 2000/07/27 09:49:39 tale Exp $ */
+/* $Id: rp_17.h,v 1.15 2000/08/01 01:25:56 tale Exp $ */
/* RFC 1183 */
diff --git a/lib/dns/rdata/generic/rt_21.c b/lib/dns/rdata/generic/rt_21.c
index 35a761f379..14149ffd79 100644
--- a/lib/dns/rdata/generic/rt_21.c
+++ b/lib/dns/rdata/generic/rt_21.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rt_21.c,v 1.28 2000/07/27 09:49:40 tale Exp $ */
+/* $Id: rt_21.c,v 1.29 2000/08/01 01:25:58 tale Exp $ */
/* reviewed: Thu Mar 16 15:02:31 PST 2000 by brister */
@@ -84,7 +84,7 @@ fromwire_rt(ARGS_FROMWIRE) {
UNUSED(rdclass);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
isc_buffer_activeregion(source, &sregion);
diff --git a/lib/dns/rdata/generic/rt_21.h b/lib/dns/rdata/generic/rt_21.h
index 7e4dbec491..828729d78f 100644
--- a/lib/dns/rdata/generic/rt_21.h
+++ b/lib/dns/rdata/generic/rt_21.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_RT_21_H
#define GENERIC_RT_21_H 1
-/* $Id: rt_21.h,v 1.14 2000/07/27 09:49:41 tale Exp $ */
+/* $Id: rt_21.h,v 1.15 2000/08/01 01:25:59 tale Exp $ */
/* RFC 1183 */
diff --git a/lib/dns/rdata/generic/sig_24.c b/lib/dns/rdata/generic/sig_24.c
index 98add29c56..11fd7177b5 100644
--- a/lib/dns/rdata/generic/sig_24.c
+++ b/lib/dns/rdata/generic/sig_24.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sig_24.c,v 1.44 2000/07/27 09:49:42 tale Exp $ */
+/* $Id: sig_24.c,v 1.45 2000/08/01 01:26:00 tale Exp $ */
/* Reviewed: Fri Mar 17 09:05:02 PST 2000 by gson */
@@ -29,7 +29,7 @@
static inline isc_result_t
fromtext_sig(ARGS_FROMTEXT) {
isc_token_t token;
- unsigned char c;
+ unsigned char c;
long i;
dns_rdatatype_t covered;
char *e;
@@ -98,7 +98,7 @@ fromtext_sig(ARGS_FROMTEXT) {
*/
RETERR(gettoken(lexer, &token, isc_tokentype_number, ISC_FALSE));
RETERR(uint16_tobuffer(token.value.as_ulong, target));
-
+
/*
* Signer.
*/
@@ -170,7 +170,7 @@ totext_sig(ARGS_TOTEXT) {
*/
ttl = uint32_fromregion(&sr);
isc_region_consume(&sr, 4);
- sprintf(buf, "%lu", ttl);
+ sprintf(buf, "%lu", ttl);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -198,7 +198,7 @@ totext_sig(ARGS_TOTEXT) {
*/
foot = uint16_fromregion(&sr);
isc_region_consume(&sr, 2);
- sprintf(buf, "%lu", foot);
+ sprintf(buf, "%lu", foot);
RETERR(str_totext(buf, target));
RETERR(str_totext(" ", target));
@@ -220,7 +220,7 @@ totext_sig(ARGS_TOTEXT) {
tctx->linebreak, target));
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
RETERR(str_totext(" )", target));
-
+
return (ISC_R_SUCCESS);
}
@@ -232,7 +232,7 @@ fromwire_sig(ARGS_FROMWIRE) {
REQUIRE(type == 24);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
UNUSED(rdclass);
isc_buffer_activeregion(source, &sr);
@@ -291,7 +291,7 @@ towire_sig(ARGS_TOWIRE) {
*/
dns_name_init(&name, NULL);
dns_name_fromregion(&name, &sr);
- isc_region_consume(&sr, name_length(&name));
+ isc_region_consume(&sr, name_length(&name));
RETERR(dns_name_towire(&name, cctx, target));
/*
@@ -351,7 +351,7 @@ fromstruct_sig(ARGS_FROMSTRUCT) {
REQUIRE(sig->common.rdclass == rdclass);
REQUIRE((sig->signature != NULL && sig->siglen != 0) ||
(sig->signature == NULL && sig->siglen == 0));
-
+
/*
* Type covered.
*/
@@ -406,7 +406,7 @@ tostruct_sig(ARGS_TOSTRUCT) {
REQUIRE(rdata->type == 24);
REQUIRE(target != NULL);
-
+
sig->common.rdclass = rdata->rdclass;
sig->common.rdtype = rdata->type;
ISC_LINK_INIT(&sig->common, link);
diff --git a/lib/dns/rdata/generic/sig_24.h b/lib/dns/rdata/generic/sig_24.h
index 9e8880c157..779c1545f0 100644
--- a/lib/dns/rdata/generic/sig_24.h
+++ b/lib/dns/rdata/generic/sig_24.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_SIG_24_H
#define GENERIC_SIG_24_H 1
-/* $Id: sig_24.h,v 1.19 2000/07/27 09:49:43 tale Exp $ */
+/* $Id: sig_24.h,v 1.20 2000/08/01 01:26:01 tale Exp $ */
/* RFC 2535 */
diff --git a/lib/dns/rdata/generic/soa_6.c b/lib/dns/rdata/generic/soa_6.c
index b6fc2a6015..4b4c538c5c 100644
--- a/lib/dns/rdata/generic/soa_6.c
+++ b/lib/dns/rdata/generic/soa_6.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: soa_6.c,v 1.41 2000/07/27 09:49:44 tale Exp $ */
+/* $Id: soa_6.c,v 1.42 2000/08/01 01:26:02 tale Exp $ */
/* Reviewed: Thu Mar 16 15:18:32 PST 2000 by explorer */
@@ -90,7 +90,7 @@ totext_soa(ARGS_TOTEXT) {
sub = name_prefix(&mname, tctx->origin, &prefix);
RETERR(dns_name_totext(&prefix, sub, target));
-
+
RETERR(str_totext(" ", target));
sub = name_prefix(&rname, tctx->origin, &prefix);
@@ -139,7 +139,7 @@ fromwire_soa(ARGS_FROMWIRE) {
isc_region_t tregion;
UNUSED(rdclass);
-
+
REQUIRE(type == 6);
dns_decompress_setmethods(dctx, DNS_COMPRESS_GLOBAL14);
diff --git a/lib/dns/rdata/generic/soa_6.h b/lib/dns/rdata/generic/soa_6.h
index 83cd9603a1..19e78c6a3b 100644
--- a/lib/dns/rdata/generic/soa_6.h
+++ b/lib/dns/rdata/generic/soa_6.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_SOA_6_H
#define GENERIC_SOA_6_H 1
-/* $Id: soa_6.h,v 1.24 2000/07/27 09:49:46 tale Exp $ */
+/* $Id: soa_6.h,v 1.25 2000/08/01 01:26:03 tale Exp $ */
typedef struct dns_rdata_soa {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/tkey_249.c b/lib/dns/rdata/generic/tkey_249.c
index ce444b49c2..53685e9a56 100644
--- a/lib/dns/rdata/generic/tkey_249.c
+++ b/lib/dns/rdata/generic/tkey_249.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tkey_249.c,v 1.37 2000/07/27 09:49:47 tale Exp $ */
+/* $Id: tkey_249.c,v 1.38 2000/08/01 01:26:04 tale Exp $ */
/*
* Reviewed: Thu Mar 16 17:35:30 PST 2000 by halley.
@@ -117,7 +117,7 @@ fromtext_tkey(ARGS_FROMTEXT) {
static inline isc_result_t
totext_tkey(ARGS_TOTEXT) {
isc_region_t sr, dr;
- char buf[sizeof "4294967295 "];
+ char buf[sizeof "4294967295 "];
unsigned long n;
dns_name_t name;
dns_name_t prefix;
@@ -196,7 +196,7 @@ totext_tkey(ARGS_TOTEXT) {
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
RETERR(str_totext(" ) ", target));
else
- RETERR(str_totext(" ", target));
+ RETERR(str_totext(" ", target));
isc_region_consume(&sr, n);
/*
@@ -236,7 +236,7 @@ fromwire_tkey(ARGS_FROMWIRE) {
REQUIRE(type == 249);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
/*
* Algorithm.
*/
@@ -311,7 +311,7 @@ compare_tkey(ARGS_COMPARE) {
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 249);
-
+
/*
* Algorithm.
*/
diff --git a/lib/dns/rdata/generic/tkey_249.h b/lib/dns/rdata/generic/tkey_249.h
index c423d5616c..8229f8f7f6 100644
--- a/lib/dns/rdata/generic/tkey_249.h
+++ b/lib/dns/rdata/generic/tkey_249.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_TKEY_249_H
#define GENERIC_TKEY_249_H 1
-/* $Id: tkey_249.h,v 1.16 2000/07/27 09:49:48 tale Exp $ */
+/* $Id: tkey_249.h,v 1.17 2000/08/01 01:26:06 tale Exp $ */
/* draft-ietf-dnsind-tkey-00.txt */
diff --git a/lib/dns/rdata/generic/txt_16.c b/lib/dns/rdata/generic/txt_16.c
index c7db7d180f..68a7f5d592 100644
--- a/lib/dns/rdata/generic/txt_16.c
+++ b/lib/dns/rdata/generic/txt_16.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: txt_16.c,v 1.29 2000/07/27 09:49:49 tale Exp $ */
+/* $Id: txt_16.c,v 1.30 2000/08/01 01:26:07 tale Exp $ */
/* Reviewed: Thu Mar 16 15:40:00 PST 2000 by bwelling */
@@ -105,7 +105,7 @@ static inline int
compare_txt(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 16);
@@ -189,7 +189,7 @@ additionaldata_txt(ARGS_ADDLDATA) {
UNUSED(rdata);
UNUSED(add);
UNUSED(arg);
-
+
return (ISC_R_SUCCESS);
}
diff --git a/lib/dns/rdata/generic/txt_16.h b/lib/dns/rdata/generic/txt_16.h
index 068dee2040..0e2ba89ea1 100644
--- a/lib/dns/rdata/generic/txt_16.h
+++ b/lib/dns/rdata/generic/txt_16.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_TXT_16_H
#define GENERIC_TXT_16_H 1
-/* $Id: txt_16.h,v 1.21 2000/07/27 09:49:50 tale Exp $ */
+/* $Id: txt_16.h,v 1.22 2000/08/01 01:26:08 tale Exp $ */
typedef struct dns_rdata_txt_string {
isc_uint8_t length;
diff --git a/lib/dns/rdata/generic/unspec_103.c b/lib/dns/rdata/generic/unspec_103.c
index 88db1eccc3..22abfe808f 100644
--- a/lib/dns/rdata/generic/unspec_103.c
+++ b/lib/dns/rdata/generic/unspec_103.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: unspec_103.c,v 1.22 2000/07/27 09:49:51 tale Exp $ */
+/* $Id: unspec_103.c,v 1.23 2000/08/01 01:26:09 tale Exp $ */
#ifndef RDATA_GENERIC_UNSPEC_103_C
#define RDATA_GENERIC_UNSPEC_103_C
@@ -53,7 +53,7 @@ fromwire_unspec(ARGS_FROMWIRE) {
UNUSED(rdclass);
UNUSED(dctx);
UNUSED(downcase);
-
+
isc_buffer_activeregion(source, &sr);
isc_buffer_forward(source, sr.length);
return (mem_tobuffer(target, sr.base, sr.length));
diff --git a/lib/dns/rdata/generic/unspec_103.h b/lib/dns/rdata/generic/unspec_103.h
index 4543ff834e..c68167b443 100644
--- a/lib/dns/rdata/generic/unspec_103.h
+++ b/lib/dns/rdata/generic/unspec_103.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_UNSPEC_103_H
#define GENERIC_UNSPEC_103_H 1
-/* $Id: unspec_103.h,v 1.10 2000/07/27 09:49:52 tale Exp $ */
+/* $Id: unspec_103.h,v 1.11 2000/08/01 01:26:10 tale Exp $ */
typedef struct dns_rdata_unspec_t {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/generic/x25_19.c b/lib/dns/rdata/generic/x25_19.c
index 9b967a1ff9..f40c4106d5 100644
--- a/lib/dns/rdata/generic/x25_19.c
+++ b/lib/dns/rdata/generic/x25_19.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: x25_19.c,v 1.22 2000/07/27 09:49:53 tale Exp $ */
+/* $Id: x25_19.c,v 1.23 2000/08/01 01:26:11 tale Exp $ */
/* Reviewed: Thu Mar 16 16:15:57 PST 2000 by bwelling */
@@ -87,7 +87,7 @@ static inline int
compare_x25(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 19);
diff --git a/lib/dns/rdata/generic/x25_19.h b/lib/dns/rdata/generic/x25_19.h
index 2815458349..75d33c9ffb 100644
--- a/lib/dns/rdata/generic/x25_19.h
+++ b/lib/dns/rdata/generic/x25_19.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef GENERIC_X25_19_H
#define GENERIC_X25_19_H 1
-/* $Id: x25_19.h,v 1.11 2000/07/27 09:49:54 tale Exp $ */
+/* $Id: x25_19.h,v 1.12 2000/08/01 01:26:12 tale Exp $ */
/* RFC 1183 */
diff --git a/lib/dns/rdata/hs_4/a_1.c b/lib/dns/rdata/hs_4/a_1.c
index 9e7c28a510..6a7e2a3e1d 100644
--- a/lib/dns/rdata/hs_4/a_1.c
+++ b/lib/dns/rdata/hs_4/a_1.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: a_1.c,v 1.15 2000/07/27 09:49:56 tale Exp $ */
+/* $Id: a_1.c,v 1.16 2000/08/01 01:26:13 tale Exp $ */
/* reviewed: Thu Mar 16 15:58:36 PST 2000 by brister */
@@ -114,7 +114,7 @@ towire_hs_a(ARGS_TOWIRE) {
static inline int
compare_hs_a(ARGS_COMPARE) {
int order;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->type);
REQUIRE(rdata1->type == 1);
diff --git a/lib/dns/rdata/hs_4/a_1.h b/lib/dns/rdata/hs_4/a_1.h
index dd2aa6b417..543863464a 100644
--- a/lib/dns/rdata/hs_4/a_1.h
+++ b/lib/dns/rdata/hs_4/a_1.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef HS_4_A_1_H
#define HS_4_A_1_H 1
-/* $Id: a_1.h,v 1.5 2000/07/27 09:49:57 tale Exp $ */
+/* $Id: a_1.h,v 1.6 2000/08/01 01:26:14 tale Exp $ */
typedef struct dns_rdata_hs_a {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/in_1/a6_38.c b/lib/dns/rdata/in_1/a6_38.c
index 7f4c86fd42..c582b8aeac 100644
--- a/lib/dns/rdata/in_1/a6_38.c
+++ b/lib/dns/rdata/in_1/a6_38.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: a6_38.c,v 1.35 2000/07/27 09:49:58 tale Exp $ */
+/* $Id: a6_38.c,v 1.36 2000/08/01 01:26:16 tale Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
@@ -211,7 +211,7 @@ compare_in_a6(ARGS_COMPARE) {
dns_name_t name2;
isc_region_t region1;
isc_region_t region2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 38);
diff --git a/lib/dns/rdata/in_1/a6_38.h b/lib/dns/rdata/in_1/a6_38.h
index ccfc396437..945949856b 100644
--- a/lib/dns/rdata/in_1/a6_38.h
+++ b/lib/dns/rdata/in_1/a6_38.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_A6_38_H
#define IN_1_A6_38_H 1
-/* $Id: a6_38.h,v 1.15 2000/07/27 09:49:59 tale Exp $ */
+/* $Id: a6_38.h,v 1.16 2000/08/01 01:26:17 tale Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
diff --git a/lib/dns/rdata/in_1/a_1.c b/lib/dns/rdata/in_1/a_1.c
index ba9224daa2..a1631f213f 100644
--- a/lib/dns/rdata/in_1/a_1.c
+++ b/lib/dns/rdata/in_1/a_1.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: a_1.c,v 1.36 2000/07/27 09:50:00 tale Exp $ */
+/* $Id: a_1.c,v 1.37 2000/08/01 01:26:18 tale Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
@@ -138,7 +138,7 @@ fromstruct_in_a(ARGS_FROMSTRUCT) {
REQUIRE(a->common.rdtype == type);
REQUIRE(a->common.rdclass == rdclass);
- n = ntohl(a->in_addr.s_addr);
+ n = ntohl(a->in_addr.s_addr);
return (uint32_tobuffer(n, target));
}
diff --git a/lib/dns/rdata/in_1/a_1.h b/lib/dns/rdata/in_1/a_1.h
index 8c4574b7df..9da7331248 100644
--- a/lib/dns/rdata/in_1/a_1.h
+++ b/lib/dns/rdata/in_1/a_1.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_A_1_H
#define IN_1_A_1_H 1
-/* $Id: a_1.h,v 1.21 2000/07/27 09:50:02 tale Exp $ */
+/* $Id: a_1.h,v 1.22 2000/08/01 01:26:19 tale Exp $ */
typedef struct dns_rdata_in_a {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/in_1/aaaa_28.c b/lib/dns/rdata/in_1/aaaa_28.c
index 2969af461c..d3ace06ff7 100644
--- a/lib/dns/rdata/in_1/aaaa_28.c
+++ b/lib/dns/rdata/in_1/aaaa_28.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: aaaa_28.c,v 1.27 2000/07/27 09:50:03 tale Exp $ */
+/* $Id: aaaa_28.c,v 1.28 2000/08/01 01:26:20 tale Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
diff --git a/lib/dns/rdata/in_1/aaaa_28.h b/lib/dns/rdata/in_1/aaaa_28.h
index 93d55b063e..3c8c211630 100644
--- a/lib/dns/rdata/in_1/aaaa_28.h
+++ b/lib/dns/rdata/in_1/aaaa_28.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,13 +18,13 @@
#ifndef IN_1_AAAA_28_H
#define IN_1_AAAA_28_H 1
-/* $Id: aaaa_28.h,v 1.14 2000/07/27 09:50:04 tale Exp $ */
+/* $Id: aaaa_28.h,v 1.15 2000/08/01 01:26:21 tale Exp $ */
/* RFC 1886 */
typedef struct dns_rdata_in_aaaa {
dns_rdatacommon_t common;
- struct in6_addr in6_addr;
+ struct in6_addr in6_addr;
} dns_rdata_in_aaaa_t;
#endif /* IN_1_AAAA_28_H */
diff --git a/lib/dns/rdata/in_1/kx_36.c b/lib/dns/rdata/in_1/kx_36.c
index f7e293785c..7c25658321 100644
--- a/lib/dns/rdata/in_1/kx_36.c
+++ b/lib/dns/rdata/in_1/kx_36.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: kx_36.c,v 1.28 2000/07/27 09:50:05 tale Exp $ */
+/* $Id: kx_36.c,v 1.29 2000/08/01 01:26:22 tale Exp $ */
/* Reviewed: Thu Mar 16 17:24:54 PST 2000 by explorer */
@@ -84,7 +84,7 @@ fromwire_in_kx(ARGS_FROMWIRE) {
REQUIRE(rdclass == 1);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
isc_buffer_activeregion(source, &sregion);
diff --git a/lib/dns/rdata/in_1/kx_36.h b/lib/dns/rdata/in_1/kx_36.h
index 2de40aa9c9..d4aef31c6d 100644
--- a/lib/dns/rdata/in_1/kx_36.h
+++ b/lib/dns/rdata/in_1/kx_36.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_KX_36_H
#define IN_1_KX_36_H 1
-/* $Id: kx_36.h,v 1.13 2000/07/27 09:50:06 tale Exp $ */
+/* $Id: kx_36.h,v 1.14 2000/08/01 01:26:24 tale Exp $ */
/* RFC 2230 */
diff --git a/lib/dns/rdata/in_1/naptr_35.c b/lib/dns/rdata/in_1/naptr_35.c
index 01f06c11d4..c5157e5eff 100644
--- a/lib/dns/rdata/in_1/naptr_35.c
+++ b/lib/dns/rdata/in_1/naptr_35.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: naptr_35.c,v 1.32 2000/07/27 09:50:07 tale Exp $ */
+/* $Id: naptr_35.c,v 1.33 2000/08/01 01:26:25 tale Exp $ */
/* Reviewed: Thu Mar 16 16:52:50 PST 2000 by bwelling */
@@ -149,7 +149,7 @@ fromwire_in_naptr(ARGS_FROMWIRE) {
REQUIRE(rdclass == 1);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
/*
@@ -197,7 +197,7 @@ towire_in_naptr(ARGS_TOWIRE) {
dns_rdata_toregion(rdata, &sr);
RETERR(mem_tobuffer(target, sr.base, 4));
isc_region_consume(&sr, 4);
-
+
/*
* Flags.
*/
@@ -400,7 +400,7 @@ tostruct_in_naptr(ARGS_TOSTRUCT) {
static inline void
freestruct_in_naptr(ARGS_FREESTRUCT) {
dns_rdata_in_naptr_t *naptr = source;
-
+
REQUIRE(source != NULL);
REQUIRE(naptr->common.rdclass == 1);
REQUIRE(naptr->common.rdtype == 35);
@@ -434,7 +434,7 @@ additionaldata_in_naptr(ARGS_ADDLDATA) {
*/
dns_rdata_toregion(rdata, &sr);
isc_region_consume(&sr, 4);
-
+
/*
* Flags.
*/
@@ -530,7 +530,7 @@ digest_in_naptr(ARGS_DIGEST) {
dns_name_init(&name, NULL);
dns_name_fromregion(&name, &r2);
-
+
return (dns_name_digest(&name, digest, arg));
}
diff --git a/lib/dns/rdata/in_1/naptr_35.h b/lib/dns/rdata/in_1/naptr_35.h
index ff416afd3f..502b7825c5 100644
--- a/lib/dns/rdata/in_1/naptr_35.h
+++ b/lib/dns/rdata/in_1/naptr_35.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_NAPTR_35_H
#define IN_1_NAPTR_35_H 1
-/* $Id: naptr_35.h,v 1.15 2000/07/27 09:50:08 tale Exp $ */
+/* $Id: naptr_35.h,v 1.16 2000/08/01 01:26:26 tale Exp $ */
/* RFC 2168 */
diff --git a/lib/dns/rdata/in_1/nsap-ptr_23.c b/lib/dns/rdata/in_1/nsap-ptr_23.c
index bd66ad0eb4..72611f1f48 100644
--- a/lib/dns/rdata/in_1/nsap-ptr_23.c
+++ b/lib/dns/rdata/in_1/nsap-ptr_23.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: nsap-ptr_23.c,v 1.23 2000/07/27 09:50:09 tale Exp $ */
+/* $Id: nsap-ptr_23.c,v 1.24 2000/08/01 01:26:27 tale Exp $ */
/* Reviewed: Fri Mar 17 10:16:02 PST 2000 by gson */
@@ -34,7 +34,7 @@ fromtext_in_nsap_ptr(ARGS_FROMTEXT) {
REQUIRE(type == 23);
REQUIRE(rdclass == 1);
-
+
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
dns_name_init(&name, NULL);
@@ -72,7 +72,7 @@ fromwire_in_nsap_ptr(ARGS_FROMWIRE) {
REQUIRE(rdclass == 1);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
return (dns_name_fromwire(&name, source, dctx, downcase, target));
}
diff --git a/lib/dns/rdata/in_1/nsap-ptr_23.h b/lib/dns/rdata/in_1/nsap-ptr_23.h
index 677af34a62..0dc29123ff 100644
--- a/lib/dns/rdata/in_1/nsap-ptr_23.h
+++ b/lib/dns/rdata/in_1/nsap-ptr_23.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_NSAP_PTR_23_H
#define IN_1_NSAP_PTR_23_H 1
-/* $Id: nsap-ptr_23.h,v 1.12 2000/07/27 09:50:10 tale Exp $ */
+/* $Id: nsap-ptr_23.h,v 1.13 2000/08/01 01:26:28 tale Exp $ */
/* RFC 1348. Obsoleted in RFC 1706 - use PTR instead. */
diff --git a/lib/dns/rdata/in_1/nsap_22.c b/lib/dns/rdata/in_1/nsap_22.c
index 8db3b95b00..1b86674a5f 100644
--- a/lib/dns/rdata/in_1/nsap_22.c
+++ b/lib/dns/rdata/in_1/nsap_22.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: nsap_22.c,v 1.24 2000/07/27 09:50:11 tale Exp $ */
+/* $Id: nsap_22.c,v 1.25 2000/08/01 01:26:29 tale Exp $ */
/* Reviewed: Fri Mar 17 10:41:07 PST 2000 by gson */
@@ -124,7 +124,7 @@ static inline int
compare_in_nsap(ARGS_COMPARE) {
isc_region_t r1;
isc_region_t r2;
-
+
REQUIRE(rdata1->type == rdata2->type);
REQUIRE(rdata1->rdclass == rdata2->rdclass);
REQUIRE(rdata1->type == 22);
diff --git a/lib/dns/rdata/in_1/nsap_22.h b/lib/dns/rdata/in_1/nsap_22.h
index e7e852d6a4..300195d70d 100644
--- a/lib/dns/rdata/in_1/nsap_22.h
+++ b/lib/dns/rdata/in_1/nsap_22.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_NSAP_22_H
#define IN_1_NSAP_22_H 1
-/* $Id: nsap_22.h,v 1.11 2000/07/27 09:50:13 tale Exp $ */
+/* $Id: nsap_22.h,v 1.12 2000/08/01 01:26:30 tale Exp $ */
/* RFC 1706 */
diff --git a/lib/dns/rdata/in_1/px_26.c b/lib/dns/rdata/in_1/px_26.c
index 66141068be..ef571e48cb 100644
--- a/lib/dns/rdata/in_1/px_26.c
+++ b/lib/dns/rdata/in_1/px_26.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: px_26.c,v 1.25 2000/07/27 09:50:14 tale Exp $ */
+/* $Id: px_26.c,v 1.26 2000/08/01 01:26:31 tale Exp $ */
/* Reviewed: Mon Mar 20 10:44:27 PST 2000 */
@@ -113,7 +113,7 @@ fromwire_in_px(ARGS_FROMWIRE) {
REQUIRE(rdclass == 1);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
/*
diff --git a/lib/dns/rdata/in_1/px_26.h b/lib/dns/rdata/in_1/px_26.h
index ed749b4684..a965ddb395 100644
--- a/lib/dns/rdata/in_1/px_26.h
+++ b/lib/dns/rdata/in_1/px_26.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_PX_26_H
#define IN_1_PX_26_H 1
-/* $Id: px_26.h,v 1.12 2000/07/27 09:50:15 tale Exp $ */
+/* $Id: px_26.h,v 1.13 2000/08/01 01:26:32 tale Exp $ */
/* RFC 2163 */
diff --git a/lib/dns/rdata/in_1/srv_33.c b/lib/dns/rdata/in_1/srv_33.c
index a31797c1b3..25155abaf9 100644
--- a/lib/dns/rdata/in_1/srv_33.c
+++ b/lib/dns/rdata/in_1/srv_33.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: srv_33.c,v 1.27 2000/07/27 09:50:16 tale Exp $ */
+/* $Id: srv_33.c,v 1.28 2000/08/01 01:26:34 tale Exp $ */
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
@@ -129,7 +129,7 @@ fromwire_in_srv(ARGS_FROMWIRE) {
REQUIRE(rdclass == 1);
dns_decompress_setmethods(dctx, DNS_COMPRESS_NONE);
-
+
dns_name_init(&name, NULL);
/*
diff --git a/lib/dns/rdata/in_1/srv_33.h b/lib/dns/rdata/in_1/srv_33.h
index 3da95db3cb..cd181a0207 100644
--- a/lib/dns/rdata/in_1/srv_33.h
+++ b/lib/dns/rdata/in_1/srv_33.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_SRV_33_H
#define IN_1_SRV_33_H 1
-/* $Id: srv_33.h,v 1.12 2000/07/27 09:50:17 tale Exp $ */
+/* $Id: srv_33.h,v 1.13 2000/08/01 01:26:35 tale Exp $ */
/* Reviewed: Fri Mar 17 13:01:00 PST 2000 by bwelling */
diff --git a/lib/dns/rdata/in_1/wks_11.c b/lib/dns/rdata/in_1/wks_11.c
index 45b02c018a..879a25a23f 100644
--- a/lib/dns/rdata/in_1/wks_11.c
+++ b/lib/dns/rdata/in_1/wks_11.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: wks_11.c,v 1.33 2000/07/27 09:50:18 tale Exp $ */
+/* $Id: wks_11.c,v 1.34 2000/08/01 01:26:36 tale Exp $ */
/* Reviewed: Fri Mar 17 15:01:49 PST 2000 by explorer */
@@ -52,7 +52,7 @@ fromtext_in_wks(ARGS_FROMTEXT) {
REQUIRE(type == 11);
REQUIRE(rdclass == 1);
-
+
/*
* IPv4 dotted quad.
*/
diff --git a/lib/dns/rdata/in_1/wks_11.h b/lib/dns/rdata/in_1/wks_11.h
index 03ea51d4ae..b9cb9d9284 100644
--- a/lib/dns/rdata/in_1/wks_11.h
+++ b/lib/dns/rdata/in_1/wks_11.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef IN_1_WKS_11_H
#define IN_1_WKS_11_H 1
-/* $Id: wks_11.h,v 1.17 2000/07/27 09:50:19 tale Exp $ */
+/* $Id: wks_11.h,v 1.18 2000/08/01 01:26:37 tale Exp $ */
typedef struct dns_rdata_in_wks {
dns_rdatacommon_t common;
diff --git a/lib/dns/rdata/rdatastructpre.h b/lib/dns/rdata/rdatastructpre.h
index 48de77b2c4..e28cfe3d50 100644
--- a/lib/dns/rdata/rdatastructpre.h
+++ b/lib/dns/rdata/rdatastructpre.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatastructpre.h,v 1.11 2000/07/31 20:57:06 tale Exp $ */
+/* $Id: rdatastructpre.h,v 1.12 2000/08/01 01:25:01 tale Exp $ */
#ifndef DNS_RDATASTRUCT_H
#define DNS_RDATASTRUCT_H 1
diff --git a/lib/dns/rdata/rdatastructsuf.h b/lib/dns/rdata/rdatastructsuf.h
index 8965eb2af7..3cbbd0e3c5 100644
--- a/lib/dns/rdata/rdatastructsuf.h
+++ b/lib/dns/rdata/rdatastructsuf.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatastructsuf.h,v 1.5 2000/07/27 09:48:45 tale Exp $ */
+/* $Id: rdatastructsuf.h,v 1.6 2000/08/01 01:25:02 tale Exp $ */
ISC_LANG_ENDDECLS
diff --git a/lib/dns/rdatalist.c b/lib/dns/rdatalist.c
index 136b58c2f7..22efa12637 100644
--- a/lib/dns/rdatalist.c
+++ b/lib/dns/rdatalist.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatalist.c,v 1.21 2000/07/27 09:46:28 tale Exp $ */
+/* $Id: rdatalist.c,v 1.22 2000/08/01 01:22:45 tale Exp $ */
#include
diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c
index 8a74c5ce2b..e3d03bd747 100644
--- a/lib/dns/rdataset.c
+++ b/lib/dns/rdataset.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataset.c,v 1.47 2000/07/27 09:46:29 tale Exp $ */
+/* $Id: rdataset.c,v 1.48 2000/08/01 01:22:46 tale Exp $ */
#include
@@ -64,7 +64,7 @@ dns_rdataset_invalidate(dns_rdataset_t *rdataset) {
REQUIRE(DNS_RDATASET_VALID(rdataset));
REQUIRE(rdataset->methods == NULL);
-
+
rdataset->magic = 0;
ISC_LINK_INIT(rdataset, link);
rdataset->rdclass = 0;
@@ -111,7 +111,7 @@ dns_rdataset_isassociated(dns_rdataset_t *rdataset) {
/*
* Is 'rdataset' associated?
*/
-
+
REQUIRE(DNS_RDATASET_VALID(rdataset));
if (rdataset->methods != NULL)
@@ -209,7 +209,7 @@ dns_rdataset_clone(dns_rdataset_t *source, dns_rdataset_t *target) {
REQUIRE(source->methods != NULL);
REQUIRE(DNS_RDATASET_VALID(target));
REQUIRE(target->methods == NULL);
-
+
(source->methods->clone)(source, target);
}
@@ -255,7 +255,7 @@ dns_rdataset_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata) {
#define MAX_SHUFFLE 32
#define WANT_FIXED(r) (((r)->attributes & DNS_RDATASETATTR_FIXEDORDER) != 0)
#define WANT_RANDOM(r) (((r)->attributes & DNS_RDATASETATTR_RANDOMIZE) != 0)
-
+
isc_result_t
dns_rdataset_towire(dns_rdataset_t *rdataset,
diff --git a/lib/dns/rdatasetiter.c b/lib/dns/rdatasetiter.c
index f250a28539..1bcd9d2474 100644
--- a/lib/dns/rdatasetiter.c
+++ b/lib/dns/rdatasetiter.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdatasetiter.c,v 1.9 2000/07/27 09:46:30 tale Exp $ */
+/* $Id: rdatasetiter.c,v 1.10 2000/08/01 01:22:47 tale Exp $ */
#include
diff --git a/lib/dns/rdataslab.c b/lib/dns/rdataslab.c
index 2dc63e2b0c..552cd953a4 100644
--- a/lib/dns/rdataslab.c
+++ b/lib/dns/rdataslab.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rdataslab.c,v 1.14 2000/07/27 09:46:31 tale Exp $ */
+/* $Id: rdataslab.c,v 1.15 2000/08/01 01:22:49 tale Exp $ */
#include
@@ -118,7 +118,7 @@ dns_rdataslab_size(unsigned char *slab, unsigned int reservelen) {
length += *current++;
current += length;
}
-
+
return ((unsigned int)(current - slab));
}
@@ -142,7 +142,7 @@ dns_rdataslab_merge(unsigned char *oslab, unsigned char *nslab,
* XXX Need parameter to allow "delete rdatasets in nslab" merge,
* or perhaps another merge routine for this purpose.
*/
-
+
REQUIRE(tslabp != NULL && *tslabp == NULL);
REQUIRE(oslab != NULL && nslab != NULL);
@@ -218,7 +218,7 @@ dns_rdataslab_merge(unsigned char *oslab, unsigned char *nslab,
return (ISC_R_NOMEMORY);
memcpy(tstart, nslab, reservelen);
tcurrent = tstart + reservelen;
-
+
/*
* Write the new count.
*/
@@ -360,7 +360,7 @@ dns_rdataslab_subtract(unsigned char *mslab, unsigned char *sslab,
return (ISC_R_NOMEMORY);
memcpy(tstart, mslab, reservelen);
tcurrent = tstart + reservelen;
-
+
/*
* Write the new count.
*/
diff --git a/lib/dns/request.c b/lib/dns/request.c
index 8eba27253e..fc85384434 100644
--- a/lib/dns/request.c
+++ b/lib/dns/request.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: request.c,v 1.30 2000/07/27 09:46:32 tale Exp $ */
+/* $Id: request.c,v 1.31 2000/08/01 01:22:50 tale Exp $ */
#include
@@ -237,7 +237,7 @@ dns_requestmgr_shutdown(dns_requestmgr_t *requestmgr) {
UNLOCK(&requestmgr->lock);
}
-static void
+static void
mgr_shutdown(dns_requestmgr_t *requestmgr) {
dns_request_t *request;
@@ -495,7 +495,7 @@ dns_request_create(dns_requestmgr_t *requestmgr, dns_message_t *message,
request->event->result = ISC_R_FAILURE;
if (key != NULL)
dns_tsigkey_attach(key, &request->tsigkey);
-
+
use_tcp:
if ((options & DNS_REQUESTOPT_TCP) != 0) {
result = isc_socket_create(requestmgr->socketmgr,
@@ -631,7 +631,7 @@ dns_request_create(dns_requestmgr_t *requestmgr, dns_message_t *message,
if (request->mctx != NULL)
isc_mem_detach(&request->mctx);
isc_mem_put(mctx, request, sizeof *request);
- req_log(ISC_LOG_DEBUG(3), "dns_request_create: failed %s",
+ req_log(ISC_LOG_DEBUG(3), "dns_request_create: failed %s",
dns_result_totext(result));
return (result);
}
@@ -764,7 +764,7 @@ void
dns_request_destroy(dns_request_t **requestp) {
dns_request_t *request;
isc_boolean_t need_destroy = ISC_FALSE;
-
+
REQUIRE(requestp != NULL && VALID_REQUEST(*requestp));
request = *requestp;
@@ -810,7 +810,7 @@ req_connected(isc_task_t *task, isc_event_t *event) {
result = sevent->result;
if (result == ISC_R_SUCCESS)
result = req_send(request, task, NULL);
-
+
if (sevent->result != ISC_R_SUCCESS)
dns_request_cancel(request);
}
@@ -846,7 +846,7 @@ req_response(isc_task_t *task, isc_event_t *event) {
REQUIRE(event->ev_type == DNS_EVENT_DISPATCH);
UNUSED(task);
-
+
req_log(ISC_LOG_DEBUG(3), "req_response: request %p: %s", request,
dns_result_totext(devent->result));
@@ -882,7 +882,7 @@ req_response(isc_task_t *task, isc_event_t *event) {
static void
req_timeout(isc_task_t *task, isc_event_t *event) {
dns_request_t *request = event->ev_arg;
-
+
REQUIRE(VALID_REQUEST(request));
req_log(ISC_LOG_DEBUG(3), "req_timeout: request %p", request);
diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c
index 8b16654bb9..9892104458 100644
--- a/lib/dns/resolver.c
+++ b/lib/dns/resolver.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resolver.c,v 1.161 2000/07/29 01:18:36 bwelling Exp $ */
+/* $Id: resolver.c,v 1.162 2000/08/01 01:22:51 tale Exp $ */
#include
@@ -330,13 +330,13 @@ fctx_startidletimer(fetchctx_t *fctx) {
static inline void
resquery_destroy(resquery_t **queryp) {
resquery_t *query;
-
+
REQUIRE(queryp != NULL);
query = *queryp;
REQUIRE(!ISC_LINK_LINKED(query, link));
INSIST(query->tcpsocket == NULL);
-
+
query->magic = 0;
isc_mem_put(query->mctx, query, sizeof(*query));
*queryp = NULL;
@@ -421,7 +421,7 @@ fctx_cancelquery(resquery_t **queryp, dns_dispatchevent_t **deventp,
if (query->dispatch != NULL)
dns_dispatch_detach(&query->dispatch);
-
+
if (! (RESQUERY_CONNECTING(query) || RESQUERY_SENDING(query)))
/*
* It's safe to destroy the query now.
@@ -642,7 +642,7 @@ fctx_setretryinterval(fetchctx_t *fctx, unsigned int rtt) {
* Double the round-trip time and convert to seconds.
*/
rtt /= 500000;
-
+
/*
* Always wait for at least the doubled round-trip time.
*/
@@ -696,7 +696,7 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
result = isc_time_now(&query->start);
if (result != ISC_R_SUCCESS)
goto cleanup_query;
-
+
/*
* If this is a TCP query, then we need to make a socket and
* a dispatch for it here. Otherwise we use the resolver's
@@ -711,7 +711,7 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
pf = isc_sockaddr_pf(&addrinfo->sockaddr);
- result = isc_socket_create(res->socketmgr, pf,
+ result = isc_socket_create(res->socketmgr, pf,
isc_sockettype_tcp,
&query->tcpsocket);
if (result != ISC_R_SUCCESS)
@@ -730,7 +730,7 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
result = isc_socket_bind(query->tcpsocket, &any);
if (result != ISC_R_SUCCESS)
goto cleanup_socket;
-
+
/*
* A dispatch will be created once the connect succeeds.
*/
@@ -1076,7 +1076,7 @@ resquery_connected(isc_task_t *task, isc_event_t *event) {
} else {
if (sevent->result == ISC_R_SUCCESS) {
unsigned int attrs;
-
+
/*
* We are connected. Create a dispatcher and
* send the query.
@@ -1097,7 +1097,7 @@ resquery_connected(isc_task_t *task, isc_event_t *event) {
query->fctx->res->taskmgr,
4096, 2, 1, 1, 3, attrs,
&query->dispatch);
-
+
/*
* Regardless of whether dns_dispatch_create()
* succeeded or not, we don't need our reference
@@ -1107,7 +1107,7 @@ resquery_connected(isc_task_t *task, isc_event_t *event) {
if (result == ISC_R_SUCCESS)
result = resquery_send(query);
-
+
if (result != ISC_R_SUCCESS) {
fetchctx_t *fctx = query->fctx;
fctx_cancelquery(&query, NULL, NULL,
@@ -1119,7 +1119,7 @@ resquery_connected(isc_task_t *task, isc_event_t *event) {
fctx_cancelquery(&query, NULL, NULL, ISC_FALSE);
}
}
-
+
isc_event_free(&event);
}
@@ -1198,7 +1198,7 @@ bad_server(fetchctx_t *fctx, isc_sockaddr_t *address) {
if (isc_sockaddr_equal(sa, address))
return (ISC_TRUE);
}
-
+
return (ISC_FALSE);
}
@@ -1240,7 +1240,7 @@ mark_bad(fetchctx_t *fctx) {
else
all_bad = ISC_FALSE;
}
-
+
return (all_bad);
}
@@ -1285,7 +1285,7 @@ sort_adbfind(dns_adbfind_t *find) {
}
ISC_LIST_UNLINK(find->list, best, publink);
ISC_LIST_APPEND(sorted, best, publink);
- }
+ }
find->list = sorted;
}
@@ -1646,7 +1646,7 @@ fctx_try(fetchctx_t *fctx) {
* Sleep waiting for addresses.
*/
FCTXTRACE("addrwait");
- fctx->attributes |= FCTX_ATTR_ADDRWAIT;
+ fctx->attributes |= FCTX_ATTR_ADDRWAIT;
return;
} else if (result != ISC_R_SUCCESS) {
/*
@@ -1779,7 +1779,7 @@ fctx_shutdown(fetchctx_t *fctx) {
if (fctx->want_shutdown)
return;
-
+
fctx->want_shutdown = ISC_TRUE;
/*
@@ -1808,7 +1808,7 @@ fctx_doshutdown(isc_task_t *task, isc_event_t *event) {
res = fctx->res;
bucketnum = fctx->bucketnum;
-
+
FCTXTRACE("doshutdown");
fctx->attributes |= FCTX_ATTR_SHUTTINGDOWN;
@@ -1819,7 +1819,7 @@ fctx_doshutdown(isc_task_t *task, isc_event_t *event) {
fctx->attributes &= ~FCTX_ATTR_ADDRWAIT;
LOCK(&res->buckets[bucketnum].lock);
-
+
INSIST(fctx->state == fetchstate_active ||
fctx->state == fetchstate_done);
INSIST(fctx->want_shutdown);
@@ -1956,7 +1956,7 @@ fctx_join(fetchctx_t *fctx, isc_task_t *task, isc_taskaction_t action,
fetch->magic = DNS_FETCH_MAGIC;
fetch->private = fctx;
-
+
return (ISC_R_SUCCESS);
}
@@ -2028,7 +2028,7 @@ fctx_create(dns_resolver_t *res, dns_name_t *name, dns_rdatatype_t type,
}
INSIST(dns_name_issubdomain(&fctx->name, &fctx->domain));
-
+
fctx->type = type;
fctx->options = options;
/*
@@ -2058,14 +2058,14 @@ fctx_create(dns_resolver_t *res, dns_name_t *name, dns_rdatatype_t type,
fctx->qmessage = NULL;
result = dns_message_create(res->mctx, DNS_MESSAGE_INTENTRENDER,
&fctx->qmessage);
-
+
if (result != ISC_R_SUCCESS)
goto cleanup_domain;
fctx->rmessage = NULL;
result = dns_message_create(res->mctx, DNS_MESSAGE_INTENTPARSE,
&fctx->rmessage);
-
+
if (result != ISC_R_SUCCESS)
goto cleanup_qmessage;
@@ -2170,7 +2170,7 @@ same_question(fetchctx_t *fctx) {
fctx->res->rdclass != rdataset->rdclass ||
!dns_name_equal(&fctx->name, name))
return (DNS_R_FORMERR);
-
+
return (ISC_R_SUCCESS);
}
@@ -2236,7 +2236,7 @@ maybe_destroy(fetchctx_t *fctx) {
unsigned int bucketnum;
isc_boolean_t bucket_empty = ISC_FALSE;
dns_resolver_t *res = fctx->res;
-
+
REQUIRE(SHUTTINGDOWN(fctx));
if (fctx->pending != 0 || fctx->validating != 0)
@@ -2277,7 +2277,7 @@ validated(isc_task_t *task, isc_event_t *event) {
REQUIRE(fctx->validating > 0);
vevent = (dns_validatorevent_t *)event;
-
+
FCTXTRACE("received validation completion event");
/*
@@ -2360,20 +2360,20 @@ validated(isc_task_t *task, isc_event_t *event) {
vevent->name, ISC_TRUE, &node);
if (result != ISC_R_SUCCESS)
goto noanswer_response;
-
+
result = ncache_adderesult(fctx->rmessage,
fctx->res->view->cachedb, node,
covers, now,
fctx->res->view->maxncachettl,
ardataset, &eresult);
if (result != ISC_R_SUCCESS)
- goto noanswer_response;
+ goto noanswer_response;
goto answer_response;
}
FCTXTRACE("validation OK");
-
+
/*
* The data was already cached as pending data.
* Re-cache it as secure and bind the cached
@@ -2403,7 +2403,7 @@ validated(isc_task_t *task, isc_event_t *event) {
}
if (sentresponse) {
- /*
+ /*
* If we only deferred the destroy because we wanted to cache
* the data, destroy now.
*/
@@ -2424,7 +2424,7 @@ validated(isc_task_t *task, isc_event_t *event) {
*/
goto cleanup_event;
}
-
+
result = ISC_R_SUCCESS;
answer_response:
@@ -2432,9 +2432,9 @@ validated(isc_task_t *task, isc_event_t *event) {
* Respond with an answer, positive or negative,
* as opposed to an error. 'node' must be non-NULL.
*/
-
+
fctx->attributes |= FCTX_ATTR_HAVEANSWER;
-
+
if (hevent != NULL) {
hevent->result = eresult;
dns_name_concatenate(vevent->name, NULL,
@@ -2519,7 +2519,7 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, isc_stdtime_t now) {
}
}
}
-
+
/*
* Find or create the cache node.
*/
@@ -2722,7 +2722,7 @@ cache_name(fetchctx_t *fctx, dns_name_t *name, isc_stdtime_t now) {
}
if (valrdataset != NULL) {
- validator = NULL;
+ validator = NULL;
result = dns_validator_create(res->view,
name,
fctx->type,
@@ -2826,7 +2826,7 @@ ncache_adderesult(dns_message_t *message, dns_db_t *cache, dns_dbnode_t *node,
* cache rdataset (because no fetch is interested
* in the outcome), or the cache rdataset is not
* a negative cache entry. Whichever case it is,
- * we can return success.
+ * we can return success.
*
* XXXRTH There's a CNAME/DNAME problem here.
*/
@@ -2957,8 +2957,8 @@ ncache_message(fetchctx_t *fctx, dns_rdatatype_t covers, isc_stdtime_t now) {
covers, now, res->view->maxncachettl,
ardataset, &eresult);
if (result != ISC_R_SUCCESS)
- goto unlock;
-
+ goto unlock;
+
if (!HAVE_ANSWER(fctx)) {
fctx->attributes |= FCTX_ATTR_HAVEANSWER;
if (event != NULL) {
@@ -3163,7 +3163,7 @@ noanswer_response(fetchctx_t *fctx, dns_name_t *oqname) {
if (!dns_name_issubdomain(qname, &fctx->domain))
return (ISC_R_SUCCESS);
}
-
+
/*
* We have to figure out if this is a negative response, or a
* referral.
@@ -3295,7 +3295,7 @@ noanswer_response(fetchctx_t *fctx, dns_name_t *oqname) {
/*
* If the referral name is not a parent of the query
- * name, consider the responder insane.
+ * name, consider the responder insane.
*/
if (! dns_name_issubdomain(&fctx->name, ns_name)) {
FCTXTRACE("referral to non-parent");
@@ -3339,7 +3339,7 @@ noanswer_response(fetchctx_t *fctx, dns_name_t *oqname) {
if (negative_response)
fctx->attributes |= FCTX_ATTR_WANTNCACHE;
-
+
return (ISC_R_SUCCESS);
}
@@ -3828,7 +3828,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
truncated = ISC_TRUE;
break;
case DNS_R_FORMERR:
- if ((query->options & DNS_FETCHOPT_NOEDNS0) == 0) {
+ if ((query->options & DNS_FETCHOPT_NOEDNS0) == 0) {
/*
* The problem might be that they
* don't understand EDNS0. Turn it
@@ -3892,7 +3892,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
* INSIST() that the message comes from the place we sent it to,
* since the dispatch code should ensure this.
*
- * INSIST() that the message id is correct (this should also be
+ * INSIST() that the message id is correct (this should also be
* ensured by the dispatch code).
*/
@@ -3902,7 +3902,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
*/
if ((message->flags & DNS_MESSAGEFLAG_TC) != 0)
truncated = ISC_TRUE;
-
+
if (truncated) {
if ((options & DNS_FETCHOPT_TCP) != 0) {
broken_server = ISC_TRUE;
@@ -4136,7 +4136,7 @@ resquery_response(isc_task_t *task, isc_event_t *event) {
fctx_cancelqueries(fctx, ISC_TRUE);
fctx_cleanupfinds(fctx);
fctx_cleanupforwaddrs(fctx);
- }
+ }
/*
* Try again.
*/
@@ -4340,7 +4340,7 @@ dns_resolver_create(dns_view_t *view,
goto cleanup_dispatches;
res->magic = RES_MAGIC;
-
+
*resp = res;
return (ISC_R_SUCCESS);
@@ -4396,7 +4396,7 @@ dns_resolver_setforwarders(dns_resolver_t *res,
ISC_LINK_INIT(nsa, link);
ISC_LIST_APPEND(res->forwarders, nsa, link);
}
-
+
return (ISC_R_SUCCESS);
}
@@ -4450,7 +4450,7 @@ prime_done(isc_task_t *task, isc_event_t *event) {
isc_event_free(&event);
dns_resolver_destroyfetch(&fetch);
}
-
+
void
dns_resolver_prime(dns_resolver_t *res) {
isc_boolean_t want_priming = ISC_FALSE;
@@ -4471,7 +4471,7 @@ dns_resolver_prime(dns_resolver_t *res) {
return;
LOCK(&res->lock);
-
+
if (!res->exiting && !res->priming) {
INSIST(res->primefetch == NULL);
res->priming = ISC_TRUE;
@@ -4563,7 +4563,7 @@ dns_resolver_whenshutdown(dns_resolver_t *res, isc_task_t *task,
*eventp = NULL;
LOCK(&res->lock);
-
+
if (res->exiting && res->activebuckets == 0) {
/*
* We're already shutdown. Send the event.
@@ -4576,7 +4576,7 @@ dns_resolver_whenshutdown(dns_resolver_t *res, isc_task_t *task,
event->ev_sender = clone;
ISC_LIST_APPEND(res->whenshutdown, event, ev_link);
}
-
+
UNLOCK(&res->lock);
}
@@ -4589,7 +4589,7 @@ dns_resolver_shutdown(dns_resolver_t *res) {
REQUIRE(VALID_RESOLVER(res));
RTRACE("shutdown");
-
+
LOCK(&res->lock);
if (!res->exiting) {
@@ -4698,7 +4698,7 @@ dns_resolver_createfetch(dns_resolver_t *res, dns_name_t *name,
unsigned int options, isc_task_t *task,
isc_taskaction_t action, void *arg,
dns_rdataset_t *rdataset,
- dns_rdataset_t *sigrdataset,
+ dns_rdataset_t *sigrdataset,
dns_fetch_t **fetchp)
{
dns_fetch_t *fetch;
diff --git a/lib/dns/result.c b/lib/dns/result.c
index 1d7778c30a..314d3d68c3 100644
--- a/lib/dns/result.c
+++ b/lib/dns/result.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.c,v 1.68 2000/07/27 09:46:35 tale Exp $ */
+/* $Id: result.c,v 1.69 2000/08/01 01:22:52 tale Exp $ */
#include
diff --git a/lib/dns/rootns.c b/lib/dns/rootns.c
index 9eff2493e5..e9d1f10bc6 100644
--- a/lib/dns/rootns.c
+++ b/lib/dns/rootns.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rootns.c,v 1.14 2000/07/27 09:46:36 tale Exp $ */
+/* $Id: rootns.c,v 1.15 2000/08/01 01:22:53 tale Exp $ */
#include
@@ -71,7 +71,7 @@ dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
size_t len;
dns_rdatacallbacks_t callbacks;
dns_db_t *db = NULL;
-
+
REQUIRE(target != NULL && *target == NULL);
result = dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_zone,
diff --git a/lib/dns/sec/Makefile.in b/lib/dns/sec/Makefile.in
index 37aa29bfe2..cd1089b2ee 100644
--- a/lib/dns/sec/Makefile.in
+++ b/lib/dns/sec/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.7 2000/07/27 09:50:21 tale Exp $
+# $Id: Makefile.in,v 1.8 2000/08/01 01:26:38 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/dnssafe/Makefile.in b/lib/dns/sec/dnssafe/Makefile.in
index 435fc29711..692822815a 100644
--- a/lib/dns/sec/dnssafe/Makefile.in
+++ b/lib/dns/sec/dnssafe/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.9 2000/07/27 09:50:23 tale Exp $
+# $Id: Makefile.in,v 1.10 2000/08/01 01:26:41 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/dnssafe/ahcbcpad.c b/lib/dns/sec/dnssafe/ahcbcpad.c
index 5bc7438397..105c1b50e5 100644
--- a/lib/dns/sec/dnssafe/ahcbcpad.c
+++ b/lib/dns/sec/dnssafe/ahcbcpad.c
@@ -80,7 +80,7 @@ A_SURRENDER_CTX *surrenderContext;
{
/* For encryption, we need to track the input length */
handler->_inputRemainder = (handler->_inputRemainder + partInLen) % 8;
-
+
return (AHChooseEncryptEncryptUpdate
(handler, partOut, partOutLen, maxPartOutLen, partIn, partInLen,
randomAlgorithm, surrenderContext));
@@ -136,7 +136,7 @@ A_SURRENDER_CTX *surrenderContext;
int status;
unsigned char finalBuffer[16], *padBuffer;
unsigned int padLen, localPartOutLen, i;
-
+
do {
/* For now, the DecrypyFinal operations is set to output 16 bytes.
*/
diff --git a/lib/dns/sec/dnssafe/ahchdig.c b/lib/dns/sec/dnssafe/ahchdig.c
index 8f4b4e23a6..dedb7652b0 100644
--- a/lib/dns/sec/dnssafe/ahchdig.c
+++ b/lib/dns/sec/dnssafe/ahchdig.c
@@ -77,12 +77,12 @@ unsigned int partInLen;
A_SURRENDER_CTX *surrenderContext;
{
int status;
-
+
if ((status = (*((A_DIGEST_ALGA *)handler->algaChoice._alga)->Update)
(handler->algaChoice.context.z.context, partIn, partInLen,
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
- return (0);
+ return (0);
}
int AHChooseDigestFinal
@@ -94,12 +94,12 @@ unsigned int maxPartOutLen;
A_SURRENDER_CTX *surrenderContext;
{
int status;
-
+
if ((status = (*((A_DIGEST_ALGA *)handler->algaChoice._alga)->Final)
(handler->algaChoice.context.z.context, partOut, partOutLen,
maxPartOutLen, surrenderContext)) != 0)
return (ConvertAlgaeError (status));
- return (0);
+ return (0);
}
static int InitDigestAlga
diff --git a/lib/dns/sec/dnssafe/ahchencr.c b/lib/dns/sec/dnssafe/ahchencr.c
index 64cf959c34..efc8b7a4ad 100644
--- a/lib/dns/sec/dnssafe/ahchencr.c
+++ b/lib/dns/sec/dnssafe/ahchencr.c
@@ -124,7 +124,7 @@ int AHChooseEncryptDecrypt::encryptUpdate
partIn, partInLen, surrenderContext)) != 0)
return (ConvertAlgaeError (status));
return (0);
-}
+}
*/
int AHChooseEncryptEncryptUpdate
(handler, partOut, partOutLen, maxPartOutLen, partIn, partInLen,
diff --git a/lib/dns/sec/dnssafe/ahchgen.c b/lib/dns/sec/dnssafe/ahchgen.c
index f1d7bd7c5c..78dcb2776c 100644
--- a/lib/dns/sec/dnssafe/ahchgen.c
+++ b/lib/dns/sec/dnssafe/ahchgen.c
@@ -95,8 +95,8 @@ B_Algorithm *randomAlgorithm;
A_SURRENDER_CTX *surrenderContext;
{
POINTER result;
- int status;
-
+ int status;
+
if ((status = GenerateResult
(&handler->generateAlgaChoice, &result, randomAlgorithm,
surrenderContext)) != 0)
@@ -116,8 +116,8 @@ B_Algorithm *randomAlgorithm;
A_SURRENDER_CTX *surrenderContext;
{
POINTER result;
- int status;
-
+ int status;
+
if ((status = GenerateResult
(&handler->generateAlgaChoice, &result, randomAlgorithm,
surrenderContext)) != 0)
@@ -205,7 +205,7 @@ A_SURRENDER_CTX *surrenderContext;
surrenderContext)) != 0) {
if (status != AE_NEED_RANDOM)
return (ConvertAlgaeError (status));
-
+
/* Else continue and try again */
}
else
diff --git a/lib/dns/sec/dnssafe/ahchrand.c b/lib/dns/sec/dnssafe/ahchrand.c
index e565a1d9b0..5e92729659 100644
--- a/lib/dns/sec/dnssafe/ahchrand.c
+++ b/lib/dns/sec/dnssafe/ahchrand.c
@@ -77,12 +77,12 @@ unsigned int inputLen;
A_SURRENDER_CTX *surrenderContext;
{
int status;
-
+
if ((status = (*((A_RANDOM_ALGA *)handler->algaChoice._alga)->Update)
(handler->algaChoice.context.z.context, input, inputLen,
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
- return (0);
+ return (0);
}
int AHChooseRandomGenerateBytes (handler, output, outputLen, surrenderContext)
@@ -92,12 +92,12 @@ unsigned int outputLen;
A_SURRENDER_CTX *surrenderContext;
{
int status;
-
+
if ((status = (*((A_RANDOM_ALGA *)handler->algaChoice._alga)->Generate)
(handler->algaChoice.context.z.context, output, outputLen,
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
- return (0);
+ return (0);
}
static int InitRandomAlga
diff --git a/lib/dns/sec/dnssafe/ahencryp.h b/lib/dns/sec/dnssafe/ahencryp.h
index d2cb28c48f..0929fc3fb5 100644
--- a/lib/dns/sec/dnssafe/ahencryp.h
+++ b/lib/dns/sec/dnssafe/ahencryp.h
@@ -15,7 +15,7 @@
class AHEncryptDecrypt : public B_TypeCheck {
AHEncryptDecrypt ();
virtual ~AHEncryptDecrypt () = 0;
-
+
virtual int getBlockLen (unsigned int *) = 0;
virtual int encryptInit
(B_Key *, B_ALGORITHM_CHOOSER, A_SURRENDER_CTX *) = 0;
diff --git a/lib/dns/sec/dnssafe/ahrsaenc.c b/lib/dns/sec/dnssafe/ahrsaenc.c
index 307d1fd8b1..ba2d1f9dfa 100644
--- a/lib/dns/sec/dnssafe/ahrsaenc.c
+++ b/lib/dns/sec/dnssafe/ahrsaenc.c
@@ -109,7 +109,7 @@ UNUSED_ARG (maxPartOutLen)
UNUSED_ARG (randomAlgorithm)
UNUSED_ARG (surrenderContext)
*partOutLen = 0;
-
+
if (handler->_inputLen + partInLen > handler->_maxInputLen)
return (BE_INPUT_LEN);
T_memcpy
@@ -131,7 +131,7 @@ A_SURRENDER_CTX *surrenderContext;
{
int status;
unsigned int dummyPartOutLen;
-
+
/* Encode methodContext in place. */
if ((status = (*handler->vTable->EncodeBlock)
(handler, randomAlgorithm, surrenderContext)) != 0)
@@ -148,7 +148,7 @@ A_SURRENDER_CTX *surrenderContext;
(handler, (unsigned char *)NULL_PTR, &dummyPartOutLen, 0,
(B_Algorithm *)NULL_PTR, surrenderContext)) != 0)
return (status);
-
+
/* Restart the handle for new input. */
handler->_inputLen = 0;
return (0);
@@ -167,7 +167,7 @@ A_SURRENDER_CTX *surrenderContext;
ITEM output;
int status;
unsigned int decryptedLen, dummyPartOutLen;
-
+
UNUSED_ARG (randomAlgorithm)
/* Decrypt block in place. The block lenghts are already within limits.
*/
@@ -181,23 +181,23 @@ UNUSED_ARG (randomAlgorithm)
(handler, (unsigned char *)NULL_PTR, &dummyPartOutLen, 0,
(B_Algorithm *)NULL_PTR, surrenderContext)) != 0)
return (status);
-
+
/* Restart the handle for new input. */
handler->_inputLen = 0;
-
+
/* Now decode the block and copy the result to the partOut.
*/
if ((status = (*handler->vTable->DecodeBlock)
(handler, &output, decryptedLen)) != 0)
return (status);
-
+
if (output.len > handler->z.blockLen - 11)
/* This implies that the block was encrypted with less than
8 bytes of padding */
return (BE_INPUT_DATA);
-
+
if ((*partOutLen = output.len) > maxPartOutLen)
- return (BE_OUTPUT_LEN);
+ return (BE_OUTPUT_LEN);
T_memcpy ((POINTER)partOut, (POINTER)output.data, output.len);
return (0);
@@ -224,7 +224,7 @@ int encryptFlag;
handler->_maxInputLen = encryptFlag ? (newBlockLen - 11) : newBlockLen;
handler->_inputLen = 0;
-
+
/* Zeroize old block and realloc to new size.
*/
T_memset ((POINTER)handler->z.block, 0, handler->z.blockLen);
@@ -234,7 +234,7 @@ int encryptFlag;
handler->z.blockLen = 0;
return (BE_ALLOC);
}
-
+
handler->z.blockLen = newBlockLen;
return (0);
}
diff --git a/lib/dns/sec/dnssafe/ahrsaepr.c b/lib/dns/sec/dnssafe/ahrsaepr.c
index e6fba2b998..0b247e5dc3 100644
--- a/lib/dns/sec/dnssafe/ahrsaepr.c
+++ b/lib/dns/sec/dnssafe/ahrsaepr.c
@@ -40,7 +40,7 @@ AH_RSAEncryptionPrivate *handler;
/* Construct base class */
AH_RSAEncryptionConstructor1 (handler, &AIT_RSAPrivate);
-
+
handler->vTable = &ENCRYPTION_V_TABLE;
return (handler);
}
@@ -79,19 +79,19 @@ ITEM *output;
unsigned int block2Len;
{
unsigned int i;
-
+
if ((handler->z.block[0] != 0) || (handler->z.block[1] != 2))
return (BE_INPUT_DATA);
-
+
/* Should be able to find the data after the first zero byte following
the random bytes. */
for (i = 2; i < block2Len && handler->z.block[i] != 0; i++);
i++;
-
+
if (i > block2Len)
/* The data is not zero terminated. */
return (BE_INPUT_DATA);
-
+
output->len = block2Len - i;
output->data = handler->z.block + i;
return (0);
diff --git a/lib/dns/sec/dnssafe/ahrsaepu.c b/lib/dns/sec/dnssafe/ahrsaepu.c
index 000e84201b..a90b3643eb 100644
--- a/lib/dns/sec/dnssafe/ahrsaepu.c
+++ b/lib/dns/sec/dnssafe/ahrsaepu.c
@@ -40,7 +40,7 @@ AH_RSAEncryptionPublic *handler;
/* Construct base class */
AH_RSAEncryptionConstructor1 (handler, &AIT_RSAPublic);
-
+
handler->vTable = &ENCRYPTION_V_TABLE;
return (handler);
}
@@ -76,10 +76,10 @@ A_SURRENDER_CTX *surrenderContext;
(randomAlgorithm, &randomByte, 1, surrenderContext)) != 0)
return (status);
} while (randomByte == 0);
-
+
handler->z.block[i] = randomByte;
}
-
+
handler->z.block[2 + padLen] = 0;
return (0);
}
@@ -90,17 +90,17 @@ ITEM *output;
unsigned int block1Len;
{
unsigned int i;
-
+
/* Locate the digestInfo within the PKCS block 1.
*/
if (handler->z.block[0] != 0 || handler->z.block[1] != 1)
return (BE_INPUT_DATA);
-
+
/* Should be able to find the data after the first zero byte following
the 0xff. */
for (i = 2; i < block1Len && handler->z.block[i] == 0xff; i++);
i++;
-
+
if (i > block1Len || handler->z.block[i - 1] != 0)
/* The data is not zero terminated, or a byte other than 0xff. */
return (BE_INPUT_DATA);
diff --git a/lib/dns/sec/dnssafe/aichenc8.c b/lib/dns/sec/dnssafe/aichenc8.c
index 3612ab0592..b4dba4186a 100644
--- a/lib/dns/sec/dnssafe/aichenc8.c
+++ b/lib/dns/sec/dnssafe/aichenc8.c
@@ -22,11 +22,11 @@ POINTER info;
{
POINTER newInfo;
int status;
-
+
if ((status = B_MemoryPoolAllocAndCopy
(&algorithm->infoCache.memoryPool, &newInfo, info, 8)) != 0)
return (status);
-
+
return (B_InfoCacheAddInfo
(&algorithm->infoCache, (POINTER)infoType, newInfo));
}
diff --git a/lib/dns/sec/dnssafe/airsakgn.c b/lib/dns/sec/dnssafe/airsakgn.c
index 9856a0070c..08e7181766 100644
--- a/lib/dns/sec/dnssafe/airsakgn.c
+++ b/lib/dns/sec/dnssafe/airsakgn.c
@@ -41,7 +41,7 @@ POINTER info;
{
A_RSA_KEY_GEN_PARAMS *newInfo;
int status;
-
+
if ((status = B_MemoryPoolAlloc
(&algorithm->infoCache.memoryPool, (POINTER *)&newInfo,
sizeof (A_RSA_KEY_GEN_PARAMS))) != 0)
diff --git a/lib/dns/sec/dnssafe/algchoic.c b/lib/dns/sec/dnssafe/algchoic.c
index e8b0769903..ead0b9f989 100644
--- a/lib/dns/sec/dnssafe/algchoic.c
+++ b/lib/dns/sec/dnssafe/algchoic.c
@@ -61,7 +61,7 @@ unsigned int contextSize;
resizeContext->z.contextSize = 0;
return (BE_ALLOC);
}
-
+
resizeContext->z.contextSize = contextSize;
return (0);
}
@@ -93,7 +93,7 @@ A_SURRENDER_CTX *surrenderContext;
(key, &keyInfo, (*chooser)->keyInfoType)) != 0) {
if (IS_FATAL_BSAFE_ERROR (status))
return (status);
-
+
/* Update the overall status with this more specific error. */
overallStatus = status;
continue;
@@ -154,7 +154,7 @@ int type;
return (BE_OUTPUT_LEN);
case AE_PARAMS:
return (BE_ALGORITHM_INFO);
-
+
#if USE_ALLOCED_FRAME
case AE_ALLOC:
return (BE_ALLOC);
diff --git a/lib/dns/sec/dnssafe/algobj.c b/lib/dns/sec/dnssafe/algobj.c
index d872d24856..80d305e1d3 100644
--- a/lib/dns/sec/dnssafe/algobj.c
+++ b/lib/dns/sec/dnssafe/algobj.c
@@ -28,7 +28,7 @@ B_ALGORITHM_OBJ *algorithmObject;
/* First construct base class */
B_AlgorithmConstructor (&algorithmWrap->algorithm);
-
+
algorithmWrap->typeTag = &ALGORITHM_TYPE_TAG;
algorithmWrap->selfCheck = algorithmWrap;
return (0);
@@ -59,7 +59,7 @@ POINTER info;
{
B_AlgorithmInfoType *algorithmInfoType;
int status;
-
+
if ((status = AlgorithmWrapCheck (THE_ALG_WRAP)) != 0)
return (status);
@@ -68,7 +68,7 @@ POINTER info;
*/
if ((*infoType) ((POINTER *)&algorithmInfoType) != 0)
return (BE_KEY_OPERATION_UNKNOWN);
-
+
return (B_AlgorithmSetInfo
(&THE_ALG_WRAP->algorithm, algorithmInfoType, info));
}
@@ -80,7 +80,7 @@ B_INFO_TYPE infoType;
{
B_AlgorithmInfoType *algorithmInfoType;
int status;
-
+
if ((status = AlgorithmWrapCheck (THE_ALG_WRAP)) != 0)
return (status);
@@ -89,7 +89,7 @@ B_INFO_TYPE infoType;
*/
if ((*infoType) ((POINTER *)&algorithmInfoType) != 0)
return (BE_KEY_OPERATION_UNKNOWN);
-
+
return (B_AlgorithmGetInfo
(&THE_ALG_WRAP->algorithm, info, algorithmInfoType));
}
diff --git a/lib/dns/sec/dnssafe/amrkg.c b/lib/dns/sec/dnssafe/amrkg.c
index 59b6e1119b..738fa2bef8 100644
--- a/lib/dns/sec/dnssafe/amrkg.c
+++ b/lib/dns/sec/dnssafe/amrkg.c
@@ -45,7 +45,7 @@ POINTER params;
(THE_GEN_PARAMS->modulusBits < MIN_RSA_MODULUS_BITS))
/* Can't support a keypair of this size. */
return (AE_MODULUS_LEN);
-
+
*contextLen = sizeof (A_RSA_KEY_GEN_CTX);
*secondContextLen = 0;
*randomBlockLen =
diff --git a/lib/dns/sec/dnssafe/balg.c b/lib/dns/sec/dnssafe/balg.c
index b0b9bbb771..3ceb848839 100644
--- a/lib/dns/sec/dnssafe/balg.c
+++ b/lib/dns/sec/dnssafe/balg.c
@@ -69,7 +69,7 @@ B_AlgorithmInfoType *algorithmInfoType;
POINTER info;
{
int status;
-
+
if (algorithm->infoCache.z.infoCount > 0)
return (BE_ALGORITHM_ALREADY_SET);
@@ -93,7 +93,7 @@ POINTER *info;
B_AlgorithmInfoType *algorithmInfoType;
{
int status;
-
+
if (algorithm->infoCache.z.infoCount == 0)
return (BE_ALGORITHM_NOT_SET);
@@ -102,7 +102,7 @@ B_AlgorithmInfoType *algorithmInfoType;
if (B_InfoCacheFindInfo
(&algorithm->infoCache, info, (POINTER)algorithmInfoType) == 0)
return (0);
-
+
/* Info is not in the cache, go ahead and encode.
*/
if ((status = (*algorithmInfoType->vTable->MakeInfo)
diff --git a/lib/dns/sec/dnssafe/bgclrbit.c b/lib/dns/sec/dnssafe/bgclrbit.c
index 36565f4127..dc4dbdd6b8 100644
--- a/lib/dns/sec/dnssafe/bgclrbit.c
+++ b/lib/dns/sec/dnssafe/bgclrbit.c
@@ -14,8 +14,8 @@
void BigClrbit (a, v)
UINT2 *a;
unsigned int v;
-{
- a[v/16] &= ~ (1 << (v % 16));
+{
+ a[v/16] &= ~ (1 << (v % 16));
}
/* BigSetbit (a, v) -- sets v-th bit of a, where v is nonnegative.
@@ -23,6 +23,6 @@ unsigned int v;
void BigSetbit (a, v)
UINT2 *a;
unsigned int v;
-{
- a[v/16] |= (1 << (v % 16));
+{
+ a[v/16] |= (1 << (v % 16));
}
diff --git a/lib/dns/sec/dnssafe/bgmodexp.c b/lib/dns/sec/dnssafe/bgmodexp.c
index 1f1a65f4f4..d4d64ee2d7 100644
--- a/lib/dns/sec/dnssafe/bgmodexp.c
+++ b/lib/dns/sec/dnssafe/bgmodexp.c
@@ -14,13 +14,13 @@
Assumes a, b, c, d of length n.
Returns 0, AE_CANCEL.
*/
-int BigModExp (a, b, c, d, n, surrenderContext)
+int BigModExp (a, b, c, d, n, surrenderContext)
UINT2 *a, *b, *c, *d;
unsigned int n;
A_SURRENDER_CTX *surrenderContext;
{
struct BigModExpFrame {
- UINT2 dInv[MAX_RSA_MODULUS_WORDS + 2], result[MAX_RSA_MODULUS_WORDS],
+ UINT2 dInv[MAX_RSA_MODULUS_WORDS + 2], result[MAX_RSA_MODULUS_WORDS],
tab[16][MAX_RSA_MODULUS_WORDS];
} *frame = (struct BigModExpFrame *)NULL_PTR;
#if !USE_ALLOCED_FRAME
@@ -47,7 +47,7 @@ A_SURRENDER_CTX *surrenderContext;
BigInv (frame->dInv, d, n);
if ((status = CheckSurrender (surrenderContext)) != 0)
break;
-
+
/* precompute small (size 2**w) table of powers of b */
cLen = BigLen (c, n);
if (cLen < 4)
@@ -57,7 +57,7 @@ A_SURRENDER_CTX *surrenderContext;
else if (cLen < 64)
w = 3;
else
- w = 4;
+ w = 4;
/* zeroth power is one */
BigConst (frame->tab[0], 1, n);
@@ -111,7 +111,7 @@ A_SURRENDER_CTX *surrenderContext;
}
else
BigCopy (frame->result, frame->tab[power], n);
-
+
power = 0;
didAMultiply = 1;
}
diff --git a/lib/dns/sec/dnssafe/bgpegcd.c b/lib/dns/sec/dnssafe/bgpegcd.c
index 2201b7e9d3..e59af931e4 100644
--- a/lib/dns/sec/dnssafe/bgpegcd.c
+++ b/lib/dns/sec/dnssafe/bgpegcd.c
@@ -26,7 +26,7 @@ void BigPegcd (u3, u1, u2, u, v, k)
UINT2 *u3, *u2, *u1, *u, *v;
unsigned int k;
{
- UINT2 v1[2 * MAX_RSA_PRIME_WORDS], v2[2 * MAX_RSA_PRIME_WORDS],
+ UINT2 v1[2 * MAX_RSA_PRIME_WORDS], v2[2 * MAX_RSA_PRIME_WORDS],
v3[2 * MAX_RSA_PRIME_WORDS], q[2 * MAX_RSA_PRIME_WORDS],
r[2 * MAX_RSA_PRIME_WORDS], t1[2 * MAX_RSA_PRIME_WORDS],
t2[2 * MAX_RSA_PRIME_WORDS], t3[2 * MAX_RSA_PRIME_WORDS];
diff --git a/lib/dns/sec/dnssafe/big2exp.c b/lib/dns/sec/dnssafe/big2exp.c
index 85026db2c6..36761e37eb 100644
--- a/lib/dns/sec/dnssafe/big2exp.c
+++ b/lib/dns/sec/dnssafe/big2exp.c
@@ -9,7 +9,7 @@
#include "global.h"
#include "bigmath.h"
-/* Big2Exp (a, v, n) -- a = 2**v, where v is nonnegative int.
+/* Big2Exp (a, v, n) -- a = 2**v, where v is nonnegative int.
Sets a to be 2**v.
*/
void Big2Exp (a, v, n)
diff --git a/lib/dns/sec/dnssafe/bigabs.c b/lib/dns/sec/dnssafe/bigabs.c
index 8b4bcb70fb..a9190cefdc 100644
--- a/lib/dns/sec/dnssafe/bigabs.c
+++ b/lib/dns/sec/dnssafe/bigabs.c
@@ -16,7 +16,7 @@ UINT2 *a, *b;
unsigned int n;
{
if (BigSign (b, n) >= 0)
- BigCopy (a, b, n);
+ BigCopy (a, b, n);
else
BigNeg (a, b, n);
}
diff --git a/lib/dns/sec/dnssafe/bigarith.c b/lib/dns/sec/dnssafe/bigarith.c
index 64af71c6e0..7770db02df 100644
--- a/lib/dns/sec/dnssafe/bigarith.c
+++ b/lib/dns/sec/dnssafe/bigarith.c
@@ -14,7 +14,7 @@ UINT2 *a;
unsigned int n;
{
register unsigned int i;
-
+
for (i = 0; i < n; i++)
a[i] = 0;
}
@@ -61,7 +61,7 @@ unsigned int n;
if (a[i])
carry = 0;
}
-
+
a[i] = ~b[i] + carry;
}
@@ -77,7 +77,7 @@ unsigned int n;
if (a[i])
carry = 0;
}
-
+
if (carry)
a[i]++;
}
@@ -94,7 +94,7 @@ unsigned int n;
if (a[i] != 0xFFFF)
borrow = 0;
}
-
+
if (borrow)
a[i]--;
}
@@ -104,7 +104,7 @@ UINT2 *a;
unsigned int n;
{
register int i;
-
+
if (a[n-1] & 0x8000)
return (-1);
for (i = n-1; i >= 0; i--)
@@ -118,7 +118,7 @@ UINT2 *a, *b;
unsigned int n;
{
register unsigned int i;
-
+
for (i = 0; i < n; i++)
a[i] = b[i];
}
@@ -130,7 +130,7 @@ UINT2 *a;
unsigned int n;
{
register int i;
-
+
for (i = n-1; i >= 0; i--)
if (a[i])
return (i+1);
diff --git a/lib/dns/sec/dnssafe/bigcmp.c b/lib/dns/sec/dnssafe/bigcmp.c
index 953be1546a..42bda60d70 100644
--- a/lib/dns/sec/dnssafe/bigcmp.c
+++ b/lib/dns/sec/dnssafe/bigcmp.c
@@ -23,9 +23,9 @@ unsigned int n;
return (1);
if (aSign < bSign)
return (-1);
-
+
for (i = n-1; i >= 0 && a[i] == b[i]; i--);
-
+
if (i == -1)
return (0);
if (a[i] > b[i])
diff --git a/lib/dns/sec/dnssafe/biginv.c b/lib/dns/sec/dnssafe/biginv.c
index 7c69fd9f4f..8c01003795 100644
--- a/lib/dns/sec/dnssafe/biginv.c
+++ b/lib/dns/sec/dnssafe/biginv.c
@@ -15,7 +15,7 @@ static unsigned int Log2 PROTO_LIST ((unsigned int));
modding out integers which are < b**2.
-- assumes a has n+2 words, b has n words.
-- assumes b is a positive integer.
- */
+ */
void BigInv (a, b, n)
UINT2 *a, *b;
unsigned int n;
@@ -30,18 +30,18 @@ unsigned int n;
/* 2** (bl-1) <= b < 2 ** bl */
bl = BigLen (b, n);
u = BigU (2 * bl);
-
+
/* uw and sw are in words */
uw = u/16;
sw = (bl - 2) / 16;
-
+
/* since a = floor ((2**u)/b), 2**(u-bl) < a <= 2**(u-bl+1) */
/* Initialize a to 1+2**(u-bl) -- we will converge from below.
*/
Big2Exp (a, u - bl, n + 2);
BigInc (a, n + 2);
-
+
/* Copy b to local register.
*/
BigZero (t1, n + 3);
@@ -52,7 +52,7 @@ unsigned int n;
for (i = 1 + Log2 (u - bl + 1); i > 0; i--) {
/* use fast squaring routine to compute p = a**2
2**(2 * (u-bl)) < p <= 2**(2 * (u-bl+1)) */
- BigPsq (p, a, n + 2);
+ BigPsq (p, a, n + 2);
/* compute q = b * floor (p/ (2**s))
2**(2 * (u-bl)-s+bl-1) <= q <= 2**(2 * (u-bl+1)-s+bl
diff --git a/lib/dns/sec/dnssafe/biglen.c b/lib/dns/sec/dnssafe/biglen.c
index 6b5acb9aff..6017fe1d21 100644
--- a/lib/dns/sec/dnssafe/biglen.c
+++ b/lib/dns/sec/dnssafe/biglen.c
@@ -21,8 +21,8 @@ unsigned int n;
if (i == -1)
return (1); /* len of 0 or -1 */
- for (j = 16, k = 0x8000;
- j >= 0 && 0 == (k & (signWord ^ a[i]));
+ for (j = 16, k = 0x8000;
+ j >= 0 && 0 == (k & (signWord ^ a[i]));
j--, k >>= 1);
return (16 * i + j);
}
diff --git a/lib/dns/sec/dnssafe/bigmpy.c b/lib/dns/sec/dnssafe/bigmpy.c
index 9a17b06afe..0463903d3a 100644
--- a/lib/dns/sec/dnssafe/bigmpy.c
+++ b/lib/dns/sec/dnssafe/bigmpy.c
@@ -17,17 +17,17 @@ void BigMpy (a, b, c, n)
UINT2 *a, *b, *c;
unsigned int n;
{
- UINT2 prod[2 * MAX_RSA_PRIME_WORDS], absb[MAX_RSA_PRIME_WORDS],
+ UINT2 prod[2 * MAX_RSA_PRIME_WORDS], absb[MAX_RSA_PRIME_WORDS],
absc[MAX_RSA_PRIME_WORDS];
int bSign = BigSign (b, n), cSign = BigSign (c, n);
-
+
BigAbs (absb, b, n);
BigAbs (absc, c, n);
BigPmpy (prod, absb, absc, n);
if (bSign * cSign >= 0)
BigCopy (a, prod, 2 * n);
- else
+ else
BigNeg (a, prod, 2 * n);
T_memset ((POINTER)prod, 0, sizeof (prod));
diff --git a/lib/dns/sec/dnssafe/bigpdiv.c b/lib/dns/sec/dnssafe/bigpdiv.c
index 23c3f8bcba..b54fd998f2 100644
--- a/lib/dns/sec/dnssafe/bigpdiv.c
+++ b/lib/dns/sec/dnssafe/bigpdiv.c
@@ -16,7 +16,7 @@
qi assumed to be ll cells
ri assumed to be kk cells
restriction uu>=0, vv>0
-
+
input uu in reg of ll cells
input vv in reg of kk cells
output qi assumed to be ll cells
@@ -31,7 +31,7 @@ void BigPdiv (qi, ri, uu, vv, ll, kk)
UINT2 *qi, *ri, *uu, *vv;
unsigned int ll, kk;
{
- UINT2 u[2 * MAX_RSA_PRIME_WORDS + 2], us[2 * MAX_RSA_PRIME_WORDS + 2],
+ UINT2 u[2 * MAX_RSA_PRIME_WORDS + 2], us[2 * MAX_RSA_PRIME_WORDS + 2],
v[2 * MAX_RSA_PRIME_WORDS + 2], vs[2 * MAX_RSA_PRIME_WORDS + 2],
q[2 * MAX_RSA_PRIME_WORDS + 2], r[2 * MAX_RSA_PRIME_WORDS + 2],
t1[2 * MAX_RSA_PRIME_WORDS + 2], t2[2 * MAX_RSA_PRIME_WORDS + 2],
@@ -43,7 +43,7 @@ unsigned int ll, kk;
l = ll + 2;
else
l = kk + 2;
-
+
mk[0] = 0x00FF;
mk[1] = 0xFF00;
b = 0x0100;
@@ -75,7 +75,7 @@ unsigned int ll, kk;
BigConst (t1, d, l);
BigPmpyl (t2, t1, v, l);
BigCopy (v, t2, l);
-
+
/* vh=high order digit of normalized v */
vh = VN;
if (n % 2 == 1)
@@ -90,7 +90,7 @@ unsigned int ll, kk;
continue;
break;
}
-
+
/* calc t = n + m */
m = t - n;
@@ -133,7 +133,7 @@ unsigned int ll, kk;
BigPmpyl (t1, q, t2, l);
BigAdd (q, t3, t1, l);
}
-
+
/* Check result.
*/
@@ -146,7 +146,7 @@ unsigned int ll, kk;
/* transfer results to input registers */
BigCopy (qi, q, ll);
BigCopy (ri, t2, kk);
-
+
T_memset ((POINTER)u, 0, sizeof (u));
T_memset ((POINTER)us, 0, sizeof (us));
T_memset ((POINTER)v, 0, sizeof (v));
diff --git a/lib/dns/sec/dnssafe/bigpmpy.c b/lib/dns/sec/dnssafe/bigpmpy.c
index 8ef3b4cd7d..7b18ac2909 100644
--- a/lib/dns/sec/dnssafe/bigpmpy.c
+++ b/lib/dns/sec/dnssafe/bigpmpy.c
@@ -17,7 +17,7 @@ unsigned int n;
{
register unsigned int i;
unsigned int cLen;
-
+
BigZero (a, 2*n);
cLen = BigLenw (c, n);
for (i = 0; i < n; i++)
diff --git a/lib/dns/sec/dnssafe/bigqrx.c b/lib/dns/sec/dnssafe/bigqrx.c
index 5bce01e8f0..fdbceab2cb 100644
--- a/lib/dns/sec/dnssafe/bigqrx.c
+++ b/lib/dns/sec/dnssafe/bigqrx.c
@@ -30,16 +30,16 @@ unsigned int n;
/* 2**(cl-1) <= c < 2**cl
2**(u-cl) <= cInv <= 2**(u-cl+1) */
cl = BigLen (c, n);
-
+
/* u is in bits, uw is in words */
u = BigU (2 * cl);
uw = u/16;
-
+
/* sw is in words, s is is bits */
sw = (cl - 2) / 16;
-
+
uwsw3 = uw - sw - 3;
-
+
if (uwsw3 < 0)
uwsw3 = 0;
@@ -76,7 +76,7 @@ unsigned int n;
BigSub (r, r, c, n);
BigInc (q, n);
}
-
+
T_memset ((POINTER)qc, 0, sizeof (qc));
T_memset ((POINTER)qsc, 0, sizeof (qsc));
T_memset ((POINTER)t1, 0, sizeof (t1));
diff --git a/lib/dns/sec/dnssafe/bigtocan.c b/lib/dns/sec/dnssafe/bigtocan.c
index 13e8315d6c..d5f8e5b05b 100644
--- a/lib/dns/sec/dnssafe/bigtocan.c
+++ b/lib/dns/sec/dnssafe/bigtocan.c
@@ -24,14 +24,14 @@ UINT2 *wordPointer;
unsigned int wordCount;
{
unsigned int copyCount;
-
+
if (BigSign (wordPointer, wordCount) < 0 ||
(BigLen (wordPointer, wordCount) + 7) / 8 > numBytes)
return (AE_DATA);
/* start at end of byte vector */
bytePointer += numBytes-1;
-
+
/* copy as much as possible */
copyCount = (wordCount < numBytes / 2) ? wordCount : numBytes / 2;
wordCount -= copyCount;
@@ -42,18 +42,18 @@ unsigned int wordCount;
*bytePointer-- = (unsigned char)(*wordPointer >> 8);
wordPointer++;
}
-
+
if (wordCount && numBytes & 1) {
/* The number of output bytes was odd. Copy one last byte */
*bytePointer-- = (unsigned char)*wordPointer++;
wordCount--;
numBytes--;
}
-
+
/* zero fill remainder of byte vector */
while (numBytes--)
*bytePointer-- = 0;
-
+
return (0);
}
diff --git a/lib/dns/sec/dnssafe/bigu.c b/lib/dns/sec/dnssafe/bigu.c
index 34c592a5b3..ce4de1a9b0 100644
--- a/lib/dns/sec/dnssafe/bigu.c
+++ b/lib/dns/sec/dnssafe/bigu.c
@@ -17,5 +17,5 @@
unsigned int BigU (t)
unsigned int t;
{
- return (16 * (((t+1) + 15)/16));
+ return (16 * (((t+1) + 15)/16));
}
diff --git a/lib/dns/sec/dnssafe/bigunexp.c b/lib/dns/sec/dnssafe/bigunexp.c
index 6bedbf5118..99184414e1 100644
--- a/lib/dns/sec/dnssafe/bigunexp.c
+++ b/lib/dns/sec/dnssafe/bigunexp.c
@@ -26,7 +26,7 @@ unsigned int pSize; /* length of p in words */
A_SURRENDER_CTX *surrenderContext;
{
struct BigUnexpFrame {
- UINT2 t1[2 * MAX_RSA_PRIME_WORDS], t2[2 * MAX_RSA_PRIME_WORDS],
+ UINT2 t1[2 * MAX_RSA_PRIME_WORDS], t2[2 * MAX_RSA_PRIME_WORDS],
t3[2 * MAX_RSA_PRIME_WORDS], u1[2 * MAX_RSA_PRIME_WORDS],
u2[2 * MAX_RSA_PRIME_WORDS], u3[2 * MAX_RSA_PRIME_WORDS];
} *frame = (struct BigUnexpFrame *)NULL_PTR;
@@ -46,10 +46,10 @@ A_SURRENDER_CTX *surrenderContext;
/* Just use the buffers allocated on the stack. */
frame = &stackFrame;
#endif
-
+
BigConst (frame->t1, 0, 2 * pSize);
BigConst (frame->t2, 0, 2 * pSize);
-
+
/* u2=c mod p */
BigPdiv (frame->u1, frame->u2, c, pp, 2 * pSize, pSize);
if ((status = CheckSurrender (surrenderContext)) != 0)
@@ -87,7 +87,7 @@ A_SURRENDER_CTX *surrenderContext;
BigAdd (m, m, frame->t2, 2 * pSize);
} while (0);
-
+
if (frame != (struct BigUnexpFrame *)NULL_PTR) {
T_memset ((POINTER)frame, 0, sizeof (*frame));
#if USE_ALLOCED_FRAME
diff --git a/lib/dns/sec/dnssafe/binfocsh.c b/lib/dns/sec/dnssafe/binfocsh.c
index f5c458e336..5fafb80534 100644
--- a/lib/dns/sec/dnssafe/binfocsh.c
+++ b/lib/dns/sec/dnssafe/binfocsh.c
@@ -27,16 +27,16 @@ POINTER infoType;
POINTER info;
{
int status;
-
+
if ((status = B_MemoryPoolRealloc
(&infoCache->memoryPool, (POINTER *)&infoCache->z.infos,
(infoCache->z.infoCount + 1) * sizeof (infoCache->z.infos[0]))) != 0)
return (status);
-
+
infoCache->z.infos[infoCache->z.infoCount].infoType = infoType;
infoCache->z.infos[infoCache->z.infoCount].info = info;
- infoCache->z.infoCount++;
-
+ infoCache->z.infoCount++;
+
return (0);
}
@@ -49,7 +49,7 @@ POINTER *info;
POINTER infoType;
{
unsigned int i;
-
+
for (i = 0; i < infoCache->z.infoCount; ++i) {
if (infoCache->z.infos[i].infoType == infoType) {
/* The info has already been constructed. */
@@ -57,7 +57,7 @@ POINTER infoType;
return (0);
}
}
-
+
return (BE_NOT_SUPPORTED);
}
diff --git a/lib/dns/sec/dnssafe/bkey.c b/lib/dns/sec/dnssafe/bkey.c
index ddd2346073..210f7691ad 100644
--- a/lib/dns/sec/dnssafe/bkey.c
+++ b/lib/dns/sec/dnssafe/bkey.c
@@ -33,7 +33,7 @@ POINTER *info;
B_KeyInfoType *keyInfoType;
{
int status;
-
+
if (key == (B_Key *)NULL_PTR)
return (BE_KEY_OBJ);
@@ -44,7 +44,7 @@ B_KeyInfoType *keyInfoType;
*/
if (B_InfoCacheFindInfo (&key->infoCache, info, (POINTER)keyInfoType) == 0)
return (0);
-
+
/* Info is not in the cache, go ahead and encode.
*/
if ((status = (*keyInfoType->MakeInfo) (info, key)) != 0)
@@ -64,15 +64,15 @@ unsigned int len;
{
ITEM *newInfo;
int status;
-
+
if ((status = B_MemoryPoolAlloc
(&key->infoCache.memoryPool, (POINTER *)&newInfo, sizeof (*newInfo)))
!= 0)
return (status);
-
+
newInfo->data = data;
newInfo->len = len;
-
+
return (B_InfoCacheAddInfo
(&key->infoCache, (POINTER)&KITItem, (POINTER)newInfo));
}
@@ -86,14 +86,14 @@ unsigned int integerLen;
{
unsigned char mask, byte;
unsigned int bytes, bits;
-
+
for (bytes = 0; bytes < integerLen && integer[bytes] == 0; bytes++);
if (bytes == integerLen)
return (0);
-
+
/* Get byte to test and increment byte count for final calculation */
byte = integer[bytes++];
-
+
/* Get number of bits in most significant byte */
for (bits = 8, mask = 0x80; (byte & mask) == 0; bits--, mask >>= 1);
return (8 * (integerLen - bytes) + bits);
diff --git a/lib/dns/sec/dnssafe/bkey.h b/lib/dns/sec/dnssafe/bkey.h
index 5ea9b58141..b4c1edad09 100644
--- a/lib/dns/sec/dnssafe/bkey.h
+++ b/lib/dns/sec/dnssafe/bkey.h
@@ -16,7 +16,7 @@ typedef struct {
/* For now we don't need to worry about a reserved field.
struct {
- POINTER reserved;
+ POINTER reserved;
} z;
*/
} B_Key;
diff --git a/lib/dns/sec/dnssafe/bmempool.c b/lib/dns/sec/dnssafe/bmempool.c
index c7de624f96..95ee194c60 100644
--- a/lib/dns/sec/dnssafe/bmempool.c
+++ b/lib/dns/sec/dnssafe/bmempool.c
@@ -18,7 +18,7 @@ void B_MemoryPoolConstructor (memoryPool)
B_MemoryPool *memoryPool;
{
T_memset ((POINTER)&memoryPool->z, 0, sizeof (memoryPool->z));
-}
+}
void B_MemoryPoolDestructor (memoryPool)
B_MemoryPool *memoryPool;
@@ -84,10 +84,10 @@ POINTER data;
unsigned int size;
{
int status;
-
+
if ((status = B_MemoryPoolAlloc (memoryPool, newData, size)) != 0)
return (status);
-
+
T_memcpy (*newData, data, size);
return (0);
}
@@ -101,17 +101,17 @@ unsigned int size;
to NULL_PTR.
This routine should be used with caution - it is meant be called
immediately after an alloc.
- No check is made as to whether the data is already on the memory pool's
+ No check is made as to whether the data is already on the memory pool's
alloced list (which would be a problem since it will get freed twice).
Returns 0 if successful or BE_ALLOC if cannot expand the alloced list.
- */
+ */
int B_MemoryPoolAdoptData (memoryPool, data, size)
B_MemoryPool *memoryPool;
POINTER *data;
unsigned int size;
{
int status;
-
+
if ((status = B_MemoryPoolAdoptHelper
(memoryPool, *data, size, (B_MEMORY_POOL_DELETE_FUNCTION)NULL))
!= 0) {
@@ -132,10 +132,10 @@ unsigned int size;
The object is not passed by reference. If there is an error,
the calling routine should clean up the object, such as zeroizing
and freeing.
- No check is made as to whether the object is already on the memory pool's
+ No check is made as to whether the object is already on the memory pool's
alloced list (which would be a problem since it will get freed twice).
Returns 0 if successful or BE_ALLOC if cannot expand the alloced list.
- */
+ */
int B_MemoryPoolAdoptHelper (memoryPool, object, size, DeleteFunction)
B_MemoryPool *memoryPool;
POINTER object;
@@ -153,7 +153,7 @@ B_MEMORY_POOL_DELETE_FUNCTION DeleteFunction;
== NULL_PTR)
/* alloc errorm so caller should clean up the object it passed. */
return (BE_ALLOC);
-
+
/* move in new list and free old list */
T_memcpy
(newList, (POINTER)memoryPool->z.allocedList,
@@ -162,7 +162,7 @@ B_MEMORY_POOL_DELETE_FUNCTION DeleteFunction;
memoryPool->z.allocedList = (B_ALLOCED_DATA *)newList;
memoryPool->z.maxAllocedCount = newMaxCount;
}
-
+
/* Put object on alloced list and increment count.
*/
memoryPool->z.allocedList[memoryPool->z.allocedCount].object = object;
@@ -202,14 +202,14 @@ unsigned int size;
return (BE_ALLOC);
}
-
+
/* Realloc was successful.
*/
if (allocedData == (B_ALLOCED_DATA *)NULL_PTR)
/* The data was not in the memory pool to start with, so adopt it.
Note that this also happens when the data is initially NULL_PTR. */
return (B_MemoryPoolAdoptData (memoryPool, data, size));
-
+
/* Replace the entry on the alloced list with the new memory.
*/
allocedData->object = *data;
@@ -230,7 +230,7 @@ B_MemoryPool *memoryPool;
POINTER *object;
{
B_ALLOCED_DATA *allocedData;
-
+
if ((allocedData = B_MemoryPoolFindAllocedObject (memoryPool, *object))
!= (B_ALLOCED_DATA *)NULL_PTR) {
if (allocedData->DeleteFunction !=
@@ -245,7 +245,7 @@ POINTER *object;
/* Set this entry to NULL_PTR so that reset will not process it. */
allocedData->object = NULL_PTR;
}
-
+
*object = NULL_PTR;
}
@@ -259,10 +259,10 @@ POINTER object;
{
B_ALLOCED_DATA *allocedData;
unsigned int i;
-
+
if (object == NULL_PTR)
return ((B_ALLOCED_DATA *)NULL_PTR);
-
+
for (i = memoryPool->z.allocedCount,
allocedData = memoryPool->z.allocedList;
i-- > 0;
diff --git a/lib/dns/sec/dnssafe/cantobig.c b/lib/dns/sec/dnssafe/cantobig.c
index 79b760f7d3..8c097b51fd 100644
--- a/lib/dns/sec/dnssafe/cantobig.c
+++ b/lib/dns/sec/dnssafe/cantobig.c
@@ -23,13 +23,13 @@ unsigned char *bytePointer;
unsigned int numBytes;
{
unsigned int copyCount;
-
+
if (A_IntegerBits (bytePointer, numBytes) / 16 + 1 > wordCount)
return (AE_DATA);
/* start at end of byte vector */
bytePointer += numBytes-1;
-
+
/* copy as much as possible */
copyCount = (wordCount < numBytes / 2) ? wordCount : numBytes / 2;
wordCount -= copyCount;
@@ -39,18 +39,18 @@ unsigned int numBytes;
*wordPointer++ = (UINT2)*bytePointer + (*(bytePointer - 1) << 8);
bytePointer -= 2;
}
-
+
if (wordCount && numBytes & 1) {
/* If the number of input bytes was odd. Copy one last byte.*/
*wordPointer++ = (UINT2)*bytePointer--;
wordCount--;
numBytes--;
}
-
+
/* zero fill remainder of word vector */
while (wordCount--)
*wordPointer++ = 0;
-
+
return (0);
}
diff --git a/lib/dns/sec/dnssafe/crt2.c b/lib/dns/sec/dnssafe/crt2.c
index 36b9d01f95..ff169c04a9 100644
--- a/lib/dns/sec/dnssafe/crt2.c
+++ b/lib/dns/sec/dnssafe/crt2.c
@@ -44,11 +44,11 @@ A_RSA_CRT_KEY *key;
(context->primeP, MAX_RSA_PRIME_WORDS, key->prime[0].data,
key->prime[0].len))
return (AE_KEY_INFO);
-
+
/* compute significant length of first prime */
context->primeWords = BITS_TO_WORDS
(BigLen (context->primeP, MAX_RSA_PRIME_WORDS));
-
+
/* convert other private key parameters to bignum format */
if (CanonicalToBig
(context->primeQ, context->primeWords, key->prime[1].data,
@@ -99,7 +99,7 @@ A_SURRENDER_CTX *surrenderContext;
context->inputLen += partInLen;
return (0);
}
-
+
if (context->inputLen > 0) {
/* Need to accumulate the rest of the block bytes into the input and
encrypt from there (otherwise it's OK to encrypt straight from
@@ -111,7 +111,7 @@ A_SURRENDER_CTX *surrenderContext;
partialLen);
partIn += partialLen;
partInLen -= partialLen;
-
+
if ((status = RSA_CRT2
(context, partOut, &localPartOutLen, maxPartOutLen, context->input,
surrenderContext)) != 0)
@@ -128,14 +128,14 @@ A_SURRENDER_CTX *surrenderContext;
(context, partOut, &localPartOutLen, maxPartOutLen, partIn,
surrenderContext)) != 0)
return (status);
-
+
partIn += context->blockLen;
partInLen -= context->blockLen;
(*partOutLen) += localPartOutLen;
partOut += localPartOutLen;
maxPartOutLen -= localPartOutLen;
}
-
+
/* Copy remaining input bytes to the context's input buffer.
*/
T_memcpy
@@ -149,7 +149,7 @@ A_RSA_CRT2_CTX *context;
{
if (context->inputLen != 0)
return (AE_INPUT_LEN);
-
+
/* Restart context to accumulate a new block.
*/
context->inputLen = 0;
@@ -180,7 +180,7 @@ A_SURRENDER_CTX *surrenderContext;
do {
if ((*outputLen = context->blockLen) > maxOutputLen)
return (AE_OUTPUT_LEN);
-
+
#if USE_ALLOCED_FRAME
if ((frame = (struct ModExpCRTFrame *)T_malloc (sizeof (*frame)))
== (struct ModExpCRTFrame *)NULL_PTR) {
@@ -202,7 +202,7 @@ A_SURRENDER_CTX *surrenderContext;
if (BigCmp
(frame->bigInBuf, context->modulus, 2 * context->primeWords) >= 0)
GENERATE_BREAK (AE_INPUT_DATA);
-
+
/* Chinese remainder exponentiation. */
if ((status = BigUnexp
(frame->bigOutBuf, frame->bigInBuf, context->primeP, context->primeQ,
@@ -216,7 +216,7 @@ A_SURRENDER_CTX *surrenderContext;
BigToCanonical
(output, *outputLen, frame->bigOutBuf, 2 * context->primeWords);
} while (0);
-
+
if (frame != (struct ModExpCRTFrame *)NULL_PTR) {
T_memset ((POINTER)frame, 0, sizeof (*frame));
#if USE_ALLOCED_FRAME
diff --git a/lib/dns/sec/dnssafe/digrand.c b/lib/dns/sec/dnssafe/digrand.c
index e6f9016e5a..123cbfaaa4 100644
--- a/lib/dns/sec/dnssafe/digrand.c
+++ b/lib/dns/sec/dnssafe/digrand.c
@@ -36,7 +36,7 @@ unsigned char *input;
unsigned int inputLen;
{
unsigned int i, j, x;
-
+
(*digestRandom->vTable->DigestUpdate) (digestRandom, input, inputLen);
(*digestRandom->vTable->DigestFinal) (digestRandom, digestRandom->_digest);
@@ -56,7 +56,7 @@ unsigned char *output;
unsigned int outputLen;
{
unsigned int available, i;
-
+
available = digestRandom->_outputAvailable;
while (outputLen > available) {
@@ -79,7 +79,7 @@ unsigned int outputLen;
break;
}
- T_memcpy
+ T_memcpy
((POINTER)output,
(POINTER)&digestRandom->_output[digestRandom->_digestLen-available],
outputLen);
diff --git a/lib/dns/sec/dnssafe/global.h b/lib/dns/sec/dnssafe/global.h
index ca21ecb7ff..ce78bffe43 100644
--- a/lib/dns/sec/dnssafe/global.h
+++ b/lib/dns/sec/dnssafe/global.h
@@ -45,7 +45,7 @@ typedef isc_uint32_t UINT4;
/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
- returns an empty list.
+ returns an empty list.
*/
#if PROTOTYPES
#define PROTO_LIST(list) list
diff --git a/lib/dns/sec/dnssafe/intbits.c b/lib/dns/sec/dnssafe/intbits.c
index 6a60e22ad8..3bed219498 100644
--- a/lib/dns/sec/dnssafe/intbits.c
+++ b/lib/dns/sec/dnssafe/intbits.c
@@ -18,14 +18,14 @@ unsigned int integerLen;
{
unsigned char mask, byte;
unsigned int bytes, bits;
-
+
for (bytes = 0; bytes < integerLen && integer[bytes] == 0; bytes++);
if (bytes == integerLen)
return (0);
-
+
/* Get byte to test and increment byte count for final calculation */
byte = integer[bytes++];
-
+
/* Get number of bits in most significant byte */
for (bits = 8, mask = 0x80; (byte & mask) == 0; bits--, mask >>= 1);
return (8 * (integerLen - bytes) + bits);
diff --git a/lib/dns/sec/dnssafe/intitem.c b/lib/dns/sec/dnssafe/intitem.c
index a9bcc7e895..f4951019f7 100644
--- a/lib/dns/sec/dnssafe/intitem.c
+++ b/lib/dns/sec/dnssafe/intitem.c
@@ -31,7 +31,7 @@ B_MemoryPool *memoryPool;
ITEM sourceItem, *destinationItem;
int status;
unsigned int i, offset;
-
+
for (i = 0; i < itemCount; i++) {
offset = (unsigned int)((char *)staticItems[i] - (char *)staticStruct);
sourceItem = *(ITEM *)((char *)source + offset);
@@ -41,14 +41,14 @@ B_MemoryPool *memoryPool;
sourceItem.len--;
sourceItem.data++;
}
-
+
if ((status = B_MemoryPoolAllocAndCopy
(memoryPool, (POINTER *)&destinationItem->data,
(POINTER)sourceItem.data, destinationItem->len = sourceItem.len))
!= 0)
return (status);
}
-
+
return (0);
}
diff --git a/lib/dns/sec/dnssafe/keyobj.c b/lib/dns/sec/dnssafe/keyobj.c
index 4dd5d77c03..651572f889 100644
--- a/lib/dns/sec/dnssafe/keyobj.c
+++ b/lib/dns/sec/dnssafe/keyobj.c
@@ -28,7 +28,7 @@ B_KEY_OBJ *keyObject;
/* First construct base class */
B_KEY_Constructor (&keyWrap->key);
-
+
keyWrap->typeTag = &KEY_TYPE_TAG;
keyWrap->selfCheck = keyWrap;
return (0);
@@ -43,7 +43,7 @@ B_KEY_OBJ *keyObject;
*/
if (*keyObject == NULL_PTR)
return;
-
+
if (KeyWrapCheck (keyWrap) == 0) {
/* zeroize self check to invalidate memory. */
keyWrap->selfCheck = (KeyWrap *)NULL_PTR;
@@ -64,7 +64,7 @@ POINTER info;
{
B_KeyInfoType *keyInfoType;
int status;
-
+
if ((status = KeyWrapCheck (THE_KEY_WRAP)) != 0)
return (status);
@@ -73,7 +73,7 @@ POINTER info;
*/
if ((*infoType) ((POINTER *)&keyInfoType) == 0)
return (BE_ALG_OPERATION_UNKNOWN);
-
+
return (B_KeySetInfo (&THE_KEY_WRAP->key, keyInfoType, info));
}
@@ -84,7 +84,7 @@ B_INFO_TYPE infoType;
{
B_KeyInfoType *keyInfoType;
int status;
-
+
if ((status = KeyWrapCheck (THE_KEY_WRAP)) != 0)
return (status);
@@ -93,7 +93,7 @@ B_INFO_TYPE infoType;
*/
if ((*infoType) ((POINTER *)&keyInfoType) == 0)
return (BE_ALG_OPERATION_UNKNOWN);
-
+
return (B_KeyGetInfo (&THE_KEY_WRAP->key, info, keyInfoType));
}
diff --git a/lib/dns/sec/dnssafe/ki8byte.c b/lib/dns/sec/dnssafe/ki8byte.c
index 306cc7b104..82eb8dafb1 100644
--- a/lib/dns/sec/dnssafe/ki8byte.c
+++ b/lib/dns/sec/dnssafe/ki8byte.c
@@ -36,7 +36,7 @@ POINTER info;
{
POINTER newData;
int status;
-
+
/* Copy the 8 byte key. */
if ((status = B_MemoryPoolAllocAndCopy
(&key->infoCache.memoryPool, &newData, info, 8)) != 0)
@@ -55,7 +55,7 @@ B_Key *key;
{
ITEM *item;
int status;
-
+
/* Try to make one from a KI_Item. Since KI_Item doesn't
call KI_8Byte, this should not cause an endless loop.
*/
diff --git a/lib/dns/sec/dnssafe/kifulprv.c b/lib/dns/sec/dnssafe/kifulprv.c
index be358352b0..29b65e143e 100644
--- a/lib/dns/sec/dnssafe/kifulprv.c
+++ b/lib/dns/sec/dnssafe/kifulprv.c
@@ -50,7 +50,7 @@ ITEM *coefficient;
(&key->infoCache.memoryPool, (POINTER *)&fullKey,
sizeof (FULL_PRIVATE_KEY))) != 0)
return (status);
-
+
/* Pre-zeroize and only copy in values that are not NULL.
*/
T_memset ((POINTER)fullKey, 0, sizeof (*fullKey));
@@ -70,7 +70,7 @@ ITEM *coefficient;
}
if (coefficient != (ITEM *)NULL_PTR)
fullKey->coefficient = *coefficient;
-
+
return (B_InfoCacheAddInfo
(&key->infoCache, (POINTER)&KITFullPrivate, (POINTER)fullKey));
}
@@ -94,7 +94,7 @@ B_Key *key;
{
FULL_PRIVATE_KEY *fullKey;
int status;
-
+
if ((status = B_KeyGetInfo
(key, (POINTER *)&fullKey, &KITFullPrivate)) != 0)
return (status);
@@ -133,7 +133,7 @@ B_Key *key;
return (BE_WRONG_KEY_INFO);
*coefficient = fullKey->coefficient;
}
-
+
return (0);
}
diff --git a/lib/dns/sec/dnssafe/kiitem.c b/lib/dns/sec/dnssafe/kiitem.c
index 9c44d8f1a9..a8d16921ef 100644
--- a/lib/dns/sec/dnssafe/kiitem.c
+++ b/lib/dns/sec/dnssafe/kiitem.c
@@ -33,12 +33,12 @@ POINTER info;
{
unsigned char *newData;
int status;
-
+
if ((status = B_MemoryPoolAllocAndCopy
(&key->infoCache.memoryPool, (POINTER *)&newData,
(POINTER)((ITEM *)info)->data, ((ITEM *)info)->len)) != 0)
return (status);
-
+
return (B_KeyAddItemInfo (key, newData, ((ITEM *)info)->len));
}
diff --git a/lib/dns/sec/dnssafe/kinfotyp.h b/lib/dns/sec/dnssafe/kinfotyp.h
index 39c5292c6c..328c388a6f 100644
--- a/lib/dns/sec/dnssafe/kinfotyp.h
+++ b/lib/dns/sec/dnssafe/kinfotyp.h
@@ -48,7 +48,7 @@ typedef int (*KIT_MAKE_INFO) PROTO_LIST ((POINTER *, B_Key *));
There is one global instance which is used by B_Key::setInfo, etc.:
-
+
KITItem KITItem;
*/
diff --git a/lib/dns/sec/dnssafe/kipkcrpr.c b/lib/dns/sec/dnssafe/kipkcrpr.c
index 50c08edb1b..bdc67f44d5 100644
--- a/lib/dns/sec/dnssafe/kipkcrpr.c
+++ b/lib/dns/sec/dnssafe/kipkcrpr.c
@@ -44,7 +44,7 @@ POINTER info;
{
A_PKCS_RSA_PRIVATE_KEY *newValue;
int status;
-
+
/* Allocate memory for A_PKCS_RSA_PRIVATE_KEY struct and copy integers
from supplied value.
*/
@@ -54,11 +54,11 @@ POINTER info;
return (status);
if ((status = AllocAndCopyIntegerItems
((POINTER)newValue, info, (POINTER)&STATIC_PKCS_RSA_PRIVATE_KEY,
- PKCS_RSA_PRIVATE_KEY_ITEMS, sizeof (PKCS_RSA_PRIVATE_KEY_ITEMS) /
+ PKCS_RSA_PRIVATE_KEY_ITEMS, sizeof (PKCS_RSA_PRIVATE_KEY_ITEMS) /
sizeof (PKCS_RSA_PRIVATE_KEY_ITEMS[0]), &key->infoCache.memoryPool))
!= 0)
return (status);
-
+
/* Cache the full private key info.
*/
if ((status = CacheFullPrivateKey
@@ -93,7 +93,7 @@ B_Key *key;
(&key->infoCache.memoryPool, info, sizeof (A_PKCS_RSA_PRIVATE_KEY)))
!= 0)
return (status);
-
+
**(A_PKCS_RSA_PRIVATE_KEY **)info = keyValue;
return (0);
}
diff --git a/lib/dns/sec/dnssafe/kirsacrt.c b/lib/dns/sec/dnssafe/kirsacrt.c
index fe1ecb934f..afcaf6ca07 100644
--- a/lib/dns/sec/dnssafe/kirsacrt.c
+++ b/lib/dns/sec/dnssafe/kirsacrt.c
@@ -46,7 +46,7 @@ POINTER info;
{
A_RSA_CRT_KEY *newValue;
int status;
-
+
/* Allocate memory for A_RSA_CRT_KEY struct and copy integers
from supplied value.
*/
@@ -94,7 +94,7 @@ B_Key *key;
if ((status = B_MemoryPoolAlloc
(&key->infoCache.memoryPool, info, sizeof (A_RSA_CRT_KEY))) != 0)
return (status);
-
+
**(A_RSA_CRT_KEY **)info = keyValue;
return (0);
}
diff --git a/lib/dns/sec/dnssafe/kirsapub.c b/lib/dns/sec/dnssafe/kirsapub.c
index a588ec8868..0d0eaa7dcf 100644
--- a/lib/dns/sec/dnssafe/kirsapub.c
+++ b/lib/dns/sec/dnssafe/kirsapub.c
@@ -36,7 +36,7 @@ POINTER info;
{
POINTER newValue;
int status;
-
+
/* Allocate memory for A_RSA_KEY struct and copy integers
from supplied value.
*/
@@ -48,7 +48,7 @@ POINTER info;
sizeof (RSA_KEY_ITEMS) / sizeof (RSA_KEY_ITEMS[0]),
&key->infoCache.memoryPool)) != 0)
return (status);
-
+
return (B_InfoCacheAddInfo
(&key->infoCache, (POINTER)&KIT_RSAPublic, newValue));
}
@@ -59,7 +59,7 @@ B_Key *key;
{
A_RSA_KEY keyValue;
int status;
-
+
/* If not already found in the cache, try to get values from
a full private key info, setting unneeded entries to NULL.
*/
@@ -74,7 +74,7 @@ B_Key *key;
if ((status = B_MemoryPoolAlloc
(&key->infoCache.memoryPool, info, sizeof (A_RSA_KEY))) != 0)
return (status);
-
+
**(A_RSA_KEY **)info = keyValue;
return (0);
}
diff --git a/lib/dns/sec/dnssafe/md5.c b/lib/dns/sec/dnssafe/md5.c
index a5865d9ea8..4388d3642e 100644
--- a/lib/dns/sec/dnssafe/md5.c
+++ b/lib/dns/sec/dnssafe/md5.c
@@ -109,15 +109,15 @@ unsigned int inputLen; /* length of input block */
if (inputLen >= partLen) {
T_memcpy ((POINTER)&context->buffer[index], (POINTER)input, partLen);
MD5Transform (context->state, context->buffer);
-
+
for (i = partLen; i + 63 < inputLen; i += 64)
MD5Transform (context->state, &input[i]);
-
+
index = 0;
}
else
i = 0;
-
+
/* Buffer remaining input */
T_memcpy ((POINTER)&context->buffer[index], (POINTER)&input[i], inputLen-i);
}
@@ -240,7 +240,7 @@ unsigned char block[64];
state[1] += b;
state[2] += c;
state[3] += d;
-
+
/* Zeroize sensitive information.
*/
T_memset ((POINTER)x, 0, sizeof (x));
diff --git a/lib/dns/sec/dnssafe/md5rand.h b/lib/dns/sec/dnssafe/md5rand.h
index dc0b20ae41..8f0535a405 100644
--- a/lib/dns/sec/dnssafe/md5rand.h
+++ b/lib/dns/sec/dnssafe/md5rand.h
@@ -18,7 +18,7 @@ extern "C" {
typedef struct A_MD5_RANDOM_CTX {
A_DigestRandom digestRandom; /* "base class" */
-
+
unsigned char state[3 * A_MD5_DIGEST_LEN];
A_MD5_CTX md5Context;
} A_MD5_RANDOM_CTX;
diff --git a/lib/dns/sec/dnssafe/prime.c b/lib/dns/sec/dnssafe/prime.c
index f2832ea1ec..014d54c116 100644
--- a/lib/dns/sec/dnssafe/prime.c
+++ b/lib/dns/sec/dnssafe/prime.c
@@ -32,7 +32,7 @@ A_SURRENDER_CTX *surrenderContext;
char sieve[1000];
int status = 0;
unsigned int i, r, s, testResult;
-
+
do {
/* Create a starting point for the prime from the random block */
for (i = 0; i < primeWords; i++) {
@@ -42,13 +42,13 @@ A_SURRENDER_CTX *surrenderContext;
/* set high order two bits */
BigSetbit (prime, primeSizeBits-2);
- BigSetbit (prime, primeSizeBits-1);
- for (i = primeSizeBits; i < (unsigned int)(16 * primeWords); i++)
+ BigSetbit (prime, primeSizeBits-1);
+ for (i = primeSizeBits; i < (unsigned int)(16 * primeWords); i++)
BigClrbit (prime, i);
/* force p to be even */
BigClrbit (prime, 0);
-
+
/* clear sieve and mark even positions */
for (i = 0; i < 1000; i += 2) {
sieve[i] = 1;
@@ -72,7 +72,7 @@ A_SURRENDER_CTX *surrenderContext;
for (i = s - r; i < 1000; i += s)
sieve[i] = 1;
}
-
+
/* t1 = 1 */
BigConst (t1, 1, modulusWords);
@@ -105,7 +105,7 @@ A_SURRENDER_CTX *surrenderContext;
}
if (status)
break;
-
+
if (!testResult)
/* Couldn't find a prime with the supplied random block, so ask
caller to generate another random block and try again. */
@@ -123,7 +123,7 @@ A_SURRENDER_CTX *surrenderContext;
If pseudo prime, *testResult = 1, else *testResult = 0.
Returns 0, AE_CANCEL.
*/
-int PseudoPrime (testResult, prime, primeWords, surrenderContext)
+int PseudoPrime (testResult, prime, primeWords, surrenderContext)
unsigned int *testResult;
UINT2 *prime;
unsigned int primeWords;
@@ -135,10 +135,10 @@ A_SURRENDER_CTX *surrenderContext;
/* Default testResult to false. */
*testResult = 0;
-
+
/* Prepare for setting base vector to the small prime. */
T_memset ((POINTER)base, 0, sizeof (base));
-
+
for (i = 0; i < 4; i++) {
/* check to see if target is multiple of SMALL_PRIME */
if (BigSmod (prime, (unsigned int)SMALL_PRIME[i], primeWords) == 0)
diff --git a/lib/dns/sec/dnssafe/rsa.c b/lib/dns/sec/dnssafe/rsa.c
index 8cf24b32ad..1e289fcc39 100644
--- a/lib/dns/sec/dnssafe/rsa.c
+++ b/lib/dns/sec/dnssafe/rsa.c
@@ -85,7 +85,7 @@ A_SURRENDER_CTX *surrenderContext;
context->inputLen += partInLen;
return (0);
}
-
+
if (context->inputLen > 0) {
/* Need to accumulate the rest of the block bytes into the input and
encrypt from there (otherwise it's OK to encrypt straight from
@@ -97,7 +97,7 @@ A_SURRENDER_CTX *surrenderContext;
partialLen);
partIn += partialLen;
partInLen -= partialLen;
-
+
if ((status = RSA
(context, partOut, &localPartOutLen, maxPartOutLen, context->input,
surrenderContext)) != 0)
@@ -114,14 +114,14 @@ A_SURRENDER_CTX *surrenderContext;
(context, partOut, &localPartOutLen, maxPartOutLen, partIn,
surrenderContext)) != 0)
return (status);
-
+
partIn += context->blockLen;
partInLen -= context->blockLen;
(*partOutLen) += localPartOutLen;
partOut += localPartOutLen;
maxPartOutLen -= localPartOutLen;
}
-
+
/* Copy remaining input bytes to the context's input buffer.
*/
T_memcpy
@@ -134,7 +134,7 @@ A_RSA_CTX *context;
{
if (context->inputLen != 0)
return (AE_INPUT_LEN);
-
+
/* Restart context to accumulate a new block. */
context->inputLen = 0;
return (0);
@@ -163,7 +163,7 @@ A_SURRENDER_CTX *surrenderContext;
do {
if ((*outputLen = context->blockLen) > maxOutputLen)
return (AE_OUTPUT_LEN);
-
+
#if USE_ALLOCED_FRAME
if ((frame = (struct ModExpFrame *)T_malloc (sizeof (*frame)))
== (struct ModExpFrame *)NULL_PTR) {
@@ -180,11 +180,11 @@ A_SURRENDER_CTX *surrenderContext;
*/
CanonicalToBig
(frame->bigInBuf, context->modulusWords, input, context->blockLen);
-
+
/* Check for overflow. */
if (BigCmp (frame->bigInBuf, context->modulus, context->modulusWords) >= 0)
GENERATE_BREAK (AE_INPUT_DATA);
-
+
/* Exponentiate. */
if ((status = BigModExp
(frame->bigOutBuf, frame->bigInBuf, context->exponent,
@@ -197,7 +197,7 @@ A_SURRENDER_CTX *surrenderContext;
BigToCanonical
(output, *outputLen, frame->bigOutBuf, context->modulusWords);
} while (0);
-
+
if (frame != (struct ModExpFrame *)NULL_PTR) {
T_memset ((POINTER)frame, 0, sizeof (*frame));
#if USE_ALLOCED_FRAME
diff --git a/lib/dns/sec/dnssafe/rsakeygn.c b/lib/dns/sec/dnssafe/rsakeygn.c
index 685fb71cec..7623db8f06 100644
--- a/lib/dns/sec/dnssafe/rsakeygn.c
+++ b/lib/dns/sec/dnssafe/rsakeygn.c
@@ -29,12 +29,12 @@ A_RSA_KEY_GEN_CTX *context;
A_RSA_KEY_GEN_PARAMS *params;
{
context->modulusBits = params->modulusBits;
-
+
/* Prezeroize big public exponent vector. */
T_memset
((POINTER)context->bigPublicExponent, 0,
sizeof (context->bigPublicExponent));
-
+
/* Copy public exponent into big vector */
if (CanonicalToBig
(context->bigPublicExponent, MAX_RSA_MODULUS_WORDS,
@@ -88,7 +88,7 @@ A_SURRENDER_CTX *surrenderContext;
modulusWords = BITS_TO_WORDS (context->modulusBits);
primeSizeBits = RSA_PRIME_BITS (context->modulusBits);
primeWords = BITS_TO_WORDS (RSA_PRIME_BITS (context->modulusBits));
-
+
/* Fish for bigPrime1 and bigPrime2 that are compatible with supplied
publicExponent.
The randomBlock holds random bytes for two primes.
@@ -117,25 +117,25 @@ A_SURRENDER_CTX *surrenderContext;
}
/* Calculate the rest of the key components */
- if ((status = RSAParameters
+ if ((status = RSAParameters
(context->bigModulus, context->bigCoefficient,
context->bigExponentP, context->bigExponentQ,
context->bigPrivateExponent, context->bigPublicExponent,
bigPrimeP, bigPrimeQ, primeWords, modulusWords, surrenderContext)) != 0)
return (status);
-
+
/* Copy key components into canonical buffers which are at the
end of the context. */
*result = &context->result;
SetRSAKeyGenResult (*result, context, bigPrimeP, bigPrimeQ);
-
+
return (0);
}
/* Assumes ee, pp, qq are given, calculates other parameters.
Returns 0, AE_CANCEL.
*/
-static int RSAParameters
+static int RSAParameters
(nn, cr, dp, dq, dd, ee, pp, qq, primeWords, modulusWords, surrenderContext)
UINT2 *nn, *cr, *dp, *dq, *dd, *ee, *pp, *qq;
unsigned int primeWords, modulusWords;
@@ -143,25 +143,25 @@ A_SURRENDER_CTX *surrenderContext;
{
UINT2 t1[2 * MAX_RSA_PRIME_WORDS], t2[MAX_RSA_PRIME_WORDS],
t3[MAX_RSA_MODULUS_WORDS], u1[MAX_RSA_MODULUS_WORDS],
- u3[MAX_RSA_MODULUS_WORDS], pm1[MAX_RSA_PRIME_WORDS],
+ u3[MAX_RSA_MODULUS_WORDS], pm1[MAX_RSA_PRIME_WORDS],
qm1[MAX_RSA_PRIME_WORDS];
int status;
-
+
do {
/* N=P*Q */
BigMpy (t1, pp, qq, primeWords);
if ((status = CheckSurrender (surrenderContext)) != 0)
break;
BigCopy (nn, t1, modulusWords);
-
+
/* qm1=q-1 & pm1=p-1 */
BigConst (t1, 1, primeWords);
BigSub (qm1, qq, t1, primeWords);
BigSub (pm1, pp, t1, primeWords);
-
+
/* t3=1 */
BigConst (t3, 1, modulusWords);
-
+
/*t1=phi (N) */
BigMpy (t1, pm1, qm1, primeWords);
if ((status = CheckSurrender (surrenderContext)) != 0)
@@ -179,11 +179,11 @@ A_SURRENDER_CTX *surrenderContext;
BigPdiv (t1, dq, dd, qm1, modulusWords, primeWords);
if ((status = CheckSurrender (surrenderContext)) != 0)
break;
-
+
/* calc CR = (inv (Q)[modP]) */
BigPegcd (t1, t2, cr, pp, qq, primeWords);
} while (0);
-
+
T_memset ((POINTER)t1, 0, sizeof (t1));
T_memset ((POINTER)t2, 0, sizeof (t2));
T_memset ((POINTER)t3, 0, sizeof (t3));
@@ -204,10 +204,10 @@ UINT2 *bigPrimeQ;
modulusLen = result->modulus.len = result->publicExponent.len =
result->privateExponent.len = BITS_TO_LEN (context->modulusBits);
- primeLen = result->prime[0].len = result->prime[1].len =
+ primeLen = result->prime[0].len = result->prime[1].len =
result->primeExponent[0].len = result->primeExponent[1].len =
result->coefficient.len = RSA_PRIME_LEN (context->modulusBits);
-
+
result->modulus.data = context->resultBuffer;
result->publicExponent.data = result->modulus.data + modulusLen;
result->privateExponent.data = result->publicExponent.data + modulusLen;
@@ -226,11 +226,11 @@ UINT2 *bigPrimeQ;
BigToCanonical
(result->privateExponent.data, modulusLen,
context->bigPrivateExponent, MAX_RSA_MODULUS_WORDS);
- BigToCanonical
+ BigToCanonical
(result->prime[0].data, primeLen, bigPrimeP, MAX_RSA_PRIME_WORDS);
- BigToCanonical
+ BigToCanonical
(result->prime[1].data, primeLen, bigPrimeQ, MAX_RSA_PRIME_WORDS);
- BigToCanonical
+ BigToCanonical
(result->primeExponent[0].data, primeLen, context->bigExponentP,
MAX_RSA_PRIME_WORDS);
BigToCanonical
diff --git a/lib/dns/sec/dnssafe/seccbcd.c b/lib/dns/sec/dnssafe/seccbcd.c
index 52dafd692e..e00ee4596a 100644
--- a/lib/dns/sec/dnssafe/seccbcd.c
+++ b/lib/dns/sec/dnssafe/seccbcd.c
@@ -49,7 +49,7 @@ unsigned int inputLen;
((POINTER)remainder + *remainderLen, (POINTER)input,
partialLen = 16 - *remainderLen);
input += partialLen;
- inputLen -= partialLen;
+ inputLen -= partialLen;
/* remainder is full and inputLen is at least 1. Compute outputLen
as the size needed to keep remainder as full as possible.
@@ -60,7 +60,7 @@ unsigned int inputLen;
SecretCBCDecryptBlock
(context, xorBlock, SecretDecrypt, output, remainder);
output += 8;
-
+
if (inputLen <= 8) {
/* Shift remaining input bytes into remainder */
T_memmove ((POINTER)remainder, (POINTER)(remainder + 8), 8);
@@ -109,7 +109,7 @@ unsigned int maxOutputLen;
if ((*outputLen = remainderLen) == 0)
/* There was never any data. */
return (0);
-
+
if (remainderLen != 8 && remainderLen != 16)
return (AE_INPUT_LEN);
@@ -134,13 +134,13 @@ unsigned char *in;
{
unsigned char tempBuffer[8];
unsigned int i;
-
+
/* Save input to be copied to the xor block. */
T_memcpy ((POINTER)tempBuffer, (POINTER)in, 8);
(*SecretDecrypt) (context, out, in);
for (i = 0; i < 8; i++)
- out[i] ^= xorBlock[i];
+ out[i] ^= xorBlock[i];
T_memcpy ((POINTER)xorBlock, (POINTER)tempBuffer, 8);
-
+
T_memset ((POINTER)tempBuffer, 0, sizeof (tempBuffer));
}
diff --git a/lib/dns/sec/dnssafe/seccbce.c b/lib/dns/sec/dnssafe/seccbce.c
index 6fe5c863b9..16d12e7517 100644
--- a/lib/dns/sec/dnssafe/seccbce.c
+++ b/lib/dns/sec/dnssafe/seccbce.c
@@ -35,29 +35,29 @@ unsigned int inputLen;
*/
if ((*outputLen = 8 * (totalLen / 8)) > maxOutputLen)
return (AE_OUTPUT_LEN);
-
+
if (totalLen < 8) {
/* Not enough to encrypt, just accumulate into remainder.
*/
T_memcpy
((POINTER)remainder + *remainderLen, (POINTER)input, inputLen);
*remainderLen = totalLen;
-
+
return (0);
}
-
+
/* Accumulate enough bytes from input into remainder to encrypt the
remainder.
*/
T_memcpy
((POINTER)remainder + *remainderLen, (POINTER)input,
partialLen = 8 - *remainderLen);
-
+
for (i = 0; i < 8; i++)
output[i] = remainder[i] ^ xorBlock[i];
/* Encrypt in place */
(*SecretEncrypt) (context, output, output);
-
+
T_memcpy ((POINTER)xorBlock, (POINTER)output, 8);
input += partialLen;
inputLen -= partialLen;
@@ -79,7 +79,7 @@ unsigned int inputLen;
*/
T_memcpy ((POINTER)remainder, (POINTER)input, inputLen);
*remainderLen = inputLen;
-
+
return (0);
}
@@ -92,6 +92,6 @@ unsigned int remainderLen;
{
if (remainderLen != 0)
return (AE_INPUT_LEN);
-
+
return (0);
}
diff --git a/lib/dns/sec/dst/Makefile.in b/lib/dns/sec/dst/Makefile.in
index 4f79fc67af..c171a058d5 100644
--- a/lib/dns/sec/dst/Makefile.in
+++ b/lib/dns/sec/dst/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.14 2000/07/31 19:44:13 bwelling Exp $
+# $Id: Makefile.in,v 1.15 2000/08/01 01:27:43 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/dst/bsafe_link.c b/lib/dns/sec/dst/bsafe_link.c
index df4370f469..faa21a44d5 100644
--- a/lib/dns/sec/dst/bsafe_link.c
+++ b/lib/dns/sec/dst/bsafe_link.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: bsafe_link.c,v 1.32 2000/06/22 21:19:13 bwelling Exp $
+ * $Id: bsafe_link.c,v 1.33 2000/08/01 01:27:44 tale Exp $
*/
#if defined(DNSSAFE)
@@ -120,7 +120,7 @@ dnssafersa_sign(dst_context_t *dctx, isc_buffer_t *sig) {
isc_buffer_availableregion(sig, &sig_region);
if (sig_region.length * 8 < (unsigned int) key->key_size)
return (ISC_R_NOSPACE);
-
+
if (!dnssafersa_isprivate(key))
return (DST_R_NOTPRIVATEKEY);
@@ -250,16 +250,16 @@ dnssafersa_compare(const dst_key_t *key1, const dst_key_t *key2) {
rkey1 = (RSA_Key *) key1->opaque;
rkey2 = (RSA_Key *) key2->opaque;
- if (rkey1 == NULL && rkey2 == NULL)
+ if (rkey1 == NULL && rkey2 == NULL)
return (ISC_TRUE);
else if (rkey1 == NULL || rkey2 == NULL)
return (ISC_FALSE);
- if (rkey1->rk_Public_Key)
- (void)B_GetKeyInfo((POINTER *) &public1, rkey1->rk_Public_Key,
+ if (rkey1->rk_Public_Key)
+ (void)B_GetKeyInfo((POINTER *) &public1, rkey1->rk_Public_Key,
KI_RSAPublic);
- if (rkey2->rk_Public_Key)
- (void)B_GetKeyInfo((POINTER *) &public2, rkey2->rk_Public_Key,
+ if (rkey2->rk_Public_Key)
+ (void)B_GetKeyInfo((POINTER *) &public2, rkey2->rk_Public_Key,
KI_RSAPublic);
if (public1 == NULL && public2 == NULL)
return (ISC_TRUE);
@@ -269,7 +269,7 @@ dnssafersa_compare(const dst_key_t *key1, const dst_key_t *key2) {
status = itemcmp(public1->modulus, public2->modulus) ||
itemcmp(public1->exponent, public2->exponent);
- if (status == ISC_FALSE)
+ if (status == ISC_FALSE)
return (ISC_FALSE);
if (rkey1->rk_Private_Key != NULL || rkey2->rk_Private_Key != NULL) {
@@ -281,7 +281,7 @@ dnssafersa_compare(const dst_key_t *key1, const dst_key_t *key2) {
KI_PKCS_RSAPrivate);
(void)B_GetKeyInfo((POINTER *)&p2, rkey2->rk_Private_Key,
KI_PKCS_RSAPrivate);
- if (p1 == NULL || p2 == NULL)
+ if (p1 == NULL || p2 == NULL)
return (ISC_FALSE);
status = itemcmp(p1->modulus, p2->modulus) &&
@@ -549,7 +549,7 @@ dnssafersa_fromdns(dst_key_t *key, isc_buffer_t *data) {
if (bytes == 0) /* special case for long exponents */
bytes = isc_buffer_getuint16(data);
- if (bytes > MAX_RSA_MODULUS_LEN) {
+ if (bytes > MAX_RSA_MODULUS_LEN) {
dnssafersa_destroy(key);
return (DST_R_INVALIDPUBLICKEY);
}
@@ -575,7 +575,7 @@ dnssafersa_fromdns(dst_key_t *key, isc_buffer_t *data) {
isc_buffer_remainingregion(data, &r);
- if (r.length > MAX_RSA_MODULUS_LEN) {
+ if (r.length > MAX_RSA_MODULUS_LEN) {
dnssafersa_destroy(key);
memset(public->exponent.data, 0, bytes);
isc_mem_put(mctx, public->exponent.data, bytes);
@@ -664,7 +664,7 @@ dnssafersa_tofile(const dst_key_t *key, const char *directory) {
return (dst__privstruct_writefile(key, &priv, directory));
}
-static isc_result_t
+static isc_result_t
dnssafersa_fromfile(dst_key_t *key, const isc_uint16_t id,
const char *filename) {
dst_private_t priv;
@@ -695,7 +695,7 @@ dnssafersa_fromfile(dst_key_t *key, const isc_uint16_t id,
memset(private, 0, sizeof(*private));
public = (A_RSA_KEY *) isc_mem_get(mctx, sizeof(A_RSA_KEY));
- if (public == NULL)
+ if (public == NULL)
DST_RET(ISC_R_NOMEMORY);
memset(public, 0, sizeof(*public));
@@ -750,7 +750,7 @@ dnssafersa_fromfile(dst_key_t *key, const isc_uint16_t id,
DST_RET(DST_R_INVALIDPRIVATEKEY);
rkey = (RSA_Key *) isc_mem_get(mctx, sizeof(RSA_Key));
- if (rkey == NULL)
+ if (rkey == NULL)
DST_RET(ISC_R_NOMEMORY);
memset(rkey, 0, sizeof(*rkey));
if (B_CreateKeyObject(&(rkey->rk_Public_Key)) != 0)
@@ -816,7 +816,7 @@ void
dst__dnssafersa_destroy(void) {
}
-/*
+/*
* define memory functions for dnssafe that use the isc_mem functions and a
* static context.
*/
diff --git a/lib/dns/sec/dst/dst_api.c b/lib/dns/sec/dst/dst_api.c
index c779d0bccf..1e43d55ae0 100644
--- a/lib/dns/sec/dst/dst_api.c
+++ b/lib/dns/sec/dst/dst_api.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: dst_api.c,v 1.57 2000/07/31 19:44:14 bwelling Exp $
+ * $Id: dst_api.c,v 1.58 2000/08/01 01:27:45 tale Exp $
*/
#include
@@ -76,7 +76,7 @@ static isc_result_t read_public_key(const char *filename,
static isc_result_t write_public_key(const dst_key_t *key,
const char *directory);
static isc_result_t buildfilename(dns_name_t *name,
- const unsigned int id,
+ const unsigned int id,
const unsigned int alg,
const unsigned int type,
const char *directory,
@@ -235,7 +235,7 @@ dst_context_verify(dst_context_t *dctx, isc_region_t *sig) {
isc_result_t
dst_key_computesecret(const dst_key_t *pub, const dst_key_t *priv,
- isc_buffer_t *secret)
+ isc_buffer_t *secret)
{
REQUIRE(dst_initialized == ISC_TRUE);
REQUIRE(VALID_KEY(pub) && VALID_KEY(priv));
@@ -259,7 +259,7 @@ dst_key_computesecret(const dst_key_t *pub, const dst_key_t *priv,
return (pub->func->computesecret(pub, priv, secret));
}
-isc_result_t
+isc_result_t
dst_key_tofile(const dst_key_t *key, const int type, const char *directory) {
isc_result_t ret = ISC_R_SUCCESS;
@@ -353,7 +353,7 @@ dst_key_fromnamedfile(const char *filename, const int type, isc_mem_t *mctx,
*keyp = pubkey;
return (ISC_R_SUCCESS);
}
-
+
key = get_key_struct(pubkey->key_name, pubkey->key_alg,
pubkey->key_flags, pubkey->key_proto, 0, mctx);
id = pubkey->key_id;
@@ -478,7 +478,7 @@ dst_key_frombuffer(dns_name_t *name, const unsigned int alg,
return (ISC_R_SUCCESS);
}
-isc_result_t
+isc_result_t
dst_key_tobuffer(const dst_key_t *key, isc_buffer_t *target) {
REQUIRE(dst_initialized == ISC_TRUE);
REQUIRE(VALID_KEY(key));
@@ -641,7 +641,7 @@ dst_key_isprivate(const dst_key_t *key) {
isc_boolean_t
dst_key_iszonekey(const dst_key_t *key) {
REQUIRE(VALID_KEY(key));
-
+
if ((key->key_flags & DNS_KEYTYPE_NOAUTH) != 0)
return (ISC_FALSE);
if ((key->key_flags & DNS_KEYFLAG_OWNERMASK) != DNS_KEYOWNER_ZONE)
@@ -655,7 +655,7 @@ dst_key_iszonekey(const dst_key_t *key) {
isc_boolean_t
dst_key_isnullkey(const dst_key_t *key) {
REQUIRE(VALID_KEY(key));
-
+
if ((key->key_flags & DNS_KEYFLAG_TYPEMASK) != DNS_KEYTYPE_NOKEY)
return (ISC_FALSE);
if ((key->key_flags & DNS_KEYFLAG_OWNERMASK) != DNS_KEYOWNER_ZONE)
@@ -748,15 +748,15 @@ dst_region_computeid(const isc_region_t *source) {
*** Static methods
***/
-/*
- * Allocates a key structure and fills in some of the fields.
+/*
+ * Allocates a key structure and fills in some of the fields.
*/
static dst_key_t *
get_key_struct(dns_name_t *name, const unsigned int alg,
const unsigned int flags, const unsigned int protocol,
const unsigned int bits, isc_mem_t *mctx)
{
- dst_key_t *key;
+ dst_key_t *key;
isc_result_t result;
REQUIRE(dst_algorithm_supported(alg) != ISC_FALSE);
@@ -859,26 +859,26 @@ read_public_key(const char *filename, isc_mem_t *mctx, dst_key_t **keyp) {
ISC_FALSE, NULL);
if (ret != ISC_R_SUCCESS)
goto cleanup;
-
+
/* Read the next word: either TTL, 'IN', or 'KEY' */
NEXTTOKEN(lex, opt, &token);
/* If it's a TTL, read the next one */
if (token.type == isc_tokentype_number)
NEXTTOKEN(lex, opt, &token);
-
+
if (token.type != isc_tokentype_string)
BADTOKEN();
if (strcasecmp(token.value.as_pointer, "IN") == 0)
NEXTTOKEN(lex, opt, &token);
-
+
if (token.type != isc_tokentype_string)
BADTOKEN();
if (strcasecmp(token.value.as_pointer, "KEY") != 0)
BADTOKEN();
-
+
isc_buffer_init(&b, rdatabuf, sizeof(rdatabuf));
ret = dns_rdata_fromtext(&rdata, dns_rdataclass_in, dns_rdatatype_key,
lex, NULL, ISC_FALSE, &b, NULL);
@@ -931,7 +931,7 @@ write_public_key(const dst_key_t *key, const char *directory) {
return (DST_R_INVALIDPUBLICKEY);
isc_buffer_usedregion(&textb, &r);
-
+
/*
* Make the filename.
*/
@@ -958,7 +958,7 @@ write_public_key(const dst_key_t *key, const char *directory) {
}
static isc_result_t
-buildfilename(dns_name_t *name, const unsigned int id,
+buildfilename(dns_name_t *name, const unsigned int id,
const unsigned int alg, const unsigned int type,
const char *directory, isc_buffer_t *out)
{
diff --git a/lib/dns/sec/dst/dst_internal.h b/lib/dns/sec/dst/dst_internal.h
index cd1091fa57..eb5a530b27 100644
--- a/lib/dns/sec/dst/dst_internal.h
+++ b/lib/dns/sec/dst/dst_internal.h
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dst_internal.h,v 1.26 2000/07/31 19:44:15 bwelling Exp $ */
+/* $Id: dst_internal.h,v 1.27 2000/08/01 01:27:46 tale Exp $ */
#ifndef DST_DST_INTERNAL_H
#define DST_DST_INTERNAL_H 1
diff --git a/lib/dns/sec/dst/dst_lib.c b/lib/dns/sec/dst/dst_lib.c
index 40d00bc4cd..0802a334ef 100644
--- a/lib/dns/sec/dst/dst_lib.c
+++ b/lib/dns/sec/dst/dst_lib.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -17,7 +17,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: dst_lib.c,v 1.5 2000/07/27 09:50:25 tale Exp $
+ * $Id: dst_lib.c,v 1.6 2000/08/01 01:27:48 tale Exp $
*/
#include
diff --git a/lib/dns/sec/dst/dst_parse.c b/lib/dns/sec/dst/dst_parse.c
index 2ad12bf1a0..68ed8cc65a 100644
--- a/lib/dns/sec/dst/dst_parse.c
+++ b/lib/dns/sec/dst/dst_parse.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: dst_parse.c,v 1.22 2000/06/20 04:13:40 tale Exp $
+ * $Id: dst_parse.c,v 1.23 2000/08/01 01:27:49 tale Exp $
*/
#include
@@ -243,7 +243,7 @@ dst__privstruct_parsefile(dst_key_t *key, const isc_uint16_t id,
if (token.type != isc_tokentype_string ||
strcmp(token.value.as_pointer, PRIVATE_KEY_STR) != 0)
goto fail;
-
+
NEXTTOKEN(lex, opt, &token);
if (token.type != isc_tokentype_string ||
((char *)token.value.as_pointer)[0] != 'v')
@@ -280,7 +280,7 @@ dst__privstruct_parsefile(dst_key_t *key, const isc_uint16_t id,
unsigned char *data;
isc_region_t r;
- iret = isc_lex_gettoken(lex, opt, &token);
+ iret = isc_lex_gettoken(lex, opt, &token);
if (iret == ISC_R_EOF)
break;
if (iret != ISC_R_SUCCESS)
@@ -397,7 +397,7 @@ dst__privstruct_writefile(const dst_key_t *key, const dst_private_t *priv,
fwrite(r.base, 1, r.length, fp);
fprintf(fp, "\n");
}
-
+
fclose(fp);
return (ISC_R_SUCCESS);
}
diff --git a/lib/dns/sec/dst/dst_parse.h b/lib/dns/sec/dst/dst_parse.h
index 41fb5bae4f..b92041b3d5 100644
--- a/lib/dns/sec/dst/dst_parse.h
+++ b/lib/dns/sec/dst/dst_parse.h
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dst_parse.h,v 1.14 2000/06/22 21:56:37 tale Exp $ */
+/* $Id: dst_parse.h,v 1.15 2000/08/01 01:27:50 tale Exp $ */
#ifndef DST_DST_PARSE_H
#define DST_DST_PARSE_H 1
diff --git a/lib/dns/sec/dst/dst_result.c b/lib/dns/sec/dst/dst_result.c
index a0f6d4be5d..432cb7855f 100644
--- a/lib/dns/sec/dst/dst_result.c
+++ b/lib/dns/sec/dst/dst_result.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -17,7 +17,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: dst_result.c,v 1.13 2000/07/27 09:50:26 tale Exp $
+ * $Id: dst_result.c,v 1.14 2000/08/01 01:27:51 tale Exp $
*/
#include
diff --git a/lib/dns/sec/dst/hmac_link.c b/lib/dns/sec/dst/hmac_link.c
index 84c650c4db..7a04ca4958 100644
--- a/lib/dns/sec/dst/hmac_link.c
+++ b/lib/dns/sec/dst/hmac_link.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: hmac_link.c,v 1.41 2000/07/31 19:44:18 bwelling Exp $
+ * $Id: hmac_link.c,v 1.42 2000/08/01 01:27:52 tale Exp $
*/
#include
@@ -112,7 +112,7 @@ hmacmd5_compare(const dst_key_t *key1, const dst_key_t *key2) {
hkey1 = (HMAC_Key *)key1->opaque;
hkey2 = (HMAC_Key *)key2->opaque;
- if (hkey1 == NULL && hkey2 == NULL)
+ if (hkey1 == NULL && hkey2 == NULL)
return (ISC_TRUE);
else if (hkey1 == NULL || hkey2 == NULL)
return (ISC_FALSE);
@@ -238,7 +238,7 @@ hmacmd5_tofile(const dst_key_t *key, const char *directory) {
return (dst__privstruct_writefile(key, &priv, directory));
}
-static isc_result_t
+static isc_result_t
hmacmd5_fromfile(dst_key_t *key, const isc_uint16_t id, const char *filename) {
dst_private_t priv;
isc_result_t ret;
diff --git a/lib/dns/sec/dst/include/Makefile.in b/lib/dns/sec/dst/include/Makefile.in
index efb74e6e37..9d57e20621 100644
--- a/lib/dns/sec/dst/include/Makefile.in
+++ b/lib/dns/sec/dst/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.6 2000/07/27 09:50:28 tale Exp $
+# $Id: Makefile.in,v 1.7 2000/08/01 01:27:56 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/dst/include/dst/Makefile.in b/lib/dns/sec/dst/include/dst/Makefile.in
index cd34c1b062..051a08389f 100644
--- a/lib/dns/sec/dst/include/dst/Makefile.in
+++ b/lib/dns/sec/dst/include/dst/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.7 2000/07/27 09:50:29 tale Exp $
+# $Id: Makefile.in,v 1.8 2000/08/01 01:27:57 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/dst/include/dst/dst.h b/lib/dns/sec/dst/include/dst/dst.h
index 3acac4c7e6..eab9ce6411 100644
--- a/lib/dns/sec/dst/include/dst/dst.h
+++ b/lib/dns/sec/dst/include/dst/dst.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dst.h,v 1.33 2000/07/31 19:44:21 bwelling Exp $ */
+/* $Id: dst.h,v 1.34 2000/08/01 01:27:58 tale Exp $ */
#ifndef DST_DST_H
#define DST_DST_H 1
diff --git a/lib/dns/sec/dst/include/dst/lib.h b/lib/dns/sec/dst/include/dst/lib.h
index 20341dfdec..7f7294e392 100644
--- a/lib/dns/sec/dst/include/dst/lib.h
+++ b/lib/dns/sec/dst/include/dst/lib.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lib.h,v 1.4 2000/07/27 09:50:31 tale Exp $ */
+/* $Id: lib.h,v 1.5 2000/08/01 01:27:59 tale Exp $ */
#ifndef DST_LIB_H
#define DST_LIB_H 1
diff --git a/lib/dns/sec/dst/include/dst/result.h b/lib/dns/sec/dst/include/dst/result.h
index e4f3057d17..5e376f6b2b 100644
--- a/lib/dns/sec/dst/include/dst/result.h
+++ b/lib/dns/sec/dst/include/dst/result.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.h,v 1.16 2000/07/27 09:50:32 tale Exp $ */
+/* $Id: result.h,v 1.17 2000/08/01 01:28:00 tale Exp $ */
#ifndef DST_RESULT_H
#define DST_RESULT_H 1
diff --git a/lib/dns/sec/dst/openssl_link.c b/lib/dns/sec/dst/openssl_link.c
index 13bfe16eb5..4017b33348 100644
--- a/lib/dns/sec/dst/openssl_link.c
+++ b/lib/dns/sec/dst/openssl_link.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: openssl_link.c,v 1.32 2000/07/31 19:44:19 bwelling Exp $
+ * $Id: openssl_link.c,v 1.33 2000/08/01 01:27:53 tale Exp $
*/
#if defined(OPENSSL)
@@ -73,7 +73,7 @@ openssldsa_adddata(dst_context_t *dctx, const isc_region_t *data) {
isc_sha1_update(sha1ctx, data->base, data->length);
return (ISC_R_SUCCESS);
}
-
+
static int
BN_bn2bin_fixed(BIGNUM *bn, unsigned char *buf, int size) {
int bytes = size - BN_num_bytes(bn);
@@ -81,7 +81,7 @@ BN_bn2bin_fixed(BIGNUM *bn, unsigned char *buf, int size) {
*buf++ = 0;
BN_bn2bin(bn, buf);
return (size);
-}
+}
static isc_result_t
openssldsa_sign(dst_context_t *dctx, isc_buffer_t *sig) {
@@ -151,7 +151,7 @@ openssldsa_compare(const dst_key_t *key1, const dst_key_t *key2) {
dsa1 = (DSA *) key1->opaque;
dsa2 = (DSA *) key2->opaque;
- if (dsa1 == NULL && dsa2 == NULL)
+ if (dsa1 == NULL && dsa2 == NULL)
return (ISC_TRUE);
else if (dsa1 == NULL || dsa2 == NULL)
return (ISC_FALSE);
@@ -364,7 +364,7 @@ openssldsa_tofile(const dst_key_t *key, const char *directory) {
return (dst__privstruct_writefile(key, &priv, directory));
}
-static isc_result_t
+static isc_result_t
openssldsa_fromfile(dst_key_t *key, const isc_uint16_t id, const char *filename)
{
dst_private_t priv;
diff --git a/lib/dns/sec/dst/openssldh_link.c b/lib/dns/sec/dst/openssldh_link.c
index b71ec55f28..3e5db76f27 100644
--- a/lib/dns/sec/dst/openssldh_link.c
+++ b/lib/dns/sec/dst/openssldh_link.c
@@ -1,11 +1,11 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
* Portions Copyright (C) 1995-2000 by Network Associates, Inc.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
* NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
* SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
- * $Id: openssldh_link.c,v 1.26 2000/07/31 19:44:20 bwelling Exp $
+ * $Id: openssldh_link.c,v 1.27 2000/08/01 01:27:54 tale Exp $
*/
#if defined(OPENSSL)
@@ -85,7 +85,7 @@ openssldh_compare(const dst_key_t *key1, const dst_key_t *key2) {
dh1 = (DH *) key1->opaque;
dh2 = (DH *) key2->opaque;
- if (dh1 == NULL && dh2 == NULL)
+ if (dh1 == NULL && dh2 == NULL)
return (ISC_TRUE);
else if (dh1 == NULL || dh2 == NULL)
return (ISC_FALSE);
@@ -114,7 +114,7 @@ openssldh_paramcompare(const dst_key_t *key1, const dst_key_t *key2) {
dh1 = (DH *) key1->opaque;
dh2 = (DH *) key2->opaque;
- if (dh1 == NULL && dh2 == NULL)
+ if (dh1 == NULL && dh2 == NULL)
return (ISC_TRUE);
else if (dh1 == NULL || dh2 == NULL)
return (ISC_FALSE);
@@ -419,7 +419,7 @@ openssldh_tofile(const dst_key_t *key, const char *directory) {
return (dst__privstruct_writefile(key, &priv, directory));
}
-static isc_result_t
+static isc_result_t
openssldh_fromfile(dst_key_t *key, const isc_uint16_t id, const char *filename)
{
dst_private_t priv;
diff --git a/lib/dns/sec/openssl/Makefile.in b/lib/dns/sec/openssl/Makefile.in
index f0176fcfdd..94187be597 100644
--- a/lib/dns/sec/openssl/Makefile.in
+++ b/lib/dns/sec/openssl/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.15 2000/07/27 09:50:34 tale Exp $
+# $Id: Makefile.in,v 1.16 2000/08/01 01:28:02 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/openssl/bn_add.c b/lib/dns/sec/openssl/bn_add.c
index 21f1c7ed48..fd967e73da 100644
--- a/lib/dns/sec/openssl/bn_add.c
+++ b/lib/dns/sec/openssl/bn_add.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_asm.c b/lib/dns/sec/openssl/bn_asm.c
index 7fbb68a53c..01aaea5d27 100644
--- a/lib/dns/sec/openssl/bn_asm.c
+++ b/lib/dns/sec/openssl/bn_asm.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -92,9 +92,9 @@ BN_ULONG bn_mul_add_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
mul_add(rp[1],ap[1],w,c1); if (--num==0) return c1;
mul_add(rp[2],ap[2],w,c1); return c1;
}
-
+
return(c1);
- }
+ }
BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
{
@@ -118,7 +118,7 @@ BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
mul(rp[2],ap[2],w,c1);
}
return(c1);
- }
+ }
void bn_sqr_words(BN_ULONG *r, BN_ULONG *a, int n)
{
@@ -167,7 +167,7 @@ BN_ULONG bn_mul_add_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
rp+=4;
}
return(c);
- }
+ }
BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
{
@@ -194,7 +194,7 @@ BN_ULONG bn_mul_words(BN_ULONG *rp, BN_ULONG *ap, int num, BN_ULONG w)
rp+=4;
}
return(carry);
- }
+ }
void bn_sqr_words(BN_ULONG *r, BN_ULONG *a, int n)
{
diff --git a/lib/dns/sec/openssl/bn_ctx.c b/lib/dns/sec/openssl/bn_ctx.c
index 26b8d9a206..165152aa37 100644
--- a/lib/dns/sec/openssl/bn_ctx.c
+++ b/lib/dns/sec/openssl/bn_ctx.c
@@ -8,7 +8,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/bn_div.c b/lib/dns/sec/openssl/bn_div.c
index f81adaae5d..adf113dba3 100644
--- a/lib/dns/sec/openssl/bn_div.c
+++ b/lib/dns/sec/openssl/bn_div.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_err.c b/lib/dns/sec/openssl/bn_err.c
index 47117b1609..4b4da5e661 100644
--- a/lib/dns/sec/openssl/bn_err.c
+++ b/lib/dns/sec/openssl/bn_err.c
@@ -7,7 +7,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/bn_exp.c b/lib/dns/sec/openssl/bn_exp.c
index 22f10b41c1..a5365df6c2 100644
--- a/lib/dns/sec/openssl/bn_exp.c
+++ b/lib/dns/sec/openssl/bn_exp.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -192,7 +192,7 @@ void atalla_initialize_accelerator_handle(void)
{
void *dl_handle;
int status;
- unsigned int config_buf[1024];
+ unsigned int config_buf[1024];
static int tested;
if(tested)
@@ -237,7 +237,7 @@ void atalla_initialize_accelerator_handle(void)
printf("atasi.so library is present but not initialized\n");
printf("No HW acceleration available\n");
return;
- }
+ }
}
else
{
@@ -245,7 +245,7 @@ void atalla_initialize_accelerator_handle(void)
return ;
}
- /*
+ /*
* It looks like we have acceleration capabilities. Load up the
* pointers to our ASI API calls.
*/
@@ -469,7 +469,7 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
if (!BN_mod_mul_reciprocal(r,r,r,&recp,ctx))
goto err;
}
-
+
/* wvalue will be an odd number < 2^window */
if (!BN_mod_mul_reciprocal(r,r,&(val[wvalue>>1]),&recp,ctx))
goto err;
@@ -618,7 +618,7 @@ int BN_mod_exp_mont(BIGNUM *rr, BIGNUM *a, const BIGNUM *p,
if (!BN_mod_mul_montgomery(r,r,r,mont,ctx))
goto err;
}
-
+
/* wvalue will be an odd number < 2^window */
if (!BN_mod_mul_montgomery(r,r,&(val[wvalue>>1]),mont,ctx))
goto err;
@@ -731,7 +731,7 @@ int BN_mod_exp_simple(BIGNUM *r, BIGNUM *a, BIGNUM *p, BIGNUM *m,
if (!BN_mod_mul(r,r,r,m,ctx))
goto err;
}
-
+
/* wvalue will be an odd number < 2^window */
if (!BN_mod_mul(r,r,&(val[wvalue>>1]),m,ctx))
goto err;
diff --git a/lib/dns/sec/openssl/bn_exp2.c b/lib/dns/sec/openssl/bn_exp2.c
index bd296de38f..c28e10dbd6 100644
--- a/lib/dns/sec/openssl/bn_exp2.c
+++ b/lib/dns/sec/openssl/bn_exp2.c
@@ -8,7 +8,7 @@
/* I've done some timing with different table sizes.
* The main hassle is that even with bits set at 3, this requires
* 63 BIGNUMs to store the pre-calculated values.
- * 512 1024
+ * 512 1024
* bits=1 75.4% 79.4%
* bits=2 61.2% 62.4%
* bits=3 61.3% 59.3%
@@ -173,7 +173,7 @@ int BN_mod_exp2_mont(BIGNUM *rr, BIGNUM *a1, BIGNUM *p1, BIGNUM *a2,
if (!BN_mod_mul_montgomery(r,r,r,mont,ctx))
goto err;
}
-
+
/* wvalue will be an odd number < 2^window */
if (xvalue || yvalue)
{
diff --git a/lib/dns/sec/openssl/bn_gcd.c b/lib/dns/sec/openssl/bn_gcd.c
index dbc80ae972..72a77541a9 100644
--- a/lib/dns/sec/openssl/bn_gcd.c
+++ b/lib/dns/sec/openssl/bn_gcd.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_lcl.h b/lib/dns/sec/openssl/bn_lcl.h
index 63f3042213..e883403ac6 100644
--- a/lib/dns/sec/openssl/bn_lcl.h
+++ b/lib/dns/sec/openssl/bn_lcl.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_lib.c b/lib/dns/sec/openssl/bn_lib.c
index a0c0b224ce..d2d4caa62f 100644
--- a/lib/dns/sec/openssl/bn_lib.c
+++ b/lib/dns/sec/openssl/bn_lib.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -231,7 +231,7 @@ int BN_num_bits_word(BN_ULONG l)
#if defined(SIXTEEN_BIT) || defined(THIRTY_TWO_BIT) || defined(SIXTY_FOUR_BIT) || defined(SIXTY_FOUR_BIT_LONG)
if (l & 0xff00L)
return(bits[(int)(l>>8)]+8);
- else
+ else
#endif
return(bits[(int)(l )] );
}
@@ -322,7 +322,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
if (words > b->max)
{
- bn_check_top(b);
+ bn_check_top(b);
if (BN_get_flags(b,BN_FLG_STATIC_DATA))
{
BNerr(BN_F_BN_EXPAND2,BN_R_EXPAND_ON_STATIC_BIGNUM_DATA);
@@ -340,7 +340,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
if (B != NULL)
{
#if 0
- /* This lot is an unrolled loop to copy b->top
+ /* This lot is an unrolled loop to copy b->top
* BN_ULONGs from B to A
*/
/*
@@ -396,7 +396,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
* a=top&7
* a--;
* goto jump_table[a];
- * If top is 0, this makes us jump to 0xffffffc
+ * If top is 0, this makes us jump to 0xffffffc
* which is rather bad :-(.
* eric 23-Apr-1998
*/
@@ -448,7 +448,7 @@ BIGNUM *bn_expand2(BIGNUM *b, int words)
b->d=a;
b->max=words;
#endif
-
+
/* memset(&(p[b->max]),0,((words+1)-b->max)*sizeof(BN_ULONG)); */
/* { int i; for (i=b->max; iri is the size of mont->N in bits (rounded up
to the word size) */
al=ri=mont->ri/BN_BITS2;
-
+
nl=n->top;
if ((al == 0) || (nl == 0)) { r->top=0; return(1); }
@@ -149,7 +149,7 @@ int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,
for (i=r->top; id[i]=0;
#else
- memset(&(r->d[r->top]),0,(max-r->top)*sizeof(BN_ULONG));
+ memset(&(r->d[r->top]),0,(max-r->top)*sizeof(BN_ULONG));
#endif
r->top=max;
@@ -173,7 +173,7 @@ int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,
}
}
bn_fix_top(r);
-
+
/* mont->ri will be a multiple of the word size */
#if 0
BN_rshift(ret,r,mont->ri);
@@ -190,7 +190,7 @@ int BN_from_montgomery(BIGNUM *ret, BIGNUM *a, BN_MONT_CTX *mont,
for (i=0; iri);
diff --git a/lib/dns/sec/openssl/bn_mul.c b/lib/dns/sec/openssl/bn_mul.c
index 86bebbee8f..6c45bf5935 100644
--- a/lib/dns/sec/openssl/bn_mul.c
+++ b/lib/dns/sec/openssl/bn_mul.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -98,7 +98,7 @@ void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2,
if (n2 == 8)
{
bn_mul_comba8(r,a,b);
- return;
+ return;
}
# endif /* BN_MUL_COMBA */
if (n2 < BN_MUL_RECURSIVE_SIZE_NORMAL)
@@ -151,7 +151,7 @@ void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2,
bn_mul_comba4(&(t[n2]),t,&(t[n]));
else
memset(&(t[n2]),0,8*sizeof(BN_ULONG));
-
+
bn_mul_comba4(r,a,b);
bn_mul_comba4(&(r[n2]),&(a[n]),&(b[n]));
}
@@ -161,7 +161,7 @@ void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2,
bn_mul_comba8(&(t[n2]),t,&(t[n]));
else
memset(&(t[n2]),0,16*sizeof(BN_ULONG));
-
+
bn_mul_comba8(r,a,b);
bn_mul_comba8(&(r[n2]),&(a[n]),&(b[n]));
}
@@ -474,7 +474,7 @@ void bn_mul_high(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, BN_ULONG *l, int n2,
bn_sub_words(&(r[n]),&(b[n]),&(b[0]),n);
break;
}
-
+
oneg=neg;
/* t[10] = (a[0]-a[1])*(b[1]-b[0]) */
/* r[10] = (a[1]*b[1]) */
@@ -563,7 +563,7 @@ void bn_mul_high(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, BN_ULONG *l, int n2,
c2-=(int)(bn_sub_words(&(r[0]),&(r[0]),&(t[n]),n));
else
c2+=(int)(bn_add_words(&(r[0]),&(r[0]),&(t[n]),n));
-
+
if (c1 != 0) /* Add starting at r[0], could be +ve or -ve */
{
i=0;
diff --git a/lib/dns/sec/openssl/bn_prime.c b/lib/dns/sec/openssl/bn_prime.c
index bbb1439d03..89e8e35457 100644
--- a/lib/dns/sec/openssl/bn_prime.c
+++ b/lib/dns/sec/openssl/bn_prime.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -63,7 +63,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
@@ -151,7 +151,7 @@ BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe, BIGNUM *add,
else
rnd=ret;
BN_init(&t);
-loop:
+loop:
/* make a random number and set the top and bottom bits */
if (add == NULL)
{
@@ -237,7 +237,7 @@ int BN_is_prime_fasttest(const BIGNUM *a, int checks,
if (do_trial_division)
{
for (i = 1; i < NUMPRIMES; i++)
- if (BN_mod_word(a, primes[i]) == 0)
+ if (BN_mod_word(a, primes[i]) == 0)
return 0;
if (callback != NULL) callback(1, -1, cb_arg);
}
@@ -289,7 +289,7 @@ int BN_is_prime_fasttest(const BIGNUM *a, int checks,
goto err;
if (!BN_MONT_CTX_set(mont, A, ctx))
goto err;
-
+
for (i = 0; i < checks; i++)
{
if (!BN_pseudo_rand(check, BN_num_bits(A1), 0, 0))
@@ -430,7 +430,7 @@ static int probable_prime_dh_safe(BIGNUM *p, int bits, BIGNUM *padd,
if (qadd == NULL) goto err;
if (!BN_rshift1(qadd,padd)) goto err;
-
+
if (!BN_rand(q,bits,0,1)) goto err;
/* we need ((rnd-rem) % add) == 0 */
diff --git a/lib/dns/sec/openssl/bn_prime.h b/lib/dns/sec/openssl/bn_prime.h
index d63e3daca0..d0033e5a40 100644
--- a/lib/dns/sec/openssl/bn_prime.h
+++ b/lib/dns/sec/openssl/bn_prime.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_print.c b/lib/dns/sec/openssl/bn_print.c
index 0527f88672..e343deea9a 100644
--- a/lib/dns/sec/openssl/bn_print.c
+++ b/lib/dns/sec/openssl/bn_print.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_rand.c b/lib/dns/sec/openssl/bn_rand.c
index 08f6b68ff0..6ee0916421 100644
--- a/lib/dns/sec/openssl/bn_rand.c
+++ b/lib/dns/sec/openssl/bn_rand.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_recp.c b/lib/dns/sec/openssl/bn_recp.c
index 6f8202f979..1706be08e5 100644
--- a/lib/dns/sec/openssl/bn_recp.c
+++ b/lib/dns/sec/openssl/bn_recp.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -199,7 +199,7 @@ int BN_div_recp(BIGNUM *dv, BIGNUM *rem, BIGNUM *m, BN_RECP_CTX *recp,
err:
BN_CTX_end(ctx);
return(ret);
- }
+ }
/* len is the expected size of the result
* We actually calculate with an extra word of precision, so
diff --git a/lib/dns/sec/openssl/bn_shift.c b/lib/dns/sec/openssl/bn_shift.c
index 3ea3f1c395..f15f2bd8c6 100644
--- a/lib/dns/sec/openssl/bn_shift.c
+++ b/lib/dns/sec/openssl/bn_shift.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/bn_sqr.c b/lib/dns/sec/openssl/bn_sqr.c
index daaa548f6f..546f13c7be 100644
--- a/lib/dns/sec/openssl/bn_sqr.c
+++ b/lib/dns/sec/openssl/bn_sqr.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -110,7 +110,7 @@ printf("BN_sqr %d * %d\n",a->top,a->top);
bn_sqr_comba8(rr->d,a->d);
#endif
}
- else
+ else
{
#if defined(BN_RECURSION)
if (al < BN_SQR_RECURSIVE_SIZE_NORMAL)
diff --git a/lib/dns/sec/openssl/bn_word.c b/lib/dns/sec/openssl/bn_word.c
index 51d718e1fa..1ba1aca4b9 100644
--- a/lib/dns/sec/openssl/bn_word.c
+++ b/lib/dns/sec/openssl/bn_word.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -97,7 +97,7 @@ BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w)
for (i=a->top-1; i>=0; i--)
{
BN_ULONG l,d;
-
+
l=a->d[i];
d=bn_div_words(ret,l,w);
ret=(l-((d*w)&BN_MASK2))&BN_MASK2;
diff --git a/lib/dns/sec/openssl/buffer.c b/lib/dns/sec/openssl/buffer.c
index acbf48b7f2..2fe9f76179 100644
--- a/lib/dns/sec/openssl/buffer.c
+++ b/lib/dns/sec/openssl/buffer.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -136,7 +136,7 @@ char *BUF_strdup(const char *str)
n=strlen(str);
ret=Malloc(n+1);
- if (ret == NULL)
+ if (ret == NULL)
{
BUFerr(BUF_F_BUF_STRDUP,ERR_R_MALLOC_FAILURE);
return(NULL);
diff --git a/lib/dns/sec/openssl/cryptlib.c b/lib/dns/sec/openssl/cryptlib.c
index c450c7e131..7b93025cf2 100644
--- a/lib/dns/sec/openssl/cryptlib.c
+++ b/lib/dns/sec/openssl/cryptlib.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/cryptlib.h b/lib/dns/sec/openssl/cryptlib.h
index de6c17b9bf..33be64edc6 100644
--- a/lib/dns/sec/openssl/cryptlib.h
+++ b/lib/dns/sec/openssl/cryptlib.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -69,8 +69,8 @@ extern "C" {
#include "openssl/e_os.h"
#include
-#include
-#include
+#include
+#include
#include
#include
diff --git a/lib/dns/sec/openssl/dh_err.c b/lib/dns/sec/openssl/dh_err.c
index b13e356200..6eca42b868 100644
--- a/lib/dns/sec/openssl/dh_err.c
+++ b/lib/dns/sec/openssl/dh_err.c
@@ -7,7 +7,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/dh_gen.c b/lib/dns/sec/openssl/dh_gen.c
index 7aff041fb9..bf2dec1f1e 100644
--- a/lib/dns/sec/openssl/dh_gen.c
+++ b/lib/dns/sec/openssl/dh_gen.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -102,7 +102,7 @@ DH *DH_generate_parameters(int prime_len, int generator,
t1 = BN_CTX_get(ctx);
t2 = BN_CTX_get(ctx);
if (t1 == NULL || t2 == NULL) goto err;
-
+
if (generator == DH_GENERATOR_2)
{
BN_set_word(t1,24);
@@ -127,7 +127,7 @@ DH *DH_generate_parameters(int prime_len, int generator,
}
else
g=generator;
-
+
p=BN_generate_prime(NULL,prime_len,1,t1,t2,callback,cb_arg);
if (p == NULL) goto err;
if (callback != NULL) callback(3,0,cb_arg);
diff --git a/lib/dns/sec/openssl/dh_key.c b/lib/dns/sec/openssl/dh_key.c
index cf22050110..cf93c0af13 100644
--- a/lib/dns/sec/openssl/dh_key.c
+++ b/lib/dns/sec/openssl/dh_key.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -142,7 +142,7 @@ static int generate_key(DH *dh)
if (!dh->meth->bn_mod_exp(dh, pub_key,dh->g,priv_key,dh->p,&ctx,mont))
goto err;
-
+
dh->pub_key=pub_key;
dh->priv_key=priv_key;
ok=1;
@@ -166,7 +166,7 @@ static int compute_key(unsigned char *key, BIGNUM *pub_key, DH *dh)
BN_CTX_init(&ctx);
BN_CTX_start(&ctx);
tmp = BN_CTX_get(&ctx);
-
+
if (dh->priv_key == NULL)
{
DHerr(DH_F_DH_COMPUTE_KEY,DH_R_NO_PRIVATE_VALUE);
diff --git a/lib/dns/sec/openssl/dh_lib.c b/lib/dns/sec/openssl/dh_lib.c
index cc6fe21008..4a7bd22f9c 100644
--- a/lib/dns/sec/openssl/dh_lib.c
+++ b/lib/dns/sec/openssl/dh_lib.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/dsa_err.c b/lib/dns/sec/openssl/dsa_err.c
index 06e233caa1..789eb9a21a 100644
--- a/lib/dns/sec/openssl/dsa_err.c
+++ b/lib/dns/sec/openssl/dsa_err.c
@@ -7,7 +7,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/dsa_gen.c b/lib/dns/sec/openssl/dsa_gen.c
index 4de242f88b..bd92355726 100644
--- a/lib/dns/sec/openssl/dsa_gen.c
+++ b/lib/dns/sec/openssl/dsa_gen.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -67,7 +67,7 @@
* also Appendix 2.2 of FIPS PUB 186-1 (i.e. use SHA as defined in
* FIPS PUB 180-1) */
#define HASH SHA1
-#endif
+#endif
#ifndef NO_SHA
@@ -106,7 +106,7 @@ DSA *DSA_generate_parameters(int bits, unsigned char *seed_in, int seed_len,
if (seed_len < 20)
seed_in = NULL; /* seed buffer too small -- ignore */
- if (seed_len > 20)
+ if (seed_len > 20)
seed_len = 20; /* App. 2.2 of FIPS PUB 186 allows larger SEED,
* but our internal buffers are restricted to 160 bits*/
if ((seed_in != NULL) && (seed_len == 20))
diff --git a/lib/dns/sec/openssl/dsa_key.c b/lib/dns/sec/openssl/dsa_key.c
index 1a247fb1eb..ebc351cd5b 100644
--- a/lib/dns/sec/openssl/dsa_key.c
+++ b/lib/dns/sec/openssl/dsa_key.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/dsa_lib.c b/lib/dns/sec/openssl/dsa_lib.c
index dea1f7bffb..0b083afdbe 100644
--- a/lib/dns/sec/openssl/dsa_lib.c
+++ b/lib/dns/sec/openssl/dsa_lib.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -136,7 +136,7 @@ DSA *DSA_new_method(DSA_METHOD *meth)
}
else
CRYPTO_new_ex_data(dsa_meth,ret,&ret->ex_data);
-
+
return(ret);
}
@@ -186,7 +186,7 @@ int DSA_size(DSA *r)
bs.data=buf;
bs.type=V_ASN1_INTEGER;
/* If the top bit is set the asn1 encoding is 1 larger. */
- buf[0]=0xff;
+ buf[0]=0xff;
i=i2d_ASN1_INTEGER(&bs,NULL);
i+=i; /* r and s */
@@ -220,7 +220,7 @@ DH *DSA_dup_DH(DSA *r)
{
/* DSA has p, q, g, optional pub_key, optional priv_key.
* DH has p, optional length, g, optional pub_key, optional priv_key.
- */
+ */
DH *ret = NULL;
@@ -229,7 +229,7 @@ DH *DSA_dup_DH(DSA *r)
ret = DH_new();
if (ret == NULL)
goto err;
- if (r->p != NULL)
+ if (r->p != NULL)
if ((ret->p = BN_dup(r->p)) == NULL)
goto err;
if (r->q != NULL)
diff --git a/lib/dns/sec/openssl/dsa_ossl.c b/lib/dns/sec/openssl/dsa_ossl.c
index 25dc0d3526..7d98f816e7 100644
--- a/lib/dns/sec/openssl/dsa_ossl.c
+++ b/lib/dns/sec/openssl/dsa_ossl.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -148,7 +148,7 @@ static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
if (ret == NULL) goto err;
ret->r = r;
ret->s = s;
-
+
err:
if (!ret)
{
@@ -316,7 +316,7 @@ static int dsa_mod_exp(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
dsa = dsa; /* BEW - quiet the compiler */
return BN_mod_exp2_mont(rr, a1, p1, a2, p2, m, ctx, in_mont);
}
-
+
static int dsa_bn_mod_exp(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx,
BN_MONT_CTX *m_ctx)
diff --git a/lib/dns/sec/openssl/dsa_sign.c b/lib/dns/sec/openssl/dsa_sign.c
index bef95bb370..23f40025c4 100644
--- a/lib/dns/sec/openssl/dsa_sign.c
+++ b/lib/dns/sec/openssl/dsa_sign.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/dsa_vrf.c b/lib/dns/sec/openssl/dsa_vrf.c
index 2cbaaf7ac1..a3e71669e9 100644
--- a/lib/dns/sec/openssl/dsa_vrf.c
+++ b/lib/dns/sec/openssl/dsa_vrf.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/err.c b/lib/dns/sec/openssl/err.c
index da67f60c7c..a91b386845 100644
--- a/lib/dns/sec/openssl/err.c
+++ b/lib/dns/sec/openssl/err.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -113,7 +113,7 @@ static ERR_STRING_DATA ERR_str_functs[]=
{ERR_PACK(0,SYS_F_FOPEN,0), "fopen"},
{ERR_PACK(0,SYS_F_CONNECT,0), "connect"},
{ERR_PACK(0,SYS_F_GETSERVBYNAME,0), "getservbyname"},
- {ERR_PACK(0,SYS_F_SOCKET,0), "socket"},
+ {ERR_PACK(0,SYS_F_SOCKET,0), "socket"},
{ERR_PACK(0,SYS_F_IOCTLSOCKET,0), "ioctlsocket"},
{ERR_PACK(0,SYS_F_BIND,0), "bind"},
{ERR_PACK(0,SYS_F_LISTEN,0), "listen"},
@@ -378,7 +378,7 @@ unsigned long ERR_peek_error_line_data(const char **file, int *line,
static unsigned long get_error_values(int inc, const char **file, int *line,
const char **data, int *flags)
- {
+ {
int i=0;
ERR_STATE *es;
unsigned long ret;
diff --git a/lib/dns/sec/openssl/ex_data.c b/lib/dns/sec/openssl/ex_data.c
index 0d782d6c9d..f62e3d6dd3 100644
--- a/lib/dns/sec/openssl/ex_data.c
+++ b/lib/dns/sec/openssl/ex_data.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/Makefile.in b/lib/dns/sec/openssl/include/Makefile.in
index 022602a517..80579712fd 100644
--- a/lib/dns/sec/openssl/include/Makefile.in
+++ b/lib/dns/sec/openssl/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.6 2000/07/27 09:50:35 tale Exp $
+# $Id: Makefile.in,v 1.7 2000/08/01 01:28:55 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/openssl/include/openssl/Makefile.in b/lib/dns/sec/openssl/include/openssl/Makefile.in
index e34a2cf5e3..85b85da3d9 100644
--- a/lib/dns/sec/openssl/include/openssl/Makefile.in
+++ b/lib/dns/sec/openssl/include/openssl/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.8 2000/07/27 09:50:36 tale Exp $
+# $Id: Makefile.in,v 1.9 2000/08/01 01:28:56 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/dns/sec/openssl/include/openssl/bio.h b/lib/dns/sec/openssl/include/openssl/bio.h
index 23d702530f..f087a51d3d 100644
--- a/lib/dns/sec/openssl/include/openssl/bio.h
+++ b/lib/dns/sec/openssl/include/openssl/bio.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -170,7 +170,7 @@ extern "C" {
/* The next two are used in conjunction with the
* BIO_should_io_special() condition. After this returns true,
- * BIO *BIO_get_retry_BIO(BIO *bio, int *reason); will walk the BIO
+ * BIO *BIO_get_retry_BIO(BIO *bio, int *reason); will walk the BIO
* stack and return the 'reason' for the special and the offending BIO.
* Given a BIO, BIO_get_retry_reason(bio) will return the code. */
/* Returned from the SSL bio when the certificate retrieval code had an error */
diff --git a/lib/dns/sec/openssl/include/openssl/bn.h b/lib/dns/sec/openssl/include/openssl/bn.h
index d875fe5f92..befd6ebf23 100644
--- a/lib/dns/sec/openssl/include/openssl/bn.h
+++ b/lib/dns/sec/openssl/include/openssl/bn.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/buffer.h b/lib/dns/sec/openssl/include/openssl/buffer.h
index 247c8ee62e..2fae870fc8 100644
--- a/lib/dns/sec/openssl/include/openssl/buffer.h
+++ b/lib/dns/sec/openssl/include/openssl/buffer.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/crypto.h b/lib/dns/sec/openssl/include/openssl/crypto.h
index 2a69c5ab4b..53cfa6741f 100644
--- a/lib/dns/sec/openssl/include/openssl/crypto.h
+++ b/lib/dns/sec/openssl/include/openssl/crypto.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -184,7 +184,7 @@ typedef int CRYPTO_EX_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
typedef void CRYPTO_EX_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad,
int idx, long argl, void *argp);
/* Called when we need to dup an object */
-typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
+typedef int CRYPTO_EX_dup(CRYPTO_EX_DATA *to, CRYPTO_EX_DATA *from, void *from_d,
int idx, long argl, void *argp);
/* This stuff is basically class callback functions
diff --git a/lib/dns/sec/openssl/include/openssl/dh.h b/lib/dns/sec/openssl/include/openssl/dh.h
index c164c14989..7982a13e5c 100644
--- a/lib/dns/sec/openssl/include/openssl/dh.h
+++ b/lib/dns/sec/openssl/include/openssl/dh.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -69,7 +69,7 @@ extern "C" {
#include
#include
-
+
#define DH_FLAG_CACHE_MONT_P 0x01
typedef struct dh_st DH;
diff --git a/lib/dns/sec/openssl/include/openssl/dsa.h b/lib/dns/sec/openssl/include/openssl/dsa.h
index 243775f4f8..6b8a78ce1f 100644
--- a/lib/dns/sec/openssl/include/openssl/dsa.h
+++ b/lib/dns/sec/openssl/include/openssl/dsa.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/e_os.h b/lib/dns/sec/openssl/include/openssl/e_os.h
index 1a3e49d149..9a15144f4a 100644
--- a/lib/dns/sec/openssl/include/openssl/e_os.h
+++ b/lib/dns/sec/openssl/include/openssl/e_os.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -199,7 +199,7 @@ extern "C" {
# endif
# ifdef VMS
- /* some programs don't include stdlib, so exit() and others give implicit
+ /* some programs don't include stdlib, so exit() and others give implicit
function warnings */
# include
# if defined(__DECC)
@@ -359,7 +359,7 @@ extern HINSTANCE _hInstance;
#define MD2_DIGEST_LENGTH 16
#endif
#ifdef NO_MD5
-#define MD5_Init MD5Init
+#define MD5_Init MD5Init
#define MD5_Update MD5Update
#define MD5_Final MD5Final
#define MD5_DIGEST_LENGTH 16
diff --git a/lib/dns/sec/openssl/include/openssl/err.h b/lib/dns/sec/openssl/include/openssl/err.h
index 8c5e1ce314..3dff1b0589 100644
--- a/lib/dns/sec/openssl/include/openssl/err.h
+++ b/lib/dns/sec/openssl/include/openssl/err.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -185,7 +185,7 @@ typedef struct err_state_st
#define SYS_F_WSASTARTUP 9 /* Winsock stuff */
#define SYS_F_OPENDIR 10
-#define ERR_R_FATAL 32
+#define ERR_R_FATAL 32
/* reasons */
#define ERR_R_SYS_LIB ERR_LIB_SYS
#define ERR_R_BN_LIB ERR_LIB_BN
diff --git a/lib/dns/sec/openssl/include/openssl/lhash.h b/lib/dns/sec/openssl/include/openssl/lhash.h
index 8c52bb9376..117bc207c3 100644
--- a/lib/dns/sec/openssl/include/openssl/lhash.h
+++ b/lib/dns/sec/openssl/include/openssl/lhash.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/rand.h b/lib/dns/sec/openssl/include/openssl/rand.h
index 20ff757c9d..93bff6261f 100644
--- a/lib/dns/sec/openssl/include/openssl/rand.h
+++ b/lib/dns/sec/openssl/include/openssl/rand.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/safestack.h b/lib/dns/sec/openssl/include/openssl/safestack.h
index 4e6aa15c75..ea4f0c5c11 100644
--- a/lib/dns/sec/openssl/include/openssl/safestack.h
+++ b/lib/dns/sec/openssl/include/openssl/safestack.h
@@ -6,7 +6,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/include/openssl/sha.h b/lib/dns/sec/openssl/include/openssl/sha.h
index 9113e53e37..11985f788e 100644
--- a/lib/dns/sec/openssl/include/openssl/sha.h
+++ b/lib/dns/sec/openssl/include/openssl/sha.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/include/openssl/stack.h b/lib/dns/sec/openssl/include/openssl/stack.h
index 9779b4557d..04390a730c 100644
--- a/lib/dns/sec/openssl/include/openssl/stack.h
+++ b/lib/dns/sec/openssl/include/openssl/stack.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/lhash.c b/lib/dns/sec/openssl/lhash.c
index 252b59310c..70482d2a78 100644
--- a/lib/dns/sec/openssl/lhash.c
+++ b/lib/dns/sec/openssl/lhash.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -106,7 +106,7 @@
const char *lh_version="lhash" OPENSSL_VERSION_PTEXT;
-#undef MIN_NODES
+#undef MIN_NODES
#define MIN_NODES 16
#define UP_LOAD (2*LH_LOAD_MULT) /* load times 256 (default 2) */
#define DOWN_LOAD (LH_LOAD_MULT) /* load times 256 (default 1) */
@@ -310,7 +310,7 @@ static void expand(LHASH *lh)
n2= &(lh->b[p+(int)lh->pmax]);
*n2=NULL; /* 27/07/92 - eay - undefined pointer bug */
nni=lh->num_alloc_nodes;
-
+
for (np= *n1; np != NULL; )
{
#ifndef NO_HASH_COMP
@@ -442,7 +442,7 @@ unsigned long lh_strhash(const char *c)
/*
unsigned char b[16];
MD5(c,strlen(c),b);
- return(b[0]|(b[1]<<8)|(b[2]<<16)|(b[3]<<24));
+ return(b[0]|(b[1]<<8)|(b[2]<<16)|(b[3]<<24));
*/
n=0x100;
diff --git a/lib/dns/sec/openssl/md32_common.h b/lib/dns/sec/openssl/md32_common.h
index 300ba43f39..765dc7f22e 100644
--- a/lib/dns/sec/openssl/md32_common.h
+++ b/lib/dns/sec/openssl/md32_common.h
@@ -7,7 +7,7 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
diff --git a/lib/dns/sec/openssl/md5_locl.h b/lib/dns/sec/openssl/md5_locl.h
index 40c2c8196b..73784ae15c 100644
--- a/lib/dns/sec/openssl/md5_locl.h
+++ b/lib/dns/sec/openssl/md5_locl.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/mem.c b/lib/dns/sec/openssl/mem.c
index 057b18d291..6cd7e2840a 100644
--- a/lib/dns/sec/openssl/mem.c
+++ b/lib/dns/sec/openssl/mem.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/mem_dbg.c b/lib/dns/sec/openssl/mem_dbg.c
index 15783c4e4e..6e6051655d 100644
--- a/lib/dns/sec/openssl/mem_dbg.c
+++ b/lib/dns/sec/openssl/mem_dbg.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -61,7 +61,7 @@
#include
#include
-#include
+#include
#include
#include
#include
@@ -95,7 +95,7 @@ typedef struct app_mem_info_st
* CRYPTO_pop_info() to pop an entry,
* CRYPTO_remove_all_info() to pop all entries.
*/
- {
+ {
unsigned long thread;
const char *file;
int line;
@@ -209,7 +209,7 @@ int CRYPTO_is_mem_check_on(void)
CRYPTO_w_unlock(CRYPTO_LOCK_MALLOC);
}
return(ret);
- }
+ }
void CRYPTO_dbg_set_options(long bits)
@@ -569,7 +569,7 @@ static void print_leak(MEM *m, MEM_LEAK *l)
if (options & V_CRYPTO_MDEBUG_TIME)
{
lcl = localtime(&m->time);
-
+
sprintf(bufp, "[%02d:%02d:%02d] ",
lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
bufp += strlen(bufp);
@@ -590,7 +590,7 @@ static void print_leak(MEM *m, MEM_LEAK *l)
bufp += strlen(bufp);
BIO_puts(l->bio,buf);
-
+
l->chunks++;
l->bytes+=m->num;
@@ -599,7 +599,7 @@ static void print_leak(MEM *m, MEM_LEAK *l)
if (!amip)
return;
ti=amip->thread;
-
+
do
{
int buf_len;
@@ -623,13 +623,13 @@ static void print_leak(MEM *m, MEM_LEAK *l)
buf_len = strlen(buf);
}
sprintf(buf + buf_len, "\"\n");
-
+
BIO_puts(l->bio,buf);
amip = amip->next;
}
while(amip && amip->thread == ti);
-
+
#ifdef LEVITTE_DEBUG
if (amip)
{
@@ -683,7 +683,7 @@ void CRYPTO_mem_leaks(BIO *b)
}
if (amih != NULL)
{
- if (lh_num_items(amih) == 0)
+ if (lh_num_items(amih) == 0)
{
lh_free(amih);
amih = NULL;
diff --git a/lib/dns/sec/openssl/rand_lib.c b/lib/dns/sec/openssl/rand_lib.c
index 5faf841f75..7ec917e622 100644
--- a/lib/dns/sec/openssl/rand_lib.c
+++ b/lib/dns/sec/openssl/rand_lib.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/sha1_one.c b/lib/dns/sec/openssl/sha1_one.c
index 63de73c8ee..1c8a57b79f 100644
--- a/lib/dns/sec/openssl/sha1_one.c
+++ b/lib/dns/sec/openssl/sha1_one.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/sha1dgst.c b/lib/dns/sec/openssl/sha1dgst.c
index c35159b473..5aae10a3c4 100644
--- a/lib/dns/sec/openssl/sha1dgst.c
+++ b/lib/dns/sec/openssl/sha1dgst.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/openssl/sha_locl.h b/lib/dns/sec/openssl/sha_locl.h
index ecbe65e8d2..df3fe4df0b 100644
--- a/lib/dns/sec/openssl/sha_locl.h
+++ b/lib/dns/sec/openssl/sha_locl.h
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -164,9 +164,9 @@ void HASH_INIT (SHA_CTX *c)
* I've just become aware of another tweak to be made, again from Wei Dai,
* in F_40_59, (x&a)|(y&a) -> (x|y)&a
*/
-#define F_00_19(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
+#define F_00_19(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
#define F_20_39(b,c,d) ((b) ^ (c) ^ (d))
-#define F_40_59(b,c,d) (((b) & (c)) | (((b)|(c)) & (d)))
+#define F_40_59(b,c,d) (((b) & (c)) | (((b)|(c)) & (d)))
#define F_60_79(b,c,d) F_20_39(b,c,d)
#define BODY_00_15(i,a,b,c,d,e,f,xi) \
@@ -326,8 +326,8 @@ void HASH_BLOCK_HOST_ORDER (SHA_CTX *c, const void *d, int num)
BODY_60_79(77,B,C,D,E,T,A,X(13),X(15),X( 5),X(10));
BODY_60_79(78,A,B,C,D,E,T,X(14),X( 0),X( 6),X(11));
BODY_60_79(79,T,A,B,C,D,E,X(15),X( 1),X( 7),X(12));
-
- c->h0=(c->h0+E)&0xffffffffL;
+
+ c->h0=(c->h0+E)&0xffffffffL;
c->h1=(c->h1+T)&0xffffffffL;
c->h2=(c->h2+A)&0xffffffffL;
c->h3=(c->h3+B)&0xffffffffL;
@@ -453,8 +453,8 @@ void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, int num)
BODY_60_79(77,B,C,D,E,T,A,X(13),X(15),X( 5),X(10));
BODY_60_79(78,A,B,C,D,E,T,X(14),X( 0),X( 6),X(11));
BODY_60_79(79,T,A,B,C,D,E,X(15),X( 1),X( 7),X(12));
-
- c->h0=(c->h0+E)&0xffffffffL;
+
+ c->h0=(c->h0+E)&0xffffffffL;
c->h1=(c->h1+T)&0xffffffffL;
c->h2=(c->h2+A)&0xffffffffL;
c->h3=(c->h3+B)&0xffffffffL;
diff --git a/lib/dns/sec/openssl/stack.c b/lib/dns/sec/openssl/stack.c
index e414f4d49c..ccc59aca23 100644
--- a/lib/dns/sec/openssl/stack.c
+++ b/lib/dns/sec/openssl/stack.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
@@ -159,7 +159,7 @@ int sk_insert(STACK *st, char *data, int loc)
t=(char **)&(st->data[1]);
for (i=st->num; i>=loc; i--)
t[i]=f[i];
-
+
#ifdef undef /* no memmove on sunos :-( */
memmove( (char *)&(st->data[loc+1]),
(char *)&(st->data[loc]),
diff --git a/lib/dns/sec/openssl/th-lock.c b/lib/dns/sec/openssl/th-lock.c
index e1b26d3ed1..124907c2d4 100644
--- a/lib/dns/sec/openssl/th-lock.c
+++ b/lib/dns/sec/openssl/th-lock.c
@@ -5,21 +5,21 @@
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
- *
+ *
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
- *
+ *
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,10 +34,10 @@
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
- * 4. If you include any Windows specific code (or a derivative thereof) from
+ * 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
- *
+ *
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -49,7 +49,7 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
+ *
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
diff --git a/lib/dns/sec/rename.h b/lib/dns/sec/rename.h
index b4ddc84648..78eca83de3 100644
--- a/lib/dns/sec/rename.h
+++ b/lib/dns/sec/rename.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rename.h,v 1.9 2000/07/27 09:50:22 tale Exp $ */
+/* $Id: rename.h,v 1.10 2000/08/01 01:26:39 tale Exp $ */
#ifndef SEC_RENAME_H
#define SEC_RENAME_H 1
diff --git a/lib/dns/ssu.c b/lib/dns/ssu.c
index 9c39345108..143512c69b 100644
--- a/lib/dns/ssu.c
+++ b/lib/dns/ssu.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: ssu.c,v 1.12 2000/07/27 09:46:37 tale Exp $
+ * $Id: ssu.c,v 1.13 2000/08/01 01:22:55 tale Exp $
* Principal Author: Brian Wellington
*/
@@ -281,7 +281,7 @@ dns_ssutable_checkrules(dns_ssutable_t *table, dns_name_t *signer,
else if (rule->matchtype == DNS_SSUMATCHTYPE_WILDCARD) {
if (!dns_name_matcheswildcard(name, rule->name))
continue;
-
+
}
else if (rule->matchtype == DNS_SSUMATCHTYPE_SELF) {
if (!dns_name_equal(signer, name))
diff --git a/lib/dns/tcpmsg.c b/lib/dns/tcpmsg.c
index 2a63eca130..89fe5fe25f 100644
--- a/lib/dns/tcpmsg.c
+++ b/lib/dns/tcpmsg.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tcpmsg.c,v 1.21 2000/07/27 09:46:38 tale Exp $ */
+/* $Id: tcpmsg.c,v 1.22 2000/08/01 01:22:56 tale Exp $ */
#include
diff --git a/lib/dns/time.c b/lib/dns/time.c
index ca50be4c14..3b887f4aae 100644
--- a/lib/dns/time.c
+++ b/lib/dns/time.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.c,v 1.15 2000/07/27 09:46:39 tale Exp $ */
+/* $Id: time.c,v 1.16 2000/08/01 01:22:57 tale Exp $ */
#include
diff --git a/lib/dns/tkey.c b/lib/dns/tkey.c
index 6cc53b5a30..e3afba4e01 100644
--- a/lib/dns/tkey.c
+++ b/lib/dns/tkey.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: tkey.c,v 1.48 2000/07/27 09:46:41 tale Exp $
+ * $Id: tkey.c,v 1.49 2000/08/01 01:22:58 tale Exp $
* Principal Author: Brian Wellington
*/
diff --git a/lib/dns/tkeyconf.c b/lib/dns/tkeyconf.c
index d85610072c..36600c9518 100644
--- a/lib/dns/tkeyconf.c
+++ b/lib/dns/tkeyconf.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tkeyconf.c,v 1.12 2000/07/27 09:46:42 tale Exp $ */
+/* $Id: tkeyconf.c,v 1.13 2000/08/01 01:22:59 tale Exp $ */
#include
diff --git a/lib/dns/tsig.c b/lib/dns/tsig.c
index 276a5ca63f..d384db7d5b 100644
--- a/lib/dns/tsig.c
+++ b/lib/dns/tsig.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: tsig.c,v 1.81 2000/07/31 21:07:11 tale Exp $
+ * $Id: tsig.c,v 1.82 2000/08/01 01:23:00 tale Exp $
* Principal Author: Brian Wellington
*/
@@ -167,7 +167,7 @@ dns_tsigkey_create(dns_name_t *name, dns_name_t *algorithm,
isc_result_totext(ret));
return (ISC_R_UNEXPECTED);
}
-
+
tkey->magic = TSIG_MAGIC;
if (key != NULL)
@@ -310,7 +310,7 @@ dns_tsig_sign(dns_message_t *msg) {
isc_buffer_putuint32(&otherbuf,
(isc_uint32_t)(tsig.timesigned &
0xFFFFFFFF));
-
+
}
if (!dns_tsigkey_empty(key) && tsig.error != dns_tsigerror_badsig) {
unsigned char header[DNS_MESSAGE_HEADERLEN];
@@ -606,7 +606,7 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg,
if (ret != ISC_R_SUCCESS)
return (ret);
}
-
+
/*
* Do the key name and algorithm match that of the query?
*/
@@ -630,7 +630,7 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg,
ret = ISC_R_NOTFOUND;
if (ring1 != NULL)
ret = dns_tsigkey_find(&tsigkey, keyname,
- &tsig.algorithm, ring1);
+ &tsig.algorithm, ring1);
if (ret == ISC_R_NOTFOUND && ring2 != NULL)
ret = dns_tsigkey_find(&tsigkey, keyname,
&tsig.algorithm, ring2);
@@ -855,7 +855,7 @@ tsig_verify_tcp(isc_buffer_t *source, dns_message_t *msg) {
ret = dns_rdata_tostruct(&rdata, &tsig, NULL);
if (ret != ISC_R_SUCCESS)
goto cleanup_querystruct;
-
+
/*
* Do the key name and algorithm match that of the query?
*/
@@ -1067,7 +1067,7 @@ isc_result_t
dns_tsigkeyring_create(isc_mem_t *mctx, dns_tsig_keyring_t **ringp) {
isc_result_t result;
dns_tsig_keyring_t *ring;
-
+
REQUIRE(mctx != NULL);
REQUIRE(ringp != NULL);
REQUIRE(*ringp == NULL);
@@ -1075,7 +1075,7 @@ dns_tsigkeyring_create(isc_mem_t *mctx, dns_tsig_keyring_t **ringp) {
ring = isc_mem_get(mctx, sizeof(dns_tsig_keyring_t));
if (ring == NULL)
return (ISC_R_NOMEMORY);
-
+
result = isc_rwlock_init(&ring->lock, 0, 0);
if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
@@ -1083,7 +1083,7 @@ dns_tsigkeyring_create(isc_mem_t *mctx, dns_tsig_keyring_t **ringp) {
isc_result_totext(result));
return (ISC_R_UNEXPECTED);
}
-
+
ring->keys = NULL;
result = dns_rbt_create(mctx, free_tsignode, NULL, &ring->keys);
if (result != ISC_R_SUCCESS) {
diff --git a/lib/dns/tsigconf.c b/lib/dns/tsigconf.c
index 639fe82e27..f146d61d9e 100644
--- a/lib/dns/tsigconf.c
+++ b/lib/dns/tsigconf.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: tsigconf.c,v 1.10 2000/07/27 09:46:44 tale Exp $ */
+/* $Id: tsigconf.c,v 1.11 2000/08/01 01:23:02 tale Exp $ */
#include
@@ -135,7 +135,7 @@ dns_tsigkeyring_fromconfig(dns_c_view_t *confview, dns_c_ctx_t *confctx,
goto failure;
if (confview != NULL) {
- keylist = NULL;
+ keylist = NULL;
result = dns_c_view_getkeydefs(confview, &keylist);
if (result == ISC_R_SUCCESS)
result = add_initial_keys(keylist, ring, mctx);
diff --git a/lib/dns/ttl.c b/lib/dns/ttl.c
index 3c36a1742a..72d491e7cf 100644
--- a/lib/dns/ttl.c
+++ b/lib/dns/ttl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ttl.c,v 1.19 2000/07/27 09:46:45 tale Exp $ */
+/* $Id: ttl.c,v 1.20 2000/08/01 01:23:03 tale Exp $ */
#include
@@ -114,7 +114,7 @@ dns_ttl_totext(isc_uint32_t src, isc_boolean_t verbose, isc_buffer_t *target) {
if (x == 1 && !verbose) {
isc_region_t region;
/*
- * The unit letter is the last character in the
+ * The unit letter is the last character in the
* used region of the buffer.
*
* toupper() does not need its argument to be masked of cast
diff --git a/lib/dns/validator.c b/lib/dns/validator.c
index 408bec3815..c65bbe5193 100644
--- a/lib/dns/validator.c
+++ b/lib/dns/validator.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: validator.c,v 1.70 2000/07/27 18:42:06 bwelling Exp $ */
+/* $Id: validator.c,v 1.71 2000/08/01 01:23:04 tale Exp $ */
#include
@@ -114,7 +114,7 @@ validator_done(dns_validator_t *val, isc_result_t result) {
val->event->ev_action = val->action;
val->event->ev_arg = val->arg;
isc_task_sendanddetach(&task, (isc_event_t **)&val->event);
-
+
}
static void
@@ -324,7 +324,7 @@ keyvalidated(isc_task_t *task, isc_event_t *event) {
goto out;
}
} else {
- validator_log(val, ISC_LOG_DEBUG(3),
+ validator_log(val, ISC_LOG_DEBUG(3),
"keyvalidated: got %s",
dns_result_totext(eresult));
validator_done(val, eresult);
@@ -438,7 +438,7 @@ authvalidated(isc_task_t *task, isc_event_t *event) {
validator_log(val, ISC_LOG_DEBUG(3), "in authvalidated");
LOCK(&val->lock);
if (eresult != ISC_R_SUCCESS) {
- validator_log(val, ISC_LOG_DEBUG(3),
+ validator_log(val, ISC_LOG_DEBUG(3),
"authvalidated: got %s",
dns_result_totext(eresult));
result = nxtvalidate(val, ISC_TRUE);
@@ -486,7 +486,7 @@ negauthvalidated(isc_task_t *task, isc_event_t *event) {
auth_nonpending(val->event->message);
validator_done(val, ISC_R_SUCCESS);
} else {
- validator_log(val, ISC_LOG_DEBUG(3),
+ validator_log(val, ISC_LOG_DEBUG(3),
"negauthvalidated: got %s",
dns_result_totext(eresult));
validator_done(val, eresult);
@@ -547,7 +547,7 @@ nullkeyvalidated(isc_task_t *task, isc_event_t *event) {
* Try to find a null zone key among those in 'rdataset'. If found, build
* a dst_key_t for it and point val->key at it.
*/
-static inline isc_boolean_t
+static inline isc_boolean_t
containsnullkey(dns_validator_t *val, dns_rdataset_t *rdataset) {
isc_result_t result;
dst_key_t *key = NULL;
@@ -586,7 +586,7 @@ containsnullkey(dns_validator_t *val, dns_rdataset_t *rdataset) {
*
* If val->key is non-NULL, this returns the next matching key.
*/
-static inline isc_result_t
+static inline isc_result_t
get_dst_key(dns_validator_t *val, dns_rdata_sig_t *siginfo,
dns_rdataset_t *rdataset)
{
@@ -923,13 +923,13 @@ validate(dns_validator_t *val, isc_boolean_t resume) {
if (val->siginfo == NULL)
return (ISC_R_NOMEMORY);
dns_rdata_tostruct(&rdata, val->siginfo, NULL);
-
+
/*
* At this point we could check that the signature algorithm
* was known and "sufficiently good". For now, any algorithm
* is acceptable.
*/
-
+
if (!resume) {
result = get_key(val, val->siginfo);
if (result == DNS_R_CONTINUE)
@@ -1089,7 +1089,7 @@ nxtvalidate(dns_validator_t *val, isc_boolean_t resume) {
if (result != ISC_R_SUCCESS)
return (result);
return (DNS_R_WAIT);
-
+
}
}
if (result == ISC_R_NOMORE)
@@ -1204,7 +1204,7 @@ proveunsecure(dns_validator_t *val, isc_boolean_t resume) {
"found keyset, looking for null key");
if (!containsnullkey(val, &val->frdataset))
continue;
-
+
if (val->frdataset.trust >= dns_trust_secure) {
validator_log(val, ISC_LOG_DEBUG(3),
"insecurity proof succeeded");
@@ -1286,7 +1286,7 @@ validator_start(isc_task_t *task, isc_event_t *event) {
val = vevent->validator;
validator_log(val, ISC_LOG_DEBUG(3), "starting");
-
+
LOCK(&val->lock);
if (val->event->rdataset != NULL && val->event->sigrdataset != NULL) {
@@ -1299,7 +1299,7 @@ validator_start(isc_task_t *task, isc_event_t *event) {
*/
validator_log(val, ISC_LOG_DEBUG(3),
"attempting positive response validation");
-
+
result = validate(val, ISC_FALSE);
if (result == DNS_R_NOVALIDSIG &&
(val->attributes & VALATTR_TRIEDVERIFY) == 0)
@@ -1318,7 +1318,7 @@ validator_start(isc_task_t *task, isc_event_t *event) {
*/
validator_log(val, ISC_LOG_DEBUG(3),
"attempting insecurity proof");
-
+
result = proveunsecure(val, ISC_FALSE);
} else if (val->event->rdataset == NULL &&
val->event->sigrdataset == NULL)
@@ -1328,7 +1328,7 @@ validator_start(isc_task_t *task, isc_event_t *event) {
*/
validator_log(val, ISC_LOG_DEBUG(3),
"attempting negative response validation");
-
+
result = nxtvalidate(val, ISC_FALSE);
} else {
/*
@@ -1423,7 +1423,7 @@ dns_validator_create(dns_view_t *view, dns_name_t *name, dns_rdatatype_t type,
cleanup_val:
dns_view_detach(&val->view);
isc_mem_put(view->mctx, val, sizeof *val);
-
+
return (result);
}
@@ -1519,7 +1519,7 @@ validator_logv(dns_validator_t *val, isc_logcategory_t *category,
char typebuf[256];
isc_buffer_t b;
isc_region_t r;
-
+
dns_name_format(val->event->name, namebuf, sizeof(namebuf));
isc_buffer_init(&b, (unsigned char *)typebuf, sizeof(typebuf));
@@ -1536,7 +1536,7 @@ validator_logv(dns_validator_t *val, isc_logcategory_t *category,
} else {
isc_log_write(dns_lctx, category, module, level,
"validator @%p: %s", val, msgbuf);
-
+
}
}
diff --git a/lib/dns/version.c b/lib/dns/version.c
index ec7f811b03..52d15b41f2 100644
--- a/lib/dns/version.c
+++ b/lib/dns/version.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: version.c,v 1.7 2000/07/27 09:46:47 tale Exp $ */
+/* $Id: version.c,v 1.8 2000/08/01 01:23:05 tale Exp $ */
char dns_version[] = VERSION;
diff --git a/lib/dns/view.c b/lib/dns/view.c
index 7658208e53..56f360783a 100644
--- a/lib/dns/view.c
+++ b/lib/dns/view.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: view.c,v 1.73 2000/07/31 21:06:59 explorer Exp $ */
+/* $Id: view.c,v 1.74 2000/08/01 01:23:06 tale Exp $ */
#include
@@ -136,7 +136,7 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
/*
* Initialize configuration data with default values.
- */
+ */
view->recursion = ISC_TRUE;
view->auth_nxdomain = ISC_FALSE; /* Was true in BIND 8 */
view->additionalfromcache = ISC_TRUE;
@@ -164,20 +164,20 @@ dns_view_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
DNS_EVENT_VIEWREQSHUTDOWN, req_shutdown,
view, NULL, NULL, NULL);
view->magic = DNS_VIEW_MAGIC;
-
+
*viewp = view;
return (ISC_R_SUCCESS);
cleanup_dynkeys:
- dns_tsigkeyring_destroy(&view->dynamickeys);
+ dns_tsigkeyring_destroy(&view->dynamickeys);
cleanup_trustedkeys:
dns_keytable_detach(&view->trustedkeys);
cleanup_secroots:
dns_keytable_detach(&view->secroots);
-
+
cleanup_zt:
dns_zt_detach(&view->zonetable);
@@ -207,9 +207,9 @@ destroy(dns_view_t *view) {
if (view->peers != NULL)
dns_peerlist_detach(&view->peers);
- if (view->dynamickeys != NULL)
+ if (view->dynamickeys != NULL)
dns_tsigkeyring_destroy(&view->dynamickeys);
- if (view->statickeys != NULL)
+ if (view->statickeys != NULL)
dns_tsigkeyring_destroy(&view->statickeys);
if (view->adb != NULL)
dns_adb_detach(&view->adb);
@@ -339,13 +339,13 @@ static void
resolver_shutdown(isc_task_t *task, isc_event_t *event) {
dns_view_t *view = event->ev_arg;
isc_boolean_t done;
-
+
REQUIRE(event->ev_type == DNS_EVENT_VIEWRESSHUTDOWN);
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
-
+
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_RESSHUTDOWN;
@@ -363,13 +363,13 @@ static void
adb_shutdown(isc_task_t *task, isc_event_t *event) {
dns_view_t *view = event->ev_arg;
isc_boolean_t done;
-
+
REQUIRE(event->ev_type == DNS_EVENT_VIEWADBSHUTDOWN);
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
-
+
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_ADBSHUTDOWN;
@@ -387,13 +387,13 @@ static void
req_shutdown(isc_task_t *task, isc_event_t *event) {
dns_view_t *view = event->ev_arg;
isc_boolean_t done;
-
+
REQUIRE(event->ev_type == DNS_EVENT_VIEWREQSHUTDOWN);
REQUIRE(DNS_VIEW_VALID(view));
REQUIRE(view->task == task);
UNUSED(task);
-
+
LOCK(&view->lock);
view->attributes |= DNS_VIEWATTR_REQSHUTDOWN;
@@ -543,7 +543,7 @@ dns_view_addzone(dns_view_t *view, dns_zone_t *zone) {
void
dns_view_freeze(dns_view_t *view) {
-
+
/*
* Freeze view.
*/
diff --git a/lib/dns/xfrin.c b/lib/dns/xfrin.c
index 3327f390bc..452a1a8e57 100644
--- a/lib/dns/xfrin.c
+++ b/lib/dns/xfrin.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: xfrin.c,v 1.86 2000/07/27 09:46:50 tale Exp $ */
+/* $Id: xfrin.c,v 1.87 2000/08/01 01:23:07 tale Exp $ */
#include
@@ -99,7 +99,7 @@ struct dns_xfrin_ctx {
int sends; /* Send in progress */
int recvs; /* Receive in progress */
isc_boolean_t shuttingdown;
-
+
dns_name_t name; /* Name of zone to transfer */
dns_rdataclass_t rdclass;
@@ -126,7 +126,7 @@ struct dns_xfrin_ctx {
dns_dbversion_t *ver;
dns_diff_t diff; /* Pending database changes */
int difflen; /* Number of pending tuples */
-
+
xfrin_state_t state;
isc_uint32_t end_serial;
isc_boolean_t is_ixfr;
@@ -141,20 +141,20 @@ struct dns_xfrin_ctx {
/*
* AXFR- and IXFR-specific data. Only one is used at a time
- * according to the is_ixfr flag, so this could be a union,
- * but keeping them separate makes it a bit simpler to clean
+ * according to the is_ixfr flag, so this could be a union,
+ * but keeping them separate makes it a bit simpler to clean
* things up when destroying the context.
*/
struct {
dns_addrdatasetfunc_t add_func;
dns_dbload_t *add_private;
} axfr;
-
+
struct {
isc_uint32_t request_serial;
isc_uint32_t end_serial;
dns_journal_t *journal;
-
+
} ixfr;
};
@@ -215,7 +215,7 @@ static isc_result_t
render(dns_message_t *msg, isc_buffer_t *buf);
static void
-xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
+xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
const char *fmt, va_list ap);
static void
xfrin_log1(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
@@ -313,7 +313,7 @@ ixfr_init(dns_xfrin_ctx_t *xfr) {
isc_result_t result;
if (xfr->reqtype != dns_rdatatype_ixfr) {
- xfrin_log(xfr, ISC_LOG_ERROR,
+ xfrin_log(xfr, ISC_LOG_ERROR,
"got incremental response to AXFR request");
return (DNS_R_FORMERR);
}
@@ -443,7 +443,7 @@ xfr_rr(dns_xfrin_ctx_t *xfr, dns_name_t *name, isc_uint32_t ttl,
}
xfr->state = XFRST_FIRSTDATA;
break;
-
+
case XFRST_FIRSTDATA:
/*
* If the transfer begins with one SOA record, it is an AXFR,
@@ -469,7 +469,7 @@ xfr_rr(dns_xfrin_ctx_t *xfr, dns_name_t *name, isc_uint32_t ttl,
CHECK(ixfr_putdata(xfr, DNS_DIFFOP_DEL, name, ttl, rdata));
xfr->state = XFRST_IXFR_DEL;
break;
-
+
case XFRST_IXFR_DEL:
if (rdata->type == dns_rdatatype_soa) {
isc_uint32_t soa_serial = dns_soa_getserial(rdata);
@@ -479,13 +479,13 @@ xfr_rr(dns_xfrin_ctx_t *xfr, dns_name_t *name, isc_uint32_t ttl,
}
CHECK(ixfr_putdata(xfr, DNS_DIFFOP_DEL, name, ttl, rdata));
break;
-
+
case XFRST_IXFR_ADDSOA:
INSIST(rdata->type == dns_rdatatype_soa);
CHECK(ixfr_putdata(xfr, DNS_DIFFOP_ADD, name, ttl, rdata));
xfr->state = XFRST_IXFR_ADD;
break;
-
+
case XFRST_IXFR_ADD:
if (rdata->type == dns_rdatatype_soa) {
isc_uint32_t soa_serial = dns_soa_getserial(rdata);
@@ -535,7 +535,7 @@ dns_xfrin_create(dns_zone_t *zone, dns_rdatatype_t xfrtype,
REQUIRE(xfrp != NULL && *xfrp == NULL);
(void)dns_zone_getdb(zone, &db);
-
+
CHECK(xfrin_create(mctx, zone, db, task, timermgr, socketmgr, zonename,
dns_zone_getclass(zone), xfrtype, masteraddr,
tsigkey, &xfr));
@@ -611,7 +611,7 @@ xfrin_create(isc_mem_t *mctx,
isc_result_t result;
isc_interval_t maxinterval, idleinterval;
isc_time_t expires;
-
+
xfr = isc_mem_get(mctx, sizeof(*xfr));
if (xfr == NULL)
return (ISC_R_NOMEMORY);
@@ -629,7 +629,7 @@ xfrin_create(isc_mem_t *mctx,
xfr->sends = 0;
xfr->recvs = 0;
xfr->shuttingdown = ISC_FALSE;
-
+
dns_name_init(&xfr->name, NULL);
xfr->rdclass = rdclass;
xfr->reqtype = reqtype;
@@ -670,11 +670,11 @@ xfrin_create(isc_mem_t *mctx,
xfr->axfr.add_private = NULL;
CHECK(dns_name_dup(zonename, mctx, &xfr->name));
-
+
isc_interval_set(&maxinterval, dns_zone_getmaxxfrin(xfr->zone), 0);
CHECK(isc_time_nowplusinterval(&expires, &maxinterval));
isc_interval_set(&idleinterval, dns_zone_getidlein(xfr->zone), 0);
-
+
CHECK(isc_timer_create(timermgr, isc_timertype_once,
&expires, &idleinterval, task,
xfrin_timeout, xfr, &xfr->timer));
@@ -691,14 +691,14 @@ xfrin_create(isc_mem_t *mctx,
default:
INSIST(0);
}
-
+
isc_buffer_init(&xfr->qbuffer, xfr->qbuffer_data,
sizeof(xfr->qbuffer_data));
xfr->magic = XFRIN_MAGIC;
*xfrp = xfr;
return (ISC_R_SUCCESS);
-
+
failure:
xfrin_fail(xfr, result, "creating transfer context");
return (result);
@@ -760,17 +760,17 @@ xfrin_connect_done(isc_task_t *task, isc_event_t *event) {
maybe_free(xfr);
return;
}
-
+
CHECK(evresult);
xfrin_log(xfr, ISC_LOG_DEBUG(3), "connected");
-
+
dns_tcpmsg_init(xfr->mctx, xfr->socket, &xfr->tcpmsg);
xfr->tcpmsg_valid = ISC_TRUE;
CHECK(xfrin_send_request(xfr));
failure:
if (result != ISC_R_SUCCESS)
- xfrin_fail(xfr, result, "connect");
+ xfrin_fail(xfr, result, "connect");
}
/*
@@ -791,7 +791,7 @@ tuple2msgname(dns_difftuple_t *tuple, dns_message_t *msg, dns_name_t **target)
CHECK(dns_message_gettemprdata(msg, &rdata));
dns_rdata_init(rdata);
*rdata = tuple->rdata; /* Struct assignment. */
-
+
CHECK(dns_message_gettemprdatalist(msg, &rdl));
dns_rdatalist_init(rdl);
rdl->type = tuple->rdata.type;
@@ -812,7 +812,7 @@ tuple2msgname(dns_difftuple_t *tuple, dns_message_t *msg, dns_name_t **target)
failure:
return (result);
}
-
+
/*
* Build an *XFR request and send its length prefix.
@@ -844,7 +844,7 @@ xfrin_send_request(dns_xfrin_ctx_t *xfr) {
dns_rdataset_init(qrdataset);
dns_rdataset_makequestion(qrdataset, xfr->rdclass, xfr->reqtype);
ISC_LIST_APPEND(qname->list, qrdataset, link);
-
+
dns_message_addname(msg, qname, DNS_SECTION_QUESTION);
if (xfr->reqtype == dns_rdatatype_ixfr) {
@@ -914,13 +914,13 @@ xfrin_sendlen_done(isc_task_t *task, isc_event_t *event) {
INSIST(event->ev_type == ISC_SOCKEVENT_SENDDONE);
isc_event_free(&event);
-
+
xfr->sends--;
if (xfr->shuttingdown) {
maybe_free(xfr);
return;
}
-
+
xfrin_log(xfr, ISC_LOG_DEBUG(3), "sent request length prefix");
CHECK(evresult);
@@ -946,7 +946,7 @@ xfrin_send_done(isc_task_t *task, isc_event_t *event) {
INSIST(event->ev_type == ISC_SOCKEVENT_SENDDONE);
- xfr->sends--;
+ xfr->sends--;
xfrin_log(xfr, ISC_LOG_DEBUG(3), "sent request data");
CHECK(sev->result);
@@ -972,11 +972,11 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
REQUIRE(VALID_XFRIN(xfr));
UNUSED(task);
-
+
INSIST(ev->ev_type == DNS_EVENT_TCPMSG);
tcpmsg = ev->ev_sender;
isc_event_free(&ev);
-
+
xfr->recvs--;
if (xfr->shuttingdown) {
maybe_free(xfr);
@@ -989,7 +989,7 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
tcpmsg->buffer.used);
CHECK(isc_timer_touch(xfr->timer));
-
+
CHECK(dns_message_create(xfr->mctx, DNS_MESSAGE_INTENTPARSE, &msg));
dns_message_settsigkey(msg, xfr->tsigkey);
@@ -1027,7 +1027,7 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
result = dns_message_nextname(msg, DNS_SECTION_ANSWER))
{
dns_rdataset_t *rds;
-
+
name = NULL;
dns_message_currentname(msg, DNS_SECTION_ANSWER, &name);
if (!dns_name_issubdomain(name, &xfr->name)) {
@@ -1084,7 +1084,7 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
* Update the number of messages received.
*/
xfr->nmsg++;
-
+
/*
* Copy the context back.
*/
@@ -1119,7 +1119,7 @@ xfrin_recv_done(isc_task_t *task, isc_event_t *ev) {
xfr->recvs++;
}
return;
-
+
failure:
if (msg != NULL)
dns_message_destroy(&msg);
@@ -1178,28 +1178,28 @@ maybe_free(dns_xfrin_ctx_t *xfr) {
if (xfr->tcpmsg_valid)
dns_tcpmsg_invalidate(&xfr->tcpmsg);
-
+
if ((xfr->name.attributes & DNS_NAMEATTR_DYNAMIC) != 0)
dns_name_free(&xfr->name, xfr->mctx);
if (xfr->ver != NULL)
dns_db_closeversion(xfr->db, &xfr->ver, ISC_FALSE);
- if (xfr->db != NULL)
+ if (xfr->db != NULL)
dns_db_detach(&xfr->db);
if (xfr->zone != NULL)
dns_zone_detach(&xfr->zone);
-
+
isc_mem_put(xfr->mctx, xfr, sizeof(*xfr));
}
/*
* Log incoming zone transfer messages in a format like
- * transfer of from :
+ * transfer of from :
*/
static void
-xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
+xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
const char *fmt, va_list ap)
{
char zntext[1024];
@@ -1210,7 +1210,7 @@ xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
isc_sockaddr_format(masteraddr, mastertext, sizeof(mastertext));
vsnprintf(msgtext, sizeof(msgtext), fmt, ap);
- isc_log_write(dns_lctx, DNS_LOGCATEGORY_XFER_IN,
+ isc_log_write(dns_lctx, DNS_LOGCATEGORY_XFER_IN,
DNS_LOGMODULE_XFER_IN, level,
"transfer of '%s' from %s: %s",
zntext, mastertext, msgtext);
@@ -1221,7 +1221,7 @@ xfrin_logv(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
*/
static void
-xfrin_log1(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
+xfrin_log1(int level, dns_name_t *zonename, isc_sockaddr_t *masteraddr,
const char *fmt, ...)
{
va_list ap;
diff --git a/lib/dns/zone.c b/lib/dns/zone.c
index 09623310b6..03e8847df7 100644
--- a/lib/dns/zone.c
+++ b/lib/dns/zone.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.c,v 1.171 2000/07/28 20:13:47 bwelling Exp $ */
+/* $Id: zone.c,v 1.172 2000/08/01 01:23:09 tale Exp $ */
#include
@@ -163,13 +163,13 @@ struct dns_zone {
isc_uint32_t sigvalidityinterval;
dns_view_t *view;
/*
- * Zones in certain states such as "waiting for zone transfer"
+ * Zones in certain states such as "waiting for zone transfer"
* or "zone transfer in progress" are kept on per-state linked lists
* in the zone manager using the 'statelink' field. The 'statelist'
* field points at the list the zone is currently on. It the zone
* is not on any such list, statelist is NULL.
*/
- ISC_LINK(dns_zone_t) statelink;
+ ISC_LINK(dns_zone_t) statelink;
dns_zonelist_t *statelist;
};
@@ -184,7 +184,7 @@ struct dns_zone {
#define DNS_ZONEFLG_EXITING 0x00000040U /* zone is being destroyed */
#define DNS_ZONEFLG_EXPIRED 0x00000080U /* zone has expired */
#define DNS_ZONEFLG_NEEDREFRESH 0x00000100U /* refresh check needed */
-#define DNS_ZONEFLG_UPTODATE 0x00000200U /* zone contents are
+#define DNS_ZONEFLG_UPTODATE 0x00000200U /* zone contents are
* uptodate */
#define DNS_ZONEFLG_NEEDNOTIFY 0x00000400U /* need to send out notify
* messages */
@@ -212,7 +212,7 @@ struct dns_zonemgr {
dns_zonelist_t zones;
dns_zonelist_t waiting_for_xfrin;
dns_zonelist_t xfrin_in_progress;
-
+
/* Locked by conflock. */
int transfersin;
int transfersperns;
@@ -318,7 +318,7 @@ isc_result_t
dns_zone_create(dns_zone_t **zonep, isc_mem_t *mctx) {
isc_result_t result;
dns_zone_t *zone;
-
+
REQUIRE(zonep != NULL && *zonep == NULL);
REQUIRE(mctx != NULL);
@@ -393,7 +393,7 @@ dns_zone_create(dns_zone_t **zonep, isc_mem_t *mctx) {
zone->view = NULL;
ISC_LINK_INIT(zone, statelink);
zone->statelist = NULL;
-
+
zone->magic = ZONE_MAGIC;
ISC_EVENT_INIT(&zone->ctlevent, sizeof(zone->ctlevent), 0, NULL,
DNS_EVENT_ZONECONTROL, zone_shutdown, zone, zone,
@@ -423,12 +423,12 @@ zone_free(dns_zone_t *zone) {
dns_request_destroy(&zone->request); /* XXXMPA */
INSIST(zone->statelist == NULL);
-
+
if (zone->task != NULL)
isc_task_detach(&zone->task);
if (zone->zmgr)
dns_zonemgr_releasezone(zone->zmgr, zone);
-
+
/* Unmanaged objects */
if (zone->dbname != NULL)
isc_mem_free(zone->mctx, zone->dbname);
@@ -546,7 +546,7 @@ dns_zone_setview(dns_zone_t *zone, dns_view_t *view) {
dns_view_weakdetach(&zone->view);
dns_view_weakattach(view, &zone->view);
}
-
+
dns_view_t *
dns_zone_getview(dns_zone_t *zone) {
@@ -554,7 +554,7 @@ dns_zone_getview(dns_zone_t *zone) {
return (zone->view);
}
-
+
isc_result_t
dns_zone_setorigin(dns_zone_t *zone, dns_name_t *origin) {
@@ -599,7 +599,7 @@ default_journal(dns_zone_t *zone) {
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE(zone->dbname != NULL);
- if (zone->journal != NULL)
+ if (zone->journal != NULL)
isc_mem_free(zone->mctx, zone->journal);
len = strlen(zone->dbname) + sizeof ".jnl"; /* includes '\0' */
zone->journal = isc_mem_allocate(zone->mctx, len);
@@ -794,7 +794,7 @@ dns_zone_load(dns_zone_t *zone) {
isc_time_t t;
result = isc_file_getmodtime(zone->dbname, &t);
-
+
if (result == ISC_R_SUCCESS)
zone->expiretime = isc_time_seconds(&t) +
zone->expire;
@@ -821,7 +821,7 @@ dns_zone_load(dns_zone_t *zone) {
sizeof(isc_event_t));
dns_db_ondestroy(db, zone->task, &e);
}
-#endif
+#endif
if (zone->db != NULL) {
result = zone_replacedb(zone, db, ISC_FALSE);
@@ -831,7 +831,7 @@ dns_zone_load(dns_zone_t *zone) {
dns_db_attach(db, &zone->db);
zone->flags |= DNS_ZONEFLG_LOADED|DNS_ZONEFLG_NEEDNOTIFY;
}
- result = ISC_R_SUCCESS;
+ result = ISC_R_SUCCESS;
cleanup:
UNLOCK(&zone->lock);
@@ -1011,19 +1011,19 @@ void
dns_zone_detach(dns_zone_t **zonep) {
dns_zone_t *zone;
isc_boolean_t free_now = ISC_FALSE;
-
+
REQUIRE(zonep != NULL && DNS_ZONE_VALID(*zonep));
zone = *zonep;
LOCK(&zone->lock);
-
+
REQUIRE(zone->erefs > 0);
zone->erefs--;
if (zone->erefs == 0) {
/*
* We just detached the last external reference.
*/
- if (zone->task != NULL) {
+ if (zone->task != NULL) {
/*
* This zone is being managed. Post
* its control event and let it clean
@@ -1257,7 +1257,7 @@ dns_zone_setalsonotify(dns_zone_t *zone, isc_sockaddr_t *notify,
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE((notify == NULL && count == 0) ||
(notify != NULL && count != 0));
-
+
LOCK(&zone->lock);
if (zone->notify != NULL) {
isc_mem_put(zone->mctx, zone->notify,
@@ -1428,7 +1428,7 @@ dns_zone_getdb(dns_zone_t *zone, dns_db_t **dpb) {
/*
* Co-ordinates the starting of routine jobs.
*/
-
+
void
dns_zone_maintenance(dns_zone_t *zone) {
const char me[] = "dns_zone_maintenance";
@@ -1441,13 +1441,13 @@ dns_zone_maintenance(dns_zone_t *zone) {
/*
* Configuring the view of this zone may have
* failed, for example because the config file
- * had a syntax error. In that case, the view
+ * had a syntax error. In that case, the view
* adb or resolver, and we had better not try
* to do maintenance on it.
*/
if (zone->view == NULL || zone->view->adb == NULL)
return;
-
+
isc_stdtime_get(&now);
/*
@@ -1457,7 +1457,7 @@ dns_zone_maintenance(dns_zone_t *zone) {
case dns_zone_slave:
case dns_zone_stub:
LOCK(&zone->lock);
- if (now >= zone->expiretime &&
+ if (now >= zone->expiretime &&
DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED)) {
zone_expire(zone);
zone->refreshtime = now;
@@ -1621,7 +1621,7 @@ zone_dump(dns_zone_t *zone) {
int buflen;
FILE *f = NULL;
int n;
-
+
/*
* 'zone' locked by caller.
*/
@@ -1792,7 +1792,7 @@ process_adb_event(isc_task_t *task, isc_event_t *ev) {
notify = ev->ev_arg;
REQUIRE(DNS_NOTIFY_VALID(notify));
- INSIST(task == notify->zone->task);
+ INSIST(task == notify->zone->task);
result = ev->ev_type;
isc_event_free(&ev);
dns_zone_iattach(notify->zone, &zone);
@@ -2049,7 +2049,7 @@ dns_zone_notify(dns_zone_t *zone) {
dns_rdatatype_none, 0, &soardset, NULL);
if (result != ISC_R_SUCCESS)
goto cleanup2;
-
+
/*
* Find master server's name.
*/
@@ -2077,7 +2077,7 @@ dns_zone_notify(dns_zone_t *zone) {
dns_rdatatype_none, 0, &nsrdset, NULL);
if (result != ISC_R_SUCCESS)
goto cleanup3;
-
+
result = dns_rdataset_first(&nsrdset);
while (result == ISC_R_SUCCESS) {
dns_rdataset_current(&nsrdset, &rdata);
@@ -2131,8 +2131,8 @@ dns_zone_notify(dns_zone_t *zone) {
*** Private
***/
-static inline isc_result_t
-save_nsrrset(dns_message_t *message, dns_name_t *name,
+static inline isc_result_t
+save_nsrrset(dns_message_t *message, dns_name_t *name,
dns_db_t *db, dns_dbversion_t *version)
{
dns_rdataset_t *nsrdataset = NULL;
@@ -2433,7 +2433,7 @@ refresh_callback(isc_task_t *task, isc_event_t *event) {
isc_sockaddr_format(&zone->masteraddr, master, sizeof(master));
isc_stdtime_get(&now);
-
+
if (revent->result != ISC_R_SUCCESS) {
zone_log(zone, me, ISC_LOG_INFO, "failure for %s: %s",
master, dns_result_totext(revent->result));
@@ -2664,9 +2664,9 @@ queue_soa_query(dns_zone_t *zone) {
/*
* Attach so that we won't clean up
* until the event is delivered.
- */
+ */
dns_zone_iattach(zone, &dummy);
-
+
e->ev_arg = zone;
e->ev_sender = NULL;
result = isc_ratelimiter_enqueue(zone->zmgr->rl, zone->task, &e);
@@ -2752,7 +2752,7 @@ soa_query(isc_task_t *task, isc_event_t *event) {
return;
}
- /*
+ /*
* XXX Optimisation: Create message when zone is setup and reuse.
*/
result = create_query(zone, dns_rdatatype_soa, &message);
@@ -2778,7 +2778,7 @@ soa_query(isc_task_t *task, isc_event_t *event) {
zone->view->dynamickeys);
}
- options = DNS_ZONE_FLAG(zone, DNS_ZONEFLG_USEVC) ?
+ options = DNS_ZONE_FLAG(zone, DNS_ZONEFLG_USEVC) ?
DNS_REQUESTOPT_TCP : 0;
result = dns_request_create(zone->view->requestmgr, message,
&zone->masteraddr, options, key,
@@ -2886,7 +2886,7 @@ ns_query(dns_zone_t *zone, dns_rdataset_t *soardataset, dns_stub_t *stub) {
}
- /*
+ /*
* XXX Optimisation: Create message when zone is setup and reuse.
*/
result = create_query(zone, dns_rdatatype_ns, &message);
@@ -2955,7 +2955,7 @@ zone_shutdown(isc_task_t *task, isc_event_t *event) {
UNUSED(task);
REQUIRE(DNS_ZONE_VALID(zone));
INSIST(event->ev_type == DNS_EVENT_ZONECONTROL);
- INSIST(zone->erefs == 0);
+ INSIST(zone->erefs == 0);
zone_log(zone, "zone_shutdown", ISC_LOG_DEBUG(3), "shutting down");
LOCK(&zone->lock);
zone->flags |= DNS_ZONEFLG_EXITING;
@@ -2972,7 +2972,7 @@ zone_shutdown(isc_task_t *task, isc_event_t *event) {
RWUNLOCK(&zone->zmgr->rwlock, isc_rwlocktype_write);
zone->statelist = NULL;
}
-
+
if (zone->xfr != NULL)
dns_xfrin_shutdown(zone->xfr);
@@ -2996,7 +2996,7 @@ zone_shutdown(isc_task_t *task, isc_event_t *event) {
if (zone->view != NULL)
dns_view_weakdetach(&zone->view);
-
+
exit_check(zone);
}
@@ -3012,7 +3012,7 @@ zone_timer(isc_task_t *task, isc_event_t *event) {
/* XXX if we use a view, we need to lock its configuration, too. */
dns_zone_maintenance(zone);
dns_zonemgr_unlockconf(zone->zmgr, isc_rwlocktype_read);
-
+
isc_event_free(&event);
}
@@ -3142,7 +3142,7 @@ notify_createmessage(dns_zone_t *zone, dns_message_t **messagep)
dns_message_addname(message, tempname, DNS_SECTION_QUESTION);
tempname = NULL;
temprdataset = NULL;
-
+
/*
* If the zone is dialup we are done as we don't want to send
* the current soa so as to force a refresh query.
@@ -3265,7 +3265,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
* against the zones serial and return if <= current serial
*
* If a refresh check is progress, if so just record the
- * fact we received a NOTIFY and from where and return.
+ * fact we received a NOTIFY and from where and return.
* We will perform a new refresh check when the current one
* completes. Return ISC_R_SUCCESS.
*
@@ -3323,7 +3323,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
result = dns_message_findname(msg, DNS_SECTION_ANSWER,
&zone->origin,
dns_rdatatype_soa,
- dns_rdatatype_none, NULL,
+ dns_rdatatype_none, NULL,
&rdataset);
if (result == ISC_R_SUCCESS)
result = dns_rdataset_first(rdataset);
@@ -3341,7 +3341,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
return (ISC_R_SUCCESS);
}
}
- }
+ }
}
/*
@@ -3477,7 +3477,7 @@ dns_zone_getchecknames(dns_zone_t *zone) {
void
dns_zone_setjournalsize(dns_zone_t *zone, isc_int32_t size) {
-
+
REQUIRE(DNS_ZONE_VALID(zone));
zone->journalsize = size;
@@ -3485,7 +3485,7 @@ dns_zone_setjournalsize(dns_zone_t *zone, isc_int32_t size) {
isc_int32_t
dns_zone_getjournalsize(dns_zone_t *zone) {
-
+
REQUIRE(DNS_ZONE_VALID(zone));
return (zone->journalsize);
@@ -3534,7 +3534,7 @@ message_count(dns_message_t *msg, dns_section_t section, dns_rdatatype_t type)
name = NULL;
dns_message_currentname(msg, section, &name);
- for (curr = ISC_LIST_TAIL(name->list); curr != NULL;
+ for (curr = ISC_LIST_TAIL(name->list); curr != NULL;
curr = ISC_LIST_PREV(curr, link)) {
if (curr->type == type)
count++;
@@ -3648,7 +3648,7 @@ notify_done(isc_task_t *task, isc_event_t *event) {
const char me[] = "notify_done";
dns_notify_t *notify;
dns_zone_t *zone = NULL;
-
+
UNUSED(task);
notify = event->ev_arg;
@@ -3751,7 +3751,7 @@ dns_zone_equal(dns_zone_t *oldzone, dns_zone_t *newzone) {
isc_result_t
dns_zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
isc_result_t result;
-
+
REQUIRE(DNS_ZONE_VALID(zone));
LOCK(&zone->lock);
result = zone_replacedb(zone, db, dump);
@@ -3770,7 +3770,7 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
dns_db_currentversion(db, &ver);
/*
- * The initial version of a slave zone is always dumped;
+ * The initial version of a slave zone is always dumped;
* subsequent versions may be journalled instead if this
* is enabled in the configuration.
*/
@@ -3815,13 +3815,13 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL,
DNS_LOGMODULE_ZONE, ISC_LOG_DEBUG(3),
"replacing zone database");
-
+
if (zone->db != NULL)
dns_db_detach(&zone->db);
dns_db_attach(db, &zone->db);
zone->flags |= DNS_ZONEFLG_LOADED|DNS_ZONEFLG_NEEDNOTIFY;
return (ISC_R_SUCCESS);
-
+
fail:
dns_db_closeversion(db, &ver, ISC_FALSE);
return (result);
@@ -3906,7 +3906,7 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) {
zone->refreshtime = now + zone->refresh;
zone->expiretime = now + zone->expire;
}
-
+
break;
default:
@@ -3936,13 +3936,13 @@ zone_xfrdone(dns_zone_t *zone, isc_result_t result) {
* This transfer finishing freed up a transfer quota slot.
* Let any zones waiting for quota have it.
*/
- RWLOCK(&zone->zmgr->rwlock, isc_rwlocktype_write);
+ RWLOCK(&zone->zmgr->rwlock, isc_rwlocktype_write);
ISC_LIST_UNLINK(zone->zmgr->xfrin_in_progress, zone, statelink);
zone->statelist = NULL;
if (!DNS_ZONE_FLAG(zone, DNS_ZONEFLG_EXITING))
zmgr_resume_xfrs(zone->zmgr);
RWUNLOCK(&zone->zmgr->rwlock, isc_rwlocktype_write);
-
+
/*
* Retry with a different server if necessary.
*/
@@ -3967,14 +3967,14 @@ dns_zone_setssutable(dns_zone_t *zone, dns_ssutable_t *table) {
void
dns_zone_setsigvalidityinterval(dns_zone_t *zone, isc_uint32_t interval) {
- REQUIRE(DNS_ZONE_VALID(zone));
+ REQUIRE(DNS_ZONE_VALID(zone));
zone->sigvalidityinterval = interval;
}
isc_uint32_t
dns_zone_getsigvalidityinterval(dns_zone_t *zone) {
- REQUIRE(DNS_ZONE_VALID(zone));
+ REQUIRE(DNS_ZONE_VALID(zone));
return (zone->sigvalidityinterval);
}
@@ -3989,11 +3989,11 @@ queue_xfrin(dns_zone_t *zone) {
INSIST(zone->statelist == NULL);
- RWLOCK(&zmgr->rwlock, isc_rwlocktype_write);
+ RWLOCK(&zmgr->rwlock, isc_rwlocktype_write);
ISC_LIST_APPEND(zmgr->waiting_for_xfrin, zone, statelink);
zone->statelist = &zmgr->waiting_for_xfrin;
result = zmgr_start_xfrin_ifquota(zmgr, zone);
- RWUNLOCK(&zmgr->rwlock, isc_rwlocktype_write);
+ RWUNLOCK(&zmgr->rwlock, isc_rwlocktype_write);
if (result == ISC_R_QUOTA) {
zone_log(zone, me, ISC_LOG_DEBUG(1),
@@ -4023,27 +4023,27 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
isc_netaddr_t masterip;
isc_boolean_t gotkey = ISC_FALSE;
dns_view_t *view = NULL;
-
+
UNUSED(task);
-
+
INSIST(task == zone->task);
if (DNS_ZONE_FLAG(zone, DNS_ZONEFLG_EXITING)) {
result = ISC_R_CANCELED;
goto cleanup;
}
-
+
isc_sockaddr_format(&zone->masteraddr, mastertext, sizeof(mastertext));
-
+
isc_netaddr_fromsockaddr(&masterip, &zone->masteraddr);
(void)dns_peerlist_peerbyaddr(zone->view->peers,
&masterip, &peer);
-
+
/*
* Decide whether we should request IXFR or AXFR.
*/
if (zone->db == NULL) {
- zone_log(zone, me, ISC_LOG_DEBUG(3),
+ zone_log(zone, me, ISC_LOG_DEBUG(3),
"no database exists yet, requesting AXFR of "
"initial version from %s", mastertext);
xfrtype = dns_rdatatype_axfr;
@@ -4052,7 +4052,7 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
if (peer != NULL &&
dns_peer_getrequestixfr(peer, &use_ixfr) ==
ISC_R_SUCCESS) {
- ; /* Using peer setting */
+ ; /* Using peer setting */
} else {
use_ixfr = zone->view->requestixfr;
}
@@ -4060,7 +4060,7 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
zone_log(zone, me, ISC_LOG_DEBUG(3),
"IXFR disabled, requesting AXFR from %s",
mastertext);
- xfrtype = dns_rdatatype_axfr;
+ xfrtype = dns_rdatatype_axfr;
} else {
zone_log(zone, me, ISC_LOG_DEBUG(3),
"requesting IXFR from %s",
@@ -4121,7 +4121,7 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
if (tsigkey != NULL)
dns_tsigkey_detach(&tsigkey);
-
+
isc_event_free(&event);
dns_zone_detach(&zone); /* XXXAG */
@@ -4130,7 +4130,7 @@ got_transfer_quota(isc_task_t *task, isc_event_t *event) {
}
/***
- *** Zone manager.
+ *** Zone manager.
***/
isc_result_t
@@ -4176,9 +4176,9 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
zmgr->transfersin = 10;
zmgr->transfersperns = 2;
-
+
/* Create the zone task pool. */
- result = isc_taskpool_create(taskmgr, mctx,
+ result = isc_taskpool_create(taskmgr, mctx,
8 /* XXX */, 0, &zmgr->zonetasks);
if (result != ISC_R_SUCCESS)
goto free_conflock;
@@ -4205,7 +4205,7 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
free_task:
isc_task_detach(&zmgr->task);
free_taskpool:
- isc_taskpool_destroy(&zmgr->zonetasks);
+ isc_taskpool_destroy(&zmgr->zonetasks);
free_conflock:
isc_rwlock_destroy(&zmgr->conflock);
free_rwlock:
@@ -4219,7 +4219,7 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
isc_result_t
dns_zonemgr_managezone(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
isc_result_t result;
-
+
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE(DNS_ZONEMGR_VALID(zmgr));
@@ -4256,7 +4256,7 @@ dns_zonemgr_managezone(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
cleanup_task:
isc_task_detach(&zone->task);
-
+
unlock:
UNLOCK(&zone->lock);
RWUNLOCK(&zmgr->rwlock, isc_rwlocktype_write);
@@ -4266,7 +4266,7 @@ dns_zonemgr_managezone(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
void
dns_zonemgr_releasezone(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
isc_boolean_t free_now = ISC_FALSE;
-
+
REQUIRE(DNS_ZONE_VALID(zone));
REQUIRE(DNS_ZONEMGR_VALID(zmgr));
REQUIRE(zone->zmgr == zmgr);
@@ -4279,7 +4279,7 @@ dns_zonemgr_releasezone(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
zmgr->refs--;
if (zmgr->refs == 0)
free_now = ISC_TRUE;
-
+
UNLOCK(&zone->lock);
RWUNLOCK(&zmgr->rwlock, isc_rwlocktype_write);
@@ -4305,7 +4305,7 @@ void
dns_zonemgr_detach(dns_zonemgr_t **zmgrp) {
dns_zonemgr_t *zmgr;
isc_boolean_t free_now = ISC_FALSE;
-
+
REQUIRE(zmgrp != NULL);
zmgr = *zmgrp;
REQUIRE(DNS_ZONEMGR_VALID(zmgr));
@@ -4420,7 +4420,7 @@ static void
zmgr_resume_xfrs(dns_zonemgr_t *zmgr) {
static char me[] = "zmgr_resume_xfrs";
dns_zone_t *zone;
-
+
for (zone = ISC_LIST_HEAD(zmgr->waiting_for_xfrin);
zone != NULL;
zone = ISC_LIST_NEXT(zone, statelink))
@@ -4434,21 +4434,21 @@ zmgr_resume_xfrs(dns_zonemgr_t *zmgr) {
break;
} else if (result == ISC_R_QUOTA) {
/*
- * Not enough quota. This is probably the per-server
- * quota, because we only get called when a unit of
- * global quota has just been freed. Try the next
+ * Not enough quota. This is probably the per-server
+ * quota, because we only get called when a unit of
+ * global quota has just been freed. Try the next
* zone, it may succeed if it uses another master.
*/
continue;
} else {
- zone_log(zone, me, ISC_LOG_DEBUG(3),
+ zone_log(zone, me, ISC_LOG_DEBUG(3),
"starting zone transfer: %s",
isc_result_totext(result));
break;
}
}
}
-
+
/*
* Try to start an incoming zone transfer for 'zone', quota permitting.
*
@@ -4489,7 +4489,7 @@ zmgr_start_xfrin_ifquota(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
if (peer != NULL)
(void)dns_peer_gettransfers(peer, &maxtransfersperns);
- /*
+ /*
* Count the total number of transfers that are in progress,
* and the number of transfers in progress from this master.
* We linearly scan a list of all transfers; if this turns
@@ -4541,7 +4541,7 @@ zmgr_start_xfrin_ifquota(dns_zonemgr_t *zmgr, dns_zone_t *zone) {
zone->erefs++;
isc_task_send(zone->task, &e);
UNLOCK(&zone->lock);
-
+
return (ISC_R_SUCCESS);
}
@@ -4554,7 +4554,7 @@ dns_zonemgr_dbdestroyed(isc_task_t *task, isc_event_t *event) {
UNUSED(task);
isc_event_free(&event);
-
+
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL,
DNS_LOGMODULE_ZONE, ISC_LOG_INFO,
"database (%p) destroyed", (void*) db);
diff --git a/lib/dns/zoneconf.c b/lib/dns/zoneconf.c
index 9353903cf7..237bad5d2f 100644
--- a/lib/dns/zoneconf.c
+++ b/lib/dns/zoneconf.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zoneconf.c,v 1.50 2000/07/31 19:36:48 explorer Exp $ */
+/* $Id: zoneconf.c,v 1.51 2000/08/01 01:23:10 tale Exp $ */
#include
@@ -199,7 +199,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
} else
RETERR(dns_zone_setalsonotify(zone, NULL, 0));
-
+
RETERR(configure_zone_acl(czone, cctx, cview, ac, zone,
dns_c_zone_getallowtransfer,
dns_c_view_gettransferacl,
@@ -219,10 +219,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrout(zone, uintval);
result = dns_c_zone_getmaxtransidleout(czone, &uintval);
- if (result != ISC_R_SUCCESS && cview != NULL)
+ if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_getmaxtransferidleout(cview,
&uintval);
- if (result != ISC_R_SUCCESS)
+ if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidleout(cctx,
&uintval);
if (result != ISC_R_SUCCESS)
@@ -280,13 +280,13 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
#else /* NOMINUM_PUBLIC */
result = dns_zone_setmasters(zone, iplist->ips,
iplist->nextidx);
-#endif /* NOMINUM_PUBLIC */
+#endif /* NOMINUM_PUBLIC */
else
result = dns_zone_setmasters(zone, NULL, 0);
RETERR(result);
result = dns_c_zone_getmaxtranstimein(czone, &uintval);
- if (result != ISC_R_SUCCESS)
+ if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransfertimein(cctx,
&uintval);
if (result != ISC_R_SUCCESS)
@@ -294,7 +294,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setmaxxfrin(zone, uintval);
result = dns_c_zone_getmaxtransidlein(czone, &uintval);
- if (result != ISC_R_SUCCESS)
+ if (result != ISC_R_SUCCESS)
result = dns_c_ctx_getmaxtransferidlein(cctx,
&uintval);
if (result != ISC_R_SUCCESS)
@@ -312,10 +312,10 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setxfrsource4(zone, &sockaddr);
result = dns_c_zone_gettransfersourcev6(czone, &sockaddr);
- if (result != ISC_R_SUCCESS && cview != NULL)
+ if (result != ISC_R_SUCCESS && cview != NULL)
result = dns_c_view_gettransfersourcev6(cview,
&sockaddr);
- if (result != ISC_R_SUCCESS)
+ if (result != ISC_R_SUCCESS)
result = dns_c_ctx_gettransfersourcev6(cctx,
&sockaddr);
if (result != ISC_R_SUCCESS)
@@ -323,7 +323,7 @@ dns_zone_configure(dns_c_ctx_t *cctx, dns_c_view_t *cview,
dns_zone_setxfrsource6(zone, &sockaddr);
break;
-
+
default:
break;
}
@@ -348,12 +348,12 @@ dns_zone_reusable(dns_zone_t *zone, dns_c_zone_t *czone) {
return (ISC_TRUE);
}
-
+
isc_result_t
dns_zonemgr_configure(dns_c_ctx_t *cctx, dns_zonemgr_t *zmgr) {
isc_uint32_t val;
isc_result_t result;
-
+
result = dns_c_ctx_gettransfersin(cctx, &val);
if (result != ISC_R_SUCCESS)
val = 10;
diff --git a/lib/dns/zt.c b/lib/dns/zt.c
index cc02aa2a3d..1821520674 100644
--- a/lib/dns/zt.c
+++ b/lib/dns/zt.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zt.c,v 1.23 2000/07/27 09:46:54 tale Exp $ */
+/* $Id: zt.c,v 1.24 2000/08/01 01:23:12 tale Exp $ */
#include
@@ -181,7 +181,7 @@ dns_zt_detach(dns_zt_t **ztp) {
zt = *ztp;
RWLOCK(&zt->rwlock, isc_rwlocktype_write);
-
+
INSIST(zt->references > 0);
zt->references--;
if (zt->references == 0)
@@ -260,7 +260,7 @@ dns_zt_apply(dns_zt_t *zt, isc_boolean_t stop,
/*
* The tree is empty.
*/
- result = ISC_R_NOMORE;
+ result = ISC_R_NOMORE;
}
while (result == DNS_R_NEWORIGIN || result == ISC_R_SUCCESS) {
result = dns_rbtnodechain_current(&chain, NULL, NULL,
@@ -292,6 +292,6 @@ auto_detach(void *data, void *arg) {
dns_zone_t *zone = data;
UNUSED(arg);
-
+
dns_zone_detach(&zone);
}
diff --git a/lib/isc/Makefile.in b/lib/isc/Makefile.in
index 31d20b5530..dfc74eb435 100644
--- a/lib/isc/Makefile.in
+++ b/lib/isc/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.63 2000/07/27 09:50:37 tale Exp $
+# $Id: Makefile.in,v 1.64 2000/08/01 01:29:12 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/assertions.c b/lib/isc/assertions.c
index 73a64b145b..8011ca9d02 100644
--- a/lib/isc/assertions.c
+++ b/lib/isc/assertions.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: assertions.c,v 1.11 2000/07/27 09:50:38 tale Exp $ */
+/* $Id: assertions.c,v 1.12 2000/08/01 01:29:13 tale Exp $ */
#include
diff --git a/lib/isc/base64.c b/lib/isc/base64.c
index afd038387c..d595c171f3 100644
--- a/lib/isc/base64.c
+++ b/lib/isc/base64.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: base64.c,v 1.17 2000/07/27 09:50:40 tale Exp $ */
+/* $Id: base64.c,v 1.18 2000/08/01 01:29:14 tale Exp $ */
#include
@@ -106,7 +106,7 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length) {
char *s;
int n;
-
+
while (!seen_end && (length != 0)) {
if (length > 0)
RETERR(gettoken(lexer, &token, isc_tokentype_string,
@@ -182,7 +182,7 @@ isc_base64_decodestring(isc_mem_t *mctx, char *cstr, isc_buffer_t *target) {
if (result == ISC_R_SUCCESS) {
isopen = ISC_TRUE;
result = isc_base64_tobuffer(lex, target, -1);
- }
+ }
if (isopen)
(void)isc_lex_close(lex);
diff --git a/lib/isc/bitstring.c b/lib/isc/bitstring.c
index c221f6e3e5..4f6a609ded 100644
--- a/lib/isc/bitstring.c
+++ b/lib/isc/bitstring.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: bitstring.c,v 1.6 2000/07/27 09:50:41 tale Exp $ */
+/* $Id: bitstring.c,v 1.7 2000/08/01 01:29:15 tale Exp $ */
#include
@@ -102,7 +102,7 @@ isc_bitstring_copy(isc_bitstring_t *source, unsigned int sbitpos,
tbitpos = PADDED(target->size) - tbitpos - 1;
REQUIRE(tbitpos >= n - 1);
tbitpos -= n - 1;
- } else
+ } else
REQUIRE(tlast<= target->size);
if (tlast > target->length)
diff --git a/lib/isc/buffer.c b/lib/isc/buffer.c
index afac1c2d11..1c43589e67 100644
--- a/lib/isc/buffer.c
+++ b/lib/isc/buffer.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: buffer.c,v 1.33 2000/07/27 09:50:42 tale Exp $ */
+/* $Id: buffer.c,v 1.34 2000/08/01 01:29:16 tale Exp $ */
#include
@@ -46,7 +46,7 @@ isc__buffer_invalidate(isc_buffer_t *b) {
REQUIRE(ISC_BUFFER_VALID(b));
REQUIRE(!ISC_LINK_LINKED(b, link));
REQUIRE(b->mctx == NULL);
-
+
ISC__BUFFER_INVALIDATE(b);
}
@@ -355,7 +355,7 @@ isc_buffer_copyregion(isc_buffer_t *b, isc_region_t *r) {
REQUIRE(r != NULL);
/*
- * XXXDCL
+ * XXXDCL
*/
base = isc_buffer_used(b);
available = isc_buffer_availablelength(b);
diff --git a/lib/isc/bufferlist.c b/lib/isc/bufferlist.c
index 979a049d60..73b91f30c0 100644
--- a/lib/isc/bufferlist.c
+++ b/lib/isc/bufferlist.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: bufferlist.c,v 1.10 2000/07/27 09:50:43 tale Exp $ */
+/* $Id: bufferlist.c,v 1.11 2000/08/01 01:29:18 tale Exp $ */
#include
diff --git a/lib/isc/commandline.c b/lib/isc/commandline.c
index 2fec57268d..62bda7accc 100644
--- a/lib/isc/commandline.c
+++ b/lib/isc/commandline.c
@@ -1,10 +1,10 @@
/*
* Portions Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -48,7 +48,7 @@
* SUCH DAMAGE.
*/
-/* $Id: commandline.c,v 1.9 2000/07/27 09:50:44 tale Exp $ */
+/* $Id: commandline.c,v 1.10 2000/08/01 01:29:19 tale Exp $ */
/*
* This file was adapted from the NetBSD project's source tree, RCS ID:
diff --git a/lib/isc/error.c b/lib/isc/error.c
index e3cb36aee9..3f58a57c50 100644
--- a/lib/isc/error.c
+++ b/lib/isc/error.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: error.c,v 1.12 2000/07/27 09:50:45 tale Exp $ */
+/* $Id: error.c,v 1.13 2000/08/01 01:29:20 tale Exp $ */
#include
diff --git a/lib/isc/event.c b/lib/isc/event.c
index d1a5d13bcd..b4420d2904 100644
--- a/lib/isc/event.c
+++ b/lib/isc/event.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: event.c,v 1.12 2000/07/27 09:50:46 tale Exp $ */
+/* $Id: event.c,v 1.13 2000/08/01 01:29:21 tale Exp $ */
/*
* Principal Author: Bob Halley
@@ -77,7 +77,7 @@ isc_event_allocate(isc_mem_t *mctx, void *sender, isc_eventtype_t type,
void
isc_event_free(isc_event_t **eventp) {
isc_event_t *event;
-
+
REQUIRE(eventp != NULL);
event = *eventp;
REQUIRE(event != NULL);
diff --git a/lib/isc/fsaccess.c b/lib/isc/fsaccess.c
index 440613858a..a713d87966 100644
--- a/lib/isc/fsaccess.c
+++ b/lib/isc/fsaccess.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: fsaccess.c,v 1.3 2000/07/27 09:50:48 tale Exp $ */
+/* $Id: fsaccess.c,v 1.4 2000/08/01 01:29:22 tale Exp $ */
/*
* This file contains the OS-independent functionality of the API.
diff --git a/lib/isc/heap.c b/lib/isc/heap.c
index 39c3c41f5e..9c724f3d6d 100644
--- a/lib/isc/heap.c
+++ b/lib/isc/heap.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: heap.c,v 1.25 2000/07/27 09:50:49 tale Exp $ */
+/* $Id: heap.c,v 1.26 2000/08/01 01:29:23 tale Exp $ */
/*
* Heap implementation of priority queues adapted from the following:
@@ -94,7 +94,7 @@ isc_heap_create(isc_mem_t *mctx, isc_heapcompare_t compare,
heap->index = index;
*heapp = heap;
-
+
return (ISC_R_SUCCESS);
}
@@ -128,7 +128,7 @@ resize(isc_heap_t *heap) {
return (ISC_FALSE);
if (heap->array != NULL) {
memcpy(new_array, heap->array, heap->size * sizeof (void *));
- isc_mem_put(heap->mctx, heap->array,
+ isc_mem_put(heap->mctx, heap->array,
heap->size * sizeof (void *));
}
heap->size = new_size;
@@ -141,7 +141,7 @@ static void
float_up(isc_heap_t *heap, unsigned int i, void *elt) {
unsigned int p;
- for (p = heap_parent(i);
+ for (p = heap_parent(i);
i > 1 && heap->compare(elt, heap->array[p]);
i = p, p = heap_parent(i)) {
heap->array[i] = heap->array[p];
@@ -189,7 +189,7 @@ isc_heap_insert(isc_heap_t *heap, void *elt) {
i = ++heap->last;
if (heap->last >= heap->size && !resize(heap))
return (ISC_R_NOMEMORY);
-
+
float_up(heap, i, elt);
return (ISC_R_SUCCESS);
@@ -220,7 +220,7 @@ void
isc_heap_increased(isc_heap_t *heap, unsigned int i) {
REQUIRE(VALID_HEAP(heap));
REQUIRE(i >= 1 && i <= heap->last);
-
+
float_up(heap, i, heap->array[i]);
}
@@ -228,7 +228,7 @@ void
isc_heap_decreased(isc_heap_t *heap, unsigned int i) {
REQUIRE(VALID_HEAP(heap));
REQUIRE(i >= 1 && i <= heap->last);
-
+
sink_down(heap, i, heap->array[i]);
}
diff --git a/lib/isc/hmacmd5.c b/lib/isc/hmacmd5.c
index 78cebb5936..3341ba4fb0 100644
--- a/lib/isc/hmacmd5.c
+++ b/lib/isc/hmacmd5.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: hmacmd5.c,v 1.3 2000/07/27 09:50:50 tale Exp $ */
+/* $Id: hmacmd5.c,v 1.4 2000/08/01 01:29:24 tale Exp $ */
/*
* This code implements the HMAC-MD5 keyed hash algorithm
diff --git a/lib/isc/include/Makefile.in b/lib/isc/include/Makefile.in
index 4e5b2f3696..ccab7ff158 100644
--- a/lib/isc/include/Makefile.in
+++ b/lib/isc/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.8 2000/07/27 09:51:22 tale Exp $
+# $Id: Makefile.in,v 1.9 2000/08/01 01:29:56 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/include/isc/Makefile.in b/lib/isc/include/isc/Makefile.in
index f61fd946e9..1cb186beca 100644
--- a/lib/isc/include/isc/Makefile.in
+++ b/lib/isc/include/isc/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.41 2000/07/27 09:51:23 tale Exp $
+# $Id: Makefile.in,v 1.42 2000/08/01 01:29:57 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/include/isc/assertions.h b/lib/isc/include/isc/assertions.h
index 7ab563ef09..fbe31be275 100644
--- a/lib/isc/include/isc/assertions.h
+++ b/lib/isc/include/isc/assertions.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -16,7 +16,7 @@
*/
/*
- * $Id: assertions.h,v 1.12 2000/07/27 09:51:24 tale Exp $
+ * $Id: assertions.h,v 1.13 2000/08/01 01:29:58 tale Exp $
*/
#ifndef ISC_ASSERTIONS_H
diff --git a/lib/isc/include/isc/base64.h b/lib/isc/include/isc/base64.h
index 18973c01cb..b8b7a0a061 100644
--- a/lib/isc/include/isc/base64.h
+++ b/lib/isc/include/isc/base64.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: base64.h,v 1.11 2000/07/27 09:51:25 tale Exp $ */
+/* $Id: base64.h,v 1.12 2000/08/01 01:29:59 tale Exp $ */
#ifndef ISC_BASE64_H
#define ISC_BASE64_H 1
@@ -36,7 +36,7 @@ isc_base64_totext(isc_region_t *source, int wordlength,
* Convert data into base64 encoded text.
*
* Notes:
- * The base64 encoded text in 'target' will be divided into
+ * The base64 encoded text in 'target' will be divided into
* words of at most 'wordlength' characters, separated by
* the 'wordbreak' string. No parentheses will surround
* the text.
@@ -85,7 +85,7 @@ isc_base64_tobuffer(isc_lex_t *lexer, isc_buffer_t *target, int length);
* 'length' is an integer
*
* Ensures:
- * target will contain the data represented by the base64 encoded
+ * target will contain the data represented by the base64 encoded
* string parsed by the lexer. No more than length bytes will be read,
* if length is positive. The 'used' pointer in target will be
* advanced as necessary.
diff --git a/lib/isc/include/isc/bitstring.h b/lib/isc/include/isc/bitstring.h
index cc215dca35..ed798a7e62 100644
--- a/lib/isc/include/isc/bitstring.h
+++ b/lib/isc/include/isc/bitstring.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: bitstring.h,v 1.4 2000/07/27 09:51:26 tale Exp $ */
+/* $Id: bitstring.h,v 1.5 2000/08/01 01:30:00 tale Exp $ */
#ifndef ISC_BITSTRING_H
#define ISC_BITSTRING_H 1
diff --git a/lib/isc/include/isc/boolean.h b/lib/isc/include/isc/boolean.h
index 9e09395a6e..4d53ff9b88 100644
--- a/lib/isc/include/isc/boolean.h
+++ b/lib/isc/include/isc/boolean.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: boolean.h,v 1.10 2000/07/27 09:51:27 tale Exp $ */
+/* $Id: boolean.h,v 1.11 2000/08/01 01:30:01 tale Exp $ */
#ifndef ISC_BOOLEAN_H
#define ISC_BOOLEAN_H 1
diff --git a/lib/isc/include/isc/buffer.h b/lib/isc/include/isc/buffer.h
index 77ce1a05c0..963e74d56e 100644
--- a/lib/isc/include/isc/buffer.h
+++ b/lib/isc/include/isc/buffer.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: buffer.h,v 1.34 2000/07/27 09:51:28 tale Exp $ */
+/* $Id: buffer.h,v 1.35 2000/08/01 01:30:02 tale Exp $ */
#ifndef ISC_BUFFER_H
#define ISC_BUFFER_H 1
@@ -237,7 +237,7 @@ isc__buffer_invalidate(isc_buffer_t *b);
* If assertion checking is enabled, future attempts to use 'b' without
* calling isc_buffer_init() on it will cause an assertion failure.
*/
-
+
void
isc__buffer_region(isc_buffer_t *b, isc_region_t *r);
/*
diff --git a/lib/isc/include/isc/bufferlist.h b/lib/isc/include/isc/bufferlist.h
index 1e3de3a557..92f8f2ae2c 100644
--- a/lib/isc/include/isc/bufferlist.h
+++ b/lib/isc/include/isc/bufferlist.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: bufferlist.h,v 1.8 2000/07/27 09:51:30 tale Exp $ */
+/* $Id: bufferlist.h,v 1.9 2000/08/01 01:30:04 tale Exp $ */
#ifndef ISC_BUFFERLIST_H
#define ISC_BUFFERLIST_H 1
diff --git a/lib/isc/include/isc/commandline.h b/lib/isc/include/isc/commandline.h
index e15ad658b8..4171ff8ef0 100644
--- a/lib/isc/include/isc/commandline.h
+++ b/lib/isc/include/isc/commandline.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: commandline.h,v 1.5 2000/07/27 09:51:31 tale Exp $ */
+/* $Id: commandline.h,v 1.6 2000/08/01 01:30:05 tale Exp $ */
#ifndef ISC_COMMANDLINE_H
#define ISC_COMMANDLINE_H 1
diff --git a/lib/isc/include/isc/entropy.h b/lib/isc/include/isc/entropy.h
index 2542a61e1e..375bb90495 100644
--- a/lib/isc/include/isc/entropy.h
+++ b/lib/isc/include/isc/entropy.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: entropy.h,v 1.20 2000/07/27 09:51:32 tale Exp $ */
+/* $Id: entropy.h,v 1.21 2000/08/01 01:30:06 tale Exp $ */
#ifndef ISC_ENTROPY_H
#define ISC_ENTROPY_H 1
@@ -27,7 +27,7 @@
/*
* Entropy
*
- * The entropy API
+ * The entropy API
*
* MP:
* The entropy object is locked internally. All callbacks into
diff --git a/lib/isc/include/isc/error.h b/lib/isc/include/isc/error.h
index 9b7c8abc37..3eb2840051 100644
--- a/lib/isc/include/isc/error.h
+++ b/lib/isc/include/isc/error.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: error.h,v 1.11 2000/07/27 09:51:33 tale Exp $ */
+/* $Id: error.h,v 1.12 2000/08/01 01:30:07 tale Exp $ */
#ifndef ISC_ERROR_H
#define ISC_ERROR_H 1
diff --git a/lib/isc/include/isc/event.h b/lib/isc/include/isc/event.h
index 4bffeaf640..274f6de723 100644
--- a/lib/isc/include/isc/event.h
+++ b/lib/isc/include/isc/event.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: event.h,v 1.21 2000/07/27 09:51:34 tale Exp $ */
+/* $Id: event.h,v 1.22 2000/08/01 01:30:08 tale Exp $ */
#ifndef ISC_EVENT_H
#define ISC_EVENT_H 1
@@ -52,7 +52,7 @@ typedef void (*isc_eventdestructor_t)(isc_event_t *);
* The ISC_EVENTATTR_CANCELED attribute is intended to indicate
* that an event is delivered as a result of a canceled operation
* rather than successful completion, by mutual agreement
- * between the sender and receiver. It is not set or used by
+ * between the sender and receiver. It is not set or used by
* the task system.
*/
#define ISC_EVENTATTR_CANCELED 0x00000002
@@ -70,11 +70,11 @@ do { \
(event)->ev_destroy_arg = (da); \
ISC_LINK_INIT((event), ev_link); \
} while (0)
-
+
/*
* This structure is public because "subclassing" it may be useful when
* defining new event types.
- */
+ */
struct isc_event {
ISC_EVENT_COMMON(struct isc_event);
};
diff --git a/lib/isc/include/isc/eventclass.h b/lib/isc/include/isc/eventclass.h
index ff9457c439..8d1ebad7bb 100644
--- a/lib/isc/include/isc/eventclass.h
+++ b/lib/isc/include/isc/eventclass.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: eventclass.h,v 1.10 2000/07/27 09:51:35 tale Exp $ */
+/* $Id: eventclass.h,v 1.11 2000/08/01 01:30:09 tale Exp $ */
#ifndef ISC_EVENTCLASS_H
#define ISC_EVENTCLASS_H 1
diff --git a/lib/isc/include/isc/file.h b/lib/isc/include/isc/file.h
index 85d24009e5..a2ea5c6ed9 100644
--- a/lib/isc/include/isc/file.h
+++ b/lib/isc/include/isc/file.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: file.h,v 1.8 2000/07/27 09:51:36 tale Exp $ */
+/* $Id: file.h,v 1.9 2000/08/01 01:30:10 tale Exp $ */
#ifndef ISC_FILE_H
#define ISC_FILE_H 1
@@ -60,7 +60,7 @@ isc_file_getmodtime(const char *file, isc_time_t *time);
* Hardware error interacting with the filesystem.
* ISC_R_UNEXPECTED
* Something totally unexpected happened.
- *
+ *
*/
isc_result_t
@@ -100,7 +100,7 @@ isc_result_t
isc_file_openunique(char *templet, FILE **fp);
/*
* Create and open a file with a unique name based on 'templet'.
- *
+ *
* Notes:
* 'template' is a reserved work in C++. If you want to complain
* about the spelling of 'templet', first look it up in the
diff --git a/lib/isc/include/isc/formatcheck.h b/lib/isc/include/isc/formatcheck.h
index 19795f6dbb..ffb8aa9dd8 100644
--- a/lib/isc/include/isc/formatcheck.h
+++ b/lib/isc/include/isc/formatcheck.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: formatcheck.h,v 1.4 2000/07/27 09:51:37 tale Exp $ */
+/* $Id: formatcheck.h,v 1.5 2000/08/01 01:30:11 tale Exp $ */
#ifndef ISC_FORMATCHECK_H
#define ISC_FORMATCHECK_H 1
diff --git a/lib/isc/include/isc/fsaccess.h b/lib/isc/include/isc/fsaccess.h
index 76e28f9ea1..16d383cfbe 100644
--- a/lib/isc/include/isc/fsaccess.h
+++ b/lib/isc/include/isc/fsaccess.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: fsaccess.h,v 1.5 2000/07/27 09:51:38 tale Exp $ */
+/* $Id: fsaccess.h,v 1.6 2000/08/01 01:30:12 tale Exp $ */
#ifndef ISC_FSACCESS_H
#define ISC_FSACCESS_H 1
@@ -38,7 +38,7 @@
* in BIND9, and so resolving how to handle the various incompatibilities has
* been a purely theoretical exercise with no operational experience to
* indicate how flawed the thinking may be.
- *
+ *
* Some of the more notable dumbing down of NT for this API includes:
*
* o Each of FILE_READ_DATA and FILE_READ_EA are set with ISC_FSACCESS_READ.
@@ -92,7 +92,7 @@
*
* The Windows standard access right "DELETE" doesn't have a direct
* equivalent in the Unix world, so it isn't clear what should be done
- * with it.
+ * with it.
*
* The Unix sticky bit is not supported. While NT does have a concept
* of allowing users to create files in a directory but not delete or
diff --git a/lib/isc/include/isc/heap.h b/lib/isc/include/isc/heap.h
index e633be9de3..b7a8c60aea 100644
--- a/lib/isc/include/isc/heap.h
+++ b/lib/isc/include/isc/heap.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: heap.h,v 1.14 2000/07/27 09:51:39 tale Exp $ */
+/* $Id: heap.h,v 1.15 2000/08/01 01:30:14 tale Exp $ */
#ifndef ISC_HEAP_H
#define ISC_HEAP_H 1
@@ -25,7 +25,7 @@
ISC_LANG_BEGINDECLS
-/*
+/*
* The comparision function returns ISC_TRUE if the first argument has
* higher priority than the second argument, and ISC_FALSE otherwise.
*/
diff --git a/lib/isc/include/isc/hmacmd5.h b/lib/isc/include/isc/hmacmd5.h
index 7a175e33e3..31f1abfcc9 100644
--- a/lib/isc/include/isc/hmacmd5.h
+++ b/lib/isc/include/isc/hmacmd5.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: hmacmd5.h,v 1.2 2000/07/27 09:51:40 tale Exp $ */
+/* $Id: hmacmd5.h,v 1.3 2000/08/01 01:30:15 tale Exp $ */
/*
* This is the header file for the HMAC-MD5 keyed hash algorithm
diff --git a/lib/isc/include/isc/interfaceiter.h b/lib/isc/include/isc/interfaceiter.h
index ebd83efac3..a09835f1ba 100644
--- a/lib/isc/include/isc/interfaceiter.h
+++ b/lib/isc/include/isc/interfaceiter.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: interfaceiter.h,v 1.8 2000/07/27 09:51:42 tale Exp $ */
+/* $Id: interfaceiter.h,v 1.9 2000/08/01 01:30:16 tale Exp $ */
#ifndef ISC_INTERFACEITER_H
#define ISC_INTERFACEITER_H 1
@@ -52,7 +52,7 @@
struct isc_interface {
char name[32]; /* Interface name, null-terminated. */
- unsigned int af; /* Address family. */
+ unsigned int af; /* Address family. */
isc_netaddr_t address; /* Local address. */
isc_netaddr_t netmask; /* Network mask. */
isc_netaddr_t dstaddress; /* Destination address
@@ -93,7 +93,7 @@ isc_interfaceiter_first(isc_interfaceiter_t *iter);
* ISC_R_SUCCESS Success.
* ISC_R_NOMORE There are no interfaces.
*/
-
+
isc_result_t
isc_interfaceiter_current(isc_interfaceiter_t *iter,
isc_interface_t *ifdata);
@@ -108,7 +108,7 @@ isc_interfaceiter_current(isc_interfaceiter_t *iter,
* Returns:
* ISC_R_SUCCESS Success.
*/
-
+
isc_result_t
isc_interfaceiter_next(isc_interfaceiter_t *iter);
/*
diff --git a/lib/isc/include/isc/ipv6.h b/lib/isc/include/isc/ipv6.h
index 09ff86b22e..65680c4764 100644
--- a/lib/isc/include/isc/ipv6.h
+++ b/lib/isc/include/isc/ipv6.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ipv6.h,v 1.15 2000/07/27 09:51:43 tale Exp $ */
+/* $Id: ipv6.h,v 1.16 2000/08/01 01:30:17 tale Exp $ */
#ifndef ISC_IPV6_H
#define ISC_IPV6_H 1
diff --git a/lib/isc/include/isc/lang.h b/lib/isc/include/isc/lang.h
index f90008f149..e35a9d795d 100644
--- a/lib/isc/include/isc/lang.h
+++ b/lib/isc/include/isc/lang.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lang.h,v 1.4 2000/07/27 09:51:44 tale Exp $ */
+/* $Id: lang.h,v 1.5 2000/08/01 01:30:18 tale Exp $ */
#ifndef ISC_LANG_H
#define ISC_LANG_H 1
diff --git a/lib/isc/include/isc/lex.h b/lib/isc/include/isc/lex.h
index a29ed1271b..7fe8ae7ce4 100644
--- a/lib/isc/include/isc/lex.h
+++ b/lib/isc/include/isc/lex.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lex.h,v 1.21 2000/07/27 09:51:45 tale Exp $ */
+/* $Id: lex.h,v 1.22 2000/08/01 01:30:19 tale Exp $ */
#ifndef ISC_LEX_H
#define ISC_LEX_H 1
@@ -209,7 +209,7 @@ isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials);
* whitespace, they delimit strings and numbers.
*
* Note:
- * Comment processing takes precedence over special character
+ * Comment processing takes precedence over special character
* recognition.
*
* Requires:
diff --git a/lib/isc/include/isc/lfsr.h b/lib/isc/include/isc/lfsr.h
index bbd243d3d3..9935929220 100644
--- a/lib/isc/include/isc/lfsr.h
+++ b/lib/isc/include/isc/lfsr.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lfsr.h,v 1.7 2000/07/27 09:51:46 tale Exp $ */
+/* $Id: lfsr.h,v 1.8 2000/08/01 01:30:20 tale Exp $ */
#ifndef ISC_LFSR_H
#define ISC_LFSR_H 1
diff --git a/lib/isc/include/isc/lib.h b/lib/isc/include/isc/lib.h
index d7821cfe8f..acf28c0b16 100644
--- a/lib/isc/include/isc/lib.h
+++ b/lib/isc/include/isc/lib.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lib.h,v 1.4 2000/07/27 09:51:47 tale Exp $ */
+/* $Id: lib.h,v 1.5 2000/08/01 01:30:21 tale Exp $ */
#ifndef ISC_LIB_H
#define ISC_LIB_H 1
diff --git a/lib/isc/include/isc/list.h b/lib/isc/include/isc/list.h
index e5a5c7d2ad..a97d655d96 100644
--- a/lib/isc/include/isc/list.h
+++ b/lib/isc/include/isc/list.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: list.h,v 1.12 2000/07/27 09:51:48 tale Exp $ */
+/* $Id: list.h,v 1.13 2000/08/01 01:30:22 tale Exp $ */
#ifndef ISC_LIST_H
#define ISC_LIST_H 1
diff --git a/lib/isc/include/isc/log.h b/lib/isc/include/isc/log.h
index 52c46a572c..d0d815a8f6 100644
--- a/lib/isc/include/isc/log.h
+++ b/lib/isc/include/isc/log.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.h,v 1.27 2000/07/27 09:51:49 tale Exp $ */
+/* $Id: log.h,v 1.28 2000/08/01 01:30:23 tale Exp $ */
#ifndef ISC_LOG_H
#define ISC_LOG_H 1
@@ -157,7 +157,7 @@ isc_log_create(isc_mem_t *mctx, isc_log_t **lctxp, isc_logconfig_t **lcfgp);
* Ensures:
* *lctxp will point to a valid logging context if all of the necessary
* memory was allocated, or NULL otherwise.
- * *lcfgp will point to a valid logging configuration if all of the
+ * *lcfgp will point to a valid logging configuration if all of the
* necessary memory was allocated, or NULL otherwise.
* On failure, no additional memory is allocated.
*
@@ -470,7 +470,7 @@ isc_log_usechannel(isc_logconfig_t *lcfg, const char *name,
*
* Requires:
* lcfg is a valid logging configuration.
- *
+ *
* category is NULL or has an id that is in the range of known ids.
*
* module is NULL or has an id that is in the range of known ids.
@@ -622,7 +622,7 @@ isc_log_getdebuglevel(isc_log_t *lctx);
*
* Requires:
* lctx is a valid logging context.
- *
+ *
* Ensures:
* The current logging debugging level is returned.
*/
@@ -784,7 +784,7 @@ isc_logcategory_t *
isc_log_categorybyname(isc_log_t *lctx, const char *name);
/*
* Find a category by its name.
- *
+ *
* Notes:
* The string name of a category is not required to be unique.
*
@@ -802,7 +802,7 @@ isc_logmodule_t *
isc_log_modulebyname(isc_log_t *lctx, const char *name);
/*
* Find a module by its name.
- *
+ *
* Notes:
* The string name of a module is not required to be unique.
*
diff --git a/lib/isc/include/isc/magic.h b/lib/isc/include/isc/magic.h
index 4c11b36416..3405373d7c 100644
--- a/lib/isc/include/isc/magic.h
+++ b/lib/isc/include/isc/magic.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: magic.h,v 1.9 2000/07/27 09:51:50 tale Exp $ */
+/* $Id: magic.h,v 1.10 2000/08/01 01:30:25 tale Exp $ */
#ifndef ISC_MAGIC_H
#define ISC_MAGIC_H 1
diff --git a/lib/isc/include/isc/md5.h b/lib/isc/include/isc/md5.h
index 34b1730376..e2f5f527ba 100644
--- a/lib/isc/include/isc/md5.h
+++ b/lib/isc/include/isc/md5.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: md5.h,v 1.6 2000/07/27 09:51:51 tale Exp $ */
+/* $Id: md5.h,v 1.7 2000/08/01 01:30:26 tale Exp $ */
/*
* This is the header file for the MD5 message-digest algorithm.
diff --git a/lib/isc/include/isc/mem.h b/lib/isc/include/isc/mem.h
index 6498e2f30e..5e1d77fe3b 100644
--- a/lib/isc/include/isc/mem.h
+++ b/lib/isc/include/isc/mem.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mem.h,v 1.39 2000/07/27 09:51:53 tale Exp $ */
+/* $Id: mem.h,v 1.40 2000/08/01 01:30:27 tale Exp $ */
#ifndef ISC_MEM_H
#define ISC_MEM_H 1
diff --git a/lib/isc/include/isc/msgcat.h b/lib/isc/include/isc/msgcat.h
index 8b378828e2..cd7cbed6dd 100644
--- a/lib/isc/include/isc/msgcat.h
+++ b/lib/isc/include/isc/msgcat.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: msgcat.h,v 1.6 2000/07/27 09:51:54 tale Exp $ */
+/* $Id: msgcat.h,v 1.7 2000/08/01 01:30:28 tale Exp $ */
#ifndef ISC_MSGCAT_H
#define ISC_MSGCAT_H 1
diff --git a/lib/isc/include/isc/mutexblock.h b/lib/isc/include/isc/mutexblock.h
index 5ade63a2f2..3931d3cf33 100644
--- a/lib/isc/include/isc/mutexblock.h
+++ b/lib/isc/include/isc/mutexblock.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mutexblock.h,v 1.8 2000/07/27 09:51:55 tale Exp $ */
+/* $Id: mutexblock.h,v 1.9 2000/08/01 01:30:29 tale Exp $ */
#ifndef ISC_MUTEXBLOCK_H
#define ISC_MUTEXBLOCK_H 1
diff --git a/lib/isc/include/isc/netaddr.h b/lib/isc/include/isc/netaddr.h
index 185ca63085..9cc2d0e313 100644
--- a/lib/isc/include/isc/netaddr.h
+++ b/lib/isc/include/isc/netaddr.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: netaddr.h,v 1.14 2000/07/27 09:51:56 tale Exp $ */
+/* $Id: netaddr.h,v 1.15 2000/08/01 01:30:30 tale Exp $ */
#ifndef ISC_NETADDR_H
#define ISC_NETADDR_H 1
@@ -63,7 +63,7 @@ isc_result_t
isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target);
/*
* Append a text representation of 'sockaddr' to the buffer 'target'.
- * The text is NOT null terminated. Handles IPv4 and IPv6 addresses.
+ * The text is NOT null terminated. Handles IPv4 and IPv6 addresses.
*
* Returns:
* ISC_R_SUCCESS
diff --git a/lib/isc/include/isc/ondestroy.h b/lib/isc/include/isc/ondestroy.h
index 595c89628a..30d867a48b 100644
--- a/lib/isc/include/isc/ondestroy.h
+++ b/lib/isc/include/isc/ondestroy.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ondestroy.h,v 1.5 2000/07/27 09:51:57 tale Exp $ */
+/* $Id: ondestroy.h,v 1.6 2000/08/01 01:30:31 tale Exp $ */
#ifndef ISC_ONDESTROY_H
#define ISC_ONDESTROY_H 1
@@ -30,7 +30,7 @@ ISC_LANG_BEGINDECLS
*
* Any class ``X'' of objects that wants to send out notifications
* on its destruction should declare a field of type isc_ondestroy_t
- * (call it 'ondest').
+ * (call it 'ondest').
*
* typedef struct {
* ...
@@ -41,14 +41,14 @@ ISC_LANG_BEGINDECLS
* When an object ``A'' of type X is created
* it must initialize the field ondest with a call to
*
- * isc_ondestroy_init(&A->ondest).
+ * isc_ondestroy_init(&A->ondest).
*
* X should also provide a registration function for third-party
* objects to call to register their interest in being told about
* the destruction of a particular instance of X.
*
* isc_result_t
- * X_ondestroy(X *instance, isc_task_t *task,
+ * X_ondestroy(X *instance, isc_task_t *task,
* isc_event_t **eventp) {
* return(isc_ondestroy_register(&instance->ondest, task,eventp));
* }
diff --git a/lib/isc/include/isc/os.h b/lib/isc/include/isc/os.h
index c66c977139..45a86bbb33 100644
--- a/lib/isc/include/isc/os.h
+++ b/lib/isc/include/isc/os.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.h,v 1.3 2000/07/27 09:51:58 tale Exp $ */
+/* $Id: os.h,v 1.4 2000/08/01 01:30:32 tale Exp $ */
#ifndef ISC_OS_H
#define ISC_OS_H 1
diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in
index 0f012840f1..d99e229509 100644
--- a/lib/isc/include/isc/platform.h.in
+++ b/lib/isc/include/isc/platform.h.in
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: platform.h.in,v 1.13 2000/07/27 09:51:59 tale Exp $ */
+/* $Id: platform.h.in,v 1.14 2000/08/01 01:30:33 tale Exp $ */
#ifndef ISC_PLATFORM_H
#define ISC_PLATFORM_H 1
diff --git a/lib/isc/include/isc/print.h b/lib/isc/include/isc/print.h
index b52eef105a..1c6fb69747 100644
--- a/lib/isc/include/isc/print.h
+++ b/lib/isc/include/isc/print.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: print.h,v 1.9 2000/07/27 09:52:00 tale Exp $ */
+/* $Id: print.h,v 1.10 2000/08/01 01:30:34 tale Exp $ */
#ifndef ISC_PRINT_H
#define ISC_PRINT_H 1
diff --git a/lib/isc/include/isc/quota.h b/lib/isc/include/isc/quota.h
index 1d64e2637b..8e4e3c5b61 100644
--- a/lib/isc/include/isc/quota.h
+++ b/lib/isc/include/isc/quota.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: quota.h,v 1.6 2000/07/27 09:52:01 tale Exp $ */
+/* $Id: quota.h,v 1.7 2000/08/01 01:30:36 tale Exp $ */
#ifndef ISC_QUOTA_H
#define ISC_QUOTA_H 1
@@ -58,7 +58,7 @@ struct isc_quota {
isc_result_t
isc_quota_init(isc_quota_t *quota, int max);
/*
- * Initialize a quota object.
+ * Initialize a quota object.
*
* Returns:
* ISC_R_SUCCESS
diff --git a/lib/isc/include/isc/random.h b/lib/isc/include/isc/random.h
index 234aa543cd..65a318d170 100644
--- a/lib/isc/include/isc/random.h
+++ b/lib/isc/include/isc/random.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: random.h,v 1.6 2000/07/27 09:52:02 tale Exp $ */
+/* $Id: random.h,v 1.7 2000/08/01 01:30:37 tale Exp $ */
#ifndef ISC_RANDOM_H
#define ISC_RANDOM_H 1
diff --git a/lib/isc/include/isc/ratelimiter.h b/lib/isc/include/isc/ratelimiter.h
index 610648c84e..e366ced986 100644
--- a/lib/isc/include/isc/ratelimiter.h
+++ b/lib/isc/include/isc/ratelimiter.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ratelimiter.h,v 1.11 2000/07/27 09:52:04 tale Exp $ */
+/* $Id: ratelimiter.h,v 1.12 2000/08/01 01:30:38 tale Exp $ */
#ifndef ISC_RATELIMITER_H
#define ISC_RATELIMITER_H 1
@@ -26,7 +26,7 @@
/*
* A rate limiter is a mechanism for dispatching events at a limited
- * rate. This is intended to be used when sending zone maintenance
+ * rate. This is intended to be used when sending zone maintenance
* SOA queries, NOTIFY messages, etc.
*/
@@ -82,7 +82,7 @@ isc_ratelimiter_enqueue(isc_ratelimiter_t *rl, isc_task_t *task,
* Requires:
* An interval has been set by calling
* isc_ratelimiter_setinterval().
- *
+ *
* 'task' to be non NULL.
* '(*eventp)->ev_sender' to be NULL.
*/
diff --git a/lib/isc/include/isc/region.h b/lib/isc/include/isc/region.h
index d0757618e8..e28cb32d2d 100644
--- a/lib/isc/include/isc/region.h
+++ b/lib/isc/include/isc/region.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: region.h,v 1.13 2000/07/27 09:52:05 tale Exp $ */
+/* $Id: region.h,v 1.14 2000/08/01 01:30:39 tale Exp $ */
#ifndef ISC_REGION_H
#define ISC_REGION_H 1
diff --git a/lib/isc/include/isc/result.h b/lib/isc/include/isc/result.h
index f4db1de3f0..06c7f9f049 100644
--- a/lib/isc/include/isc/result.h
+++ b/lib/isc/include/isc/result.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.h,v 1.46 2000/07/27 09:52:06 tale Exp $ */
+/* $Id: result.h,v 1.47 2000/08/01 01:30:40 tale Exp $ */
#ifndef ISC_RESULT_H
#define ISC_RESULT_H 1
diff --git a/lib/isc/include/isc/resultclass.h b/lib/isc/include/isc/resultclass.h
index 1197341dc8..abe1ec4634 100644
--- a/lib/isc/include/isc/resultclass.h
+++ b/lib/isc/include/isc/resultclass.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: resultclass.h,v 1.8 2000/07/27 09:52:07 tale Exp $ */
+/* $Id: resultclass.h,v 1.9 2000/08/01 01:30:41 tale Exp $ */
#ifndef ISC_RESULTCLASS_H
#define ISC_RESULTCLASS_H 1
diff --git a/lib/isc/include/isc/rwlock.h b/lib/isc/include/isc/rwlock.h
index b677bde0f4..a304390150 100644
--- a/lib/isc/include/isc/rwlock.h
+++ b/lib/isc/include/isc/rwlock.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rwlock.h,v 1.12 2000/07/27 09:52:08 tale Exp $ */
+/* $Id: rwlock.h,v 1.13 2000/08/01 01:30:42 tale Exp $ */
#ifndef ISC_RWLOCK_H
#define ISC_RWLOCK_H 1
diff --git a/lib/isc/include/isc/serial.h b/lib/isc/include/isc/serial.h
index 1a8546aeef..0bcbfe42ee 100644
--- a/lib/isc/include/isc/serial.h
+++ b/lib/isc/include/isc/serial.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: serial.h,v 1.7 2000/07/27 09:52:09 tale Exp $ */
+/* $Id: serial.h,v 1.8 2000/08/01 01:30:43 tale Exp $ */
#ifndef ISC_SERIAL_H
#define ISC_SERIAL_H 1
diff --git a/lib/isc/include/isc/sha1.h b/lib/isc/include/isc/sha1.h
index 697a0b18f3..52068ba5da 100644
--- a/lib/isc/include/isc/sha1.h
+++ b/lib/isc/include/isc/sha1.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
#ifndef ISC_SHA1_H
#define ISC_SHA1_H 1
-/* $Id: sha1.h,v 1.6 2000/07/27 09:52:10 tale Exp $ */
+/* $Id: sha1.h,v 1.7 2000/08/01 01:30:44 tale Exp $ */
/* $NetBSD: sha1.h,v 1.2 1998/05/29 22:55:44 thorpej Exp $ */
@@ -35,10 +35,10 @@
typedef struct {
isc_uint32_t state[5];
- isc_uint32_t count[2];
+ isc_uint32_t count[2];
unsigned char buffer[64];
} isc_sha1_t;
-
+
ISC_LANG_BEGINDECLS
void
diff --git a/lib/isc/include/isc/sockaddr.h b/lib/isc/include/isc/sockaddr.h
index 6fa9b3664c..43b6c5bc21 100644
--- a/lib/isc/include/isc/sockaddr.h
+++ b/lib/isc/include/isc/sockaddr.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sockaddr.h,v 1.31 2000/07/27 09:52:11 tale Exp $ */
+/* $Id: sockaddr.h,v 1.32 2000/08/01 01:30:45 tale Exp $ */
#ifndef ISC_SOCKADDR_H
#define ISC_SOCKADDR_H 1
diff --git a/lib/isc/include/isc/socket.h b/lib/isc/include/isc/socket.h
index 669562d64c..e1c2068b84 100644
--- a/lib/isc/include/isc/socket.h
+++ b/lib/isc/include/isc/socket.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.h,v 1.48 2000/07/27 09:52:12 tale Exp $ */
+/* $Id: socket.h,v 1.49 2000/08/01 01:30:47 tale Exp $ */
#ifndef ISC_SOCKET_H
#define ISC_SOCKET_H 1
@@ -238,7 +238,7 @@ isc_socket_cancel(isc_socket_t *sock, isc_task_t *task,
* Cancel pending isc_socket_connect() call.
*/
-void
+void
isc_socket_shutdown(isc_socket_t *sock, unsigned int how);
/*
* Shutdown 'socket' according to 'how'.
@@ -278,7 +278,7 @@ isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp);
* *socketp is attached to socket.
*/
-void
+void
isc_socket_detach(isc_socket_t **socketp);
/*
* Detach *socketp from its socket.
@@ -630,7 +630,7 @@ isc_socketmgr_destroy(isc_socketmgr_t **managerp);
* Destroy a socket manager.
*
* Notes:
- *
+ *
* This routine blocks until there are no sockets left in the manager,
* so if the caller holds any socket references using the manager, it
* must detach them before calling isc_socketmgr_destroy() or it will
diff --git a/lib/isc/include/isc/stdio.h b/lib/isc/include/isc/stdio.h
index 6fa05288a7..d69290885b 100644
--- a/lib/isc/include/isc/stdio.h
+++ b/lib/isc/include/isc/stdio.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: stdio.h,v 1.4 2000/07/27 09:52:13 tale Exp $ */
+/* $Id: stdio.h,v 1.5 2000/08/01 01:30:48 tale Exp $ */
#ifndef ISC_STDIO_H
#define ISC_STDIO_H 1
diff --git a/lib/isc/include/isc/string.h b/lib/isc/include/isc/string.h
index 7227fd8d59..2bf687c527 100644
--- a/lib/isc/include/isc/string.h
+++ b/lib/isc/include/isc/string.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: string.h,v 1.7 2000/07/27 09:52:14 tale Exp $ */
+/* $Id: string.h,v 1.8 2000/08/01 01:30:49 tale Exp $ */
#ifndef ISC_STRING_H
#define ISC_STRING_H 1
@@ -32,10 +32,10 @@ isc_uint64_t
isc_string_touint64(char *source, char **endp, int base);
/*
* Convert the string pointed to by 'source' to isc_uint64_t.
- *
+ *
* On successful conversion 'endp' points to the first character
* after conversion is complete.
- *
+ *
* 'base': 0 or 2..36
*
* If base is 0 the base is computed from the string type.
@@ -45,7 +45,7 @@ isc_string_touint64(char *source, char **endp, int base);
char *
-isc_string_separate(char **stringp, const char *delim);
+isc_string_separate(char **stringp, const char *delim);
#ifdef ISC_PLATFORM_NEEDSTRSEP
#define strsep isc_string_separate
diff --git a/lib/isc/include/isc/symtab.h b/lib/isc/include/isc/symtab.h
index ce39722cb6..eab9b289a5 100644
--- a/lib/isc/include/isc/symtab.h
+++ b/lib/isc/include/isc/symtab.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: symtab.h,v 1.13 2000/07/27 09:52:16 tale Exp $ */
+/* $Id: symtab.h,v 1.14 2000/08/01 01:30:50 tale Exp $ */
#ifndef ISC_SYMTAB_H
#define ISC_SYMTAB_H 1
diff --git a/lib/isc/include/isc/task.h b/lib/isc/include/isc/task.h
index 9eac6aae1f..bfa0055f28 100644
--- a/lib/isc/include/isc/task.h
+++ b/lib/isc/include/isc/task.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task.h,v 1.46 2000/07/27 09:52:17 tale Exp $ */
+/* $Id: task.h,v 1.47 2000/08/01 01:30:51 tale Exp $ */
#ifndef ISC_TASK_H
#define ISC_TASK_H 1
@@ -230,7 +230,7 @@ isc_task_purgerange(isc_task_t *task, void *sender, isc_eventtype_t first,
* Events in the event queue of 'task' whose sender is 'sender', whose
* type is >= first and <= last, and whose tag is 'tag' will be purged,
* unless they are marked as unpurgable.
- *
+ *
* A sender of NULL will match any sender. A NULL tag matches any
* tag.
*
@@ -320,7 +320,7 @@ isc_task_unsendrange(isc_task_t *task, void *sender, isc_eventtype_t first,
* Events in the event queue of 'task' whose sender is 'sender', whose
* type is >= first and <= last, and whose tag is 'tag' will be dequeued
* and appended to *events.
- *
+ *
* A sender of NULL will match any sender. A NULL tag matches any
* tag.
*
diff --git a/lib/isc/include/isc/taskpool.h b/lib/isc/include/isc/taskpool.h
index a35f8bb876..8556cda1bd 100644
--- a/lib/isc/include/isc/taskpool.h
+++ b/lib/isc/include/isc/taskpool.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: taskpool.h,v 1.5 2000/07/27 09:52:18 tale Exp $ */
+/* $Id: taskpool.h,v 1.6 2000/08/01 01:30:52 tale Exp $ */
#ifndef ISC_TASKPOOL_H
#define ISC_TASKPOOL_H 1
@@ -27,14 +27,14 @@
/*
* Task Pool
*
- * A task pool is a mechanism for sharing a small number of tasks
+ * A task pool is a mechanism for sharing a small number of tasks
* among a large number of objects such that each object is
* assigned a unique task, but each task may be shared by several
* objects.
*
- * Task pools are used to let objects that can exist in large
+ * Task pools are used to let objects that can exist in large
* numbers (e.g., zones) use tasks for synchronization without
- * the memory overhead and unfair scheduling competition that
+ * the memory overhead and unfair scheduling competition that
* could result from creating a separate task for each object.
*/
@@ -65,7 +65,7 @@ isc_taskpool_create(isc_taskmgr_t *tmgr, isc_mem_t *mctx,
/*
* Create a task pool of "ntasks" tasks, each with quantum
* "quantum".
- *
+ *
* Requires:
*
* 'tmgr' is a valid task manager.
diff --git a/lib/isc/include/isc/timer.h b/lib/isc/include/isc/timer.h
index b6f447e975..4990fc4c7f 100644
--- a/lib/isc/include/isc/timer.h
+++ b/lib/isc/include/isc/timer.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: timer.h,v 1.26 2000/07/27 09:52:19 tale Exp $ */
+/* $Id: timer.h,v 1.27 2000/08/01 01:30:53 tale Exp $ */
#ifndef ISC_TIMER_H
#define ISC_TIMER_H 1
@@ -41,7 +41,7 @@
* 'inactive' timers generate no events.
*
* Timers can change type. It is typical to create a timer as
- * an 'inactive' timer and then change it into a 'ticker' or
+ * an 'inactive' timer and then change it into a 'ticker' or
* 'once' timer.
*
* MP:
@@ -245,7 +245,7 @@ isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp);
* *timerp is attached to timer.
*/
-void
+void
isc_timer_detach(isc_timer_t **timerp);
/*
* Detach *timerp from its timer.
@@ -305,7 +305,7 @@ isc_timermgr_destroy(isc_timermgr_t **managerp);
* Destroy a timer manager.
*
* Notes:
- *
+ *
* This routine blocks until there are no timers left in the manager,
* so if the caller holds any timer references using the manager, it
* must detach them before calling isc_timermgr_destroy() or it will
diff --git a/lib/isc/include/isc/types.h b/lib/isc/include/isc/types.h
index b84fb8855b..f05afe4baa 100644
--- a/lib/isc/include/isc/types.h
+++ b/lib/isc/include/isc/types.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: types.h,v 1.28 2000/07/27 09:52:20 tale Exp $ */
+/* $Id: types.h,v 1.29 2000/08/01 01:30:54 tale Exp $ */
#ifndef ISC_TYPES_H
#define ISC_TYPES_H 1
diff --git a/lib/isc/include/isc/util.h b/lib/isc/include/isc/util.h
index 0c0e9a6a0b..e5d2aa3f55 100644
--- a/lib/isc/include/isc/util.h
+++ b/lib/isc/include/isc/util.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: util.h,v 1.14 2000/07/27 09:52:21 tale Exp $ */
+/* $Id: util.h,v 1.15 2000/08/01 01:30:55 tale Exp $ */
#ifndef ISC_UTIL_H
#define ISC_UTIL_H 1
diff --git a/lib/isc/inet_aton.c b/lib/isc/inet_aton.c
index cf44a6d8b8..bcb6714810 100644
--- a/lib/isc/inet_aton.c
+++ b/lib/isc/inet_aton.c
@@ -1,10 +1,10 @@
/*
* Portions Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -18,7 +18,7 @@
/*
* Copyright (c) 1983, 1990, 1993
* The Regents of the University of California. All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -34,7 +34,7 @@
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -50,14 +50,14 @@
/*
* Portions Copyright (c) 1993 by Digital Equipment Corporation.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies, and that
* the name of Digital Equipment Corporation not be used in advertising or
* publicity pertaining to distribution of the document or software without
* specific, written prior permission.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
* WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL DIGITAL EQUIPMENT
@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93";
-static char rcsid[] = "$Id: inet_aton.c,v 1.13 2000/07/27 09:50:51 tale Exp $";
+static char rcsid[] = "$Id: inet_aton.c,v 1.14 2000/08/01 01:29:25 tale Exp $";
#endif /* LIBC_SCCS and not lint */
#include
@@ -81,7 +81,7 @@ static char rcsid[] = "$Id: inet_aton.c,v 1.13 2000/07/27 09:50:51 tale Exp $";
#include
#include
-/*
+/*
* Check whether "cp" is a valid ascii representation
* of an Internet address and convert to a binary address.
* Returns 1 if the address is valid, 0 if not.
diff --git a/lib/isc/inet_ntop.c b/lib/isc/inet_ntop.c
index 1fbacf54f9..84f613a011 100644
--- a/lib/isc/inet_ntop.c
+++ b/lib/isc/inet_ntop.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -17,7 +17,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] =
- "$Id: inet_ntop.c,v 1.8 2000/07/27 09:50:52 tale Exp $";
+ "$Id: inet_ntop.c,v 1.9 2000/08/01 01:29:26 tale Exp $";
#endif /* LIBC_SCCS and not lint */
#include
@@ -38,7 +38,7 @@ static char rcsid[] =
static const char *inet_ntop4(const unsigned char *src, char *dst,
size_t size);
-
+
#ifdef AF_INET6
static const char *inet_ntop6(const unsigned char *src, char *dst,
size_t size);
@@ -175,7 +175,7 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
tp += sprintf(tp, "%x", words[i]);
}
/* Was it a trailing run of 0x00's? */
- if (best.base != -1 && (best.base + best.len) ==
+ if (best.base != -1 && (best.base + best.len) ==
(NS_IN6ADDRSZ / NS_INT16SZ))
*tp++ = ':';
*tp++ = '\0';
diff --git a/lib/isc/inet_pton.c b/lib/isc/inet_pton.c
index 939201c70e..4cccf1e3fb 100644
--- a/lib/isc/inet_pton.c
+++ b/lib/isc/inet_pton.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -17,7 +17,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] =
- "$Id: inet_pton.c,v 1.7 2000/07/27 09:50:53 tale Exp $";
+ "$Id: inet_pton.c,v 1.8 2000/08/01 01:29:28 tale Exp $";
#endif /* LIBC_SCCS and not lint */
#include
diff --git a/lib/isc/lex.c b/lib/isc/lex.c
index 41b43c1f70..b259294c80 100644
--- a/lib/isc/lex.c
+++ b/lib/isc/lex.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lex.c,v 1.34 2000/07/27 09:50:54 tale Exp $ */
+/* $Id: lex.c,v 1.35 2000/08/01 01:29:29 tale Exp $ */
#include
@@ -90,7 +90,7 @@ isc_lex_create(isc_mem_t *mctx, size_t max_token, isc_lex_t **lexp) {
/*
* Create a lexer.
*/
-
+
REQUIRE(lexp != NULL && *lexp == NULL);
REQUIRE(max_token > 0);
@@ -111,7 +111,7 @@ isc_lex_create(isc_mem_t *mctx, size_t max_token, isc_lex_t **lexp) {
memset(lex->specials, 0, 256);
INIT_LIST(lex->sources);
lex->magic = LEX_MAGIC;
-
+
*lexp = lex;
return (ISC_R_SUCCESS);
@@ -229,7 +229,7 @@ isc_lex_openfile(isc_lex_t *lex, const char *filename) {
return (result);
flockfile(stream);
-
+
return (new_source(lex, ISC_TRUE, ISC_TRUE, stream, filename));
}
@@ -279,7 +279,7 @@ isc_lex_close(isc_lex_t *lex) {
source = HEAD(lex->sources);
if (source == NULL)
return (ISC_R_NOMORE);
-
+
UNLINK(lex->sources, source, link);
if (source->is_file) {
funlockfile((FILE *)(source->input));
@@ -306,7 +306,7 @@ typedef enum {
#define IWSEOL (ISC_LEXOPT_INITIALWS | ISC_LEXOPT_EOL)
-static void
+static void
pushback(inputsource *source, int c) {
INSIST(source->char_count < 2);
source->chars[source->char_count++] = c;
@@ -404,7 +404,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
if (c == '\n')
source->line++;
-
+
if (lex->comment_ok && !no_comments) {
if (!escaped && c == ';' &&
((lex->comments & ISC_LEXCOMMENT_DNSMASTERFILE)
@@ -534,7 +534,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
v = &(tokenp->value);
v->as_textregion.base =
lex->data;
- v->as_textregion.length =
+ v->as_textregion.length =
lex->max_token -
remaining;
}
@@ -566,7 +566,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
pushback(source, c);
tokenp->type = isc_tokentype_string;
tokenp->value.as_textregion.base = lex->data;
- tokenp->value.as_textregion.length =
+ tokenp->value.as_textregion.length =
lex->max_token - remaining;
done = ISC_TRUE;
continue;
@@ -647,7 +647,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
tokenp->type = isc_tokentype_qstring;
tokenp->value.as_textregion.base =
lex->data;
- tokenp->value.as_textregion.length =
+ tokenp->value.as_textregion.length =
lex->max_token - remaining;
no_comments = ISC_FALSE;
done = ISC_TRUE;
@@ -693,7 +693,7 @@ isc_lex_ungettoken(isc_lex_t *lex, isc_token_t *tokenp) {
REQUIRE(source != NULL);
REQUIRE(!source->have_token);
REQUIRE(tokenp != NULL);
-
+
source->token = *tokenp;
source->have_token = ISC_TRUE;
}
diff --git a/lib/isc/lfsr.c b/lib/isc/lfsr.c
index 860eb64434..f98147d373 100644
--- a/lib/isc/lfsr.c
+++ b/lib/isc/lfsr.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lfsr.c,v 1.9 2000/07/27 09:50:55 tale Exp $ */
+/* $Id: lfsr.c,v 1.10 2000/08/01 01:29:30 tale Exp $ */
#include
diff --git a/lib/isc/lib.c b/lib/isc/lib.c
index 418da9cac4..0fbbf74693 100644
--- a/lib/isc/lib.c
+++ b/lib/isc/lib.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lib.c,v 1.5 2000/07/27 09:50:57 tale Exp $ */
+/* $Id: lib.c,v 1.6 2000/08/01 01:29:31 tale Exp $ */
#include
diff --git a/lib/isc/log.c b/lib/isc/log.c
index 1a61c2efa5..c612afabad 100644
--- a/lib/isc/log.c
+++ b/lib/isc/log.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: log.c,v 1.41 2000/07/27 09:50:58 tale Exp $ */
+/* $Id: log.c,v 1.42 2000/08/01 01:29:32 tale Exp $ */
/* Principal Authors: DCL */
@@ -262,7 +262,7 @@ isc_log_create(isc_mem_t *mctx, isc_log_t **lctxp, isc_logconfig_t **lcfgp) {
lctx->debug_level = 0;
ISC_LIST_INIT(lctx->messages);
-
+
RUNTIME_CHECK(isc_mutex_init(&lctx->lock) == ISC_R_SUCCESS);
/*
@@ -290,7 +290,7 @@ isc_log_create(isc_mem_t *mctx, isc_log_t **lctxp, isc_logconfig_t **lcfgp) {
*lctxp = lctx;
if (lcfgp != NULL)
*lcfgp = lcfg;
-
+
} else
if (lctx != NULL)
isc_log_destroy(&lctx);
@@ -523,7 +523,7 @@ isc_logconfig_destroy(isc_logconfig_t **lcfgp) {
lcfg->dynamic = ISC_FALSE;
if (lcfg->tag != NULL)
- isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
+ isc_mem_free(lcfg->lctx->mctx, lcfg->tag);
lcfg->tag = NULL;
lcfg->highest_level = 0;
lcfg->duplicate_interval = 0;
@@ -738,7 +738,7 @@ isc_log_createchannel(isc_logconfig_t *lcfg, const char *name,
isc_mem_put(mctx, channel, sizeof(*channel));
return (ISC_R_UNEXPECTED);
}
-
+
ISC_LIST_PREPEND(lcfg->channels, channel, link);
/*
@@ -888,7 +888,7 @@ isc_log_getduplicateinterval(isc_logconfig_t *lcfg) {
isc_result_t
isc_log_settag(isc_logconfig_t *lcfg, const char *tag) {
REQUIRE(VALID_CONFIG(lcfg));
-
+
if (tag != NULL && *tag != '\0') {
lcfg->tag = isc_mem_strdup(lcfg->lctx->mctx, tag);
if (lcfg->tag == NULL)
@@ -992,7 +992,7 @@ sync_channellist(isc_logconfig_t *lcfg) {
unsigned int bytes;
isc_log_t *lctx;
void *lists;
-
+
REQUIRE(VALID_CONFIG(lcfg));
lctx = lcfg->lctx;
@@ -1104,7 +1104,7 @@ roll_log(isc_logchannel_t *channel) {
* Since the highest number is one less than FILE_VERSIONS(channel)
* when not doing infinite log rolling, greatest will need to be
* decremented when it is equal to -- or greater than --
- * FILE_VERSIONS(channel). When greatest is less than
+ * FILE_VERSIONS(channel). When greatest is less than
* FILE_VERSIONS(channel), it is already suitable for use as
* the maximum version number.
*/
@@ -1205,7 +1205,7 @@ isc_log_wouldlog(isc_log_t *lctx, int level) {
* messages that the debug level is not high enough to print.
*
* If the level is (mathematically) less than or equal to the
- * highest_level, or if there is a dynamic channel and the level is
+ * highest_level, or if there is a dynamic channel and the level is
* less than or equal to the debug level, the main loop must be
* entered to see if the message should really be output.
*
@@ -1218,7 +1218,7 @@ isc_log_wouldlog(isc_log_t *lctx, int level) {
if (lctx == NULL)
return (ISC_FALSE);
-
+
return (ISC_TF(level <= lctx->logconfig->highest_level ||
(lctx->logconfig->dynamic &&
level <= lctx->debug_level)));
@@ -1300,7 +1300,7 @@ isc_log_doit(isc_log_t *lctx, isc_logcategory_t *category,
* default channel.
*/
category_channels = &default_channel;
-
+
if (category_channels->module != NULL &&
category_channels->module != module) {
category_channels = ISC_LIST_NEXT(category_channels,
@@ -1422,7 +1422,7 @@ isc_log_doit(isc_log_t *lctx, isc_logcategory_t *category,
*
* Setting the interval to be
* to be longer will obviously
- * not cause the expired
+ * not cause the expired
* message to spring back into
* existence.
*/
diff --git a/lib/isc/md5.c b/lib/isc/md5.c
index 3dcd1a0b81..17e46579de 100644
--- a/lib/isc/md5.c
+++ b/lib/isc/md5.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: md5.c,v 1.7 2000/07/27 09:50:59 tale Exp $ */
+/* $Id: md5.c,v 1.8 2000/08/01 01:29:33 tale Exp $ */
/*
* This code implements the MD5 message-digest algorithm.
@@ -214,7 +214,7 @@ isc_md5_update(isc_md5_t *ctx, const unsigned char *buf, unsigned int len) {
}
/*
- * Final wrapup - pad to 64-byte boundary with the bit pattern
+ * Final wrapup - pad to 64-byte boundary with the bit pattern
* 1 0* (64-bit count of bits processed, MSB-first)
*/
void
diff --git a/lib/isc/mem.c b/lib/isc/mem.c
index 50501945cb..b1df780eeb 100644
--- a/lib/isc/mem.c
+++ b/lib/isc/mem.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1997-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mem.c,v 1.57 2000/07/27 23:31:20 explorer Exp $ */
+/* $Id: mem.c,v 1.58 2000/08/01 01:29:34 tale Exp $ */
#include
@@ -424,7 +424,7 @@ more_frags(isc_mem_t *ctx, size_t new_size) {
* hit the quota for this context.
*/
/*
- * XXXRTH "At quota" notification here.
+ * XXXRTH "At quota" notification here.
*/
/*
* Maybe we can split one of our existing
@@ -490,7 +490,7 @@ mem_getunlocked(isc_mem_t *ctx, size_t size) {
goto done;
}
- /*
+ /*
* If there are no blocks in the free list for this size, get a chunk
* of memory and then break it up into "new_size"-sized blocks, adding
* them to the free list.
@@ -504,7 +504,7 @@ mem_getunlocked(isc_mem_t *ctx, size_t size) {
ret = ctx->freelists[new_size];
ctx->freelists[new_size] = ctx->freelists[new_size]->next;
- /*
+ /*
* The stats[] uses the _actual_ "size" requested by the
* caller, with the caveat (in the code above) that "size" >= the
* max. size (max_size) ends up getting recorded as a call to
@@ -558,7 +558,7 @@ mem_putunlocked(isc_mem_t *ctx, void *mem, size_t size) {
((element *)mem)->next = ctx->freelists[new_size];
ctx->freelists[new_size] = (element *)mem;
- /*
+ /*
* The stats[] uses the _actual_ "size" requested by the
* caller, with the caveat (in the code above) that "size" >= the
* max. size (max_size) ends up getting recorded as a call to
@@ -694,7 +694,7 @@ destroy(isc_mem_t *ctx) {
memset(ctx->basic_table[i], 0x0,
NUM_BASIC_BLOCKS * ctx->mem_target);
#endif
-
+
for (i = 0; i < ctx->basic_table_count; i++)
(ctx->memfree)(ctx->arg, ctx->basic_table[i]);
@@ -774,7 +774,7 @@ isc_mem_destroy(isc_mem_t **ctxp) {
isc_result_t
isc_mem_ondestroy(isc_mem_t *ctx, isc_task_t *task, isc_event_t **event) {
isc_result_t res;
-
+
LOCK(&ctx->lock);
res = isc_ondestroy_register(&ctx->ondestroy, task, event);
UNLOCK(&ctx->lock);
@@ -787,7 +787,7 @@ isc_result_t
isc_mem_restore(isc_mem_t *ctx) {
isc_result_t result;
- result = isc_mutex_init(&ctx->lock);
+ result = isc_mutex_init(&ctx->lock);
if (result != ISC_R_SUCCESS)
ctx->magic = 0;
@@ -852,7 +852,7 @@ isc_mem_preallocate(isc_mem_t *ctx) {
}
mem_putunlocked(ctx, ptr, i);
}
-
+
UNLOCK(&ctx->lock);
return (result);
@@ -1015,7 +1015,7 @@ isc__mem_strdup(isc_mem_t *mctx, const char *s FLARG) {
if (ns != NULL)
strncpy(ns, s, len + 1);
-
+
return (ns);
}
@@ -1246,7 +1246,7 @@ isc_mempool_destroy(isc_mempool_t **mpctxp) {
* Remove our linked list entry from the memory context.
*/
ISC_LIST_UNLINK(mctx->pools, mpctx, link);
-
+
mpctx->magic = 0;
mem_putunlocked(mpctx->mctx, mpctx, sizeof(isc_mempool_t));
diff --git a/lib/isc/mutexblock.c b/lib/isc/mutexblock.c
index 7f8659393c..d57066d2bc 100644
--- a/lib/isc/mutexblock.c
+++ b/lib/isc/mutexblock.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mutexblock.c,v 1.9 2000/07/27 09:51:01 tale Exp $ */
+/* $Id: mutexblock.c,v 1.10 2000/08/01 01:29:35 tale Exp $ */
#include
diff --git a/lib/isc/netaddr.c b/lib/isc/netaddr.c
index f14e185345..0bf067c6e7 100644
--- a/lib/isc/netaddr.c
+++ b/lib/isc/netaddr.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: netaddr.c,v 1.11 2000/07/27 09:51:02 tale Exp $ */
+/* $Id: netaddr.c,v 1.12 2000/08/01 01:29:37 tale Exp $ */
#include
@@ -59,12 +59,12 @@ isc_netaddr_eqprefix(const isc_netaddr_t *a, const isc_netaddr_t *b,
unsigned int ipabytes; /* Length of whole IP address in bytes */
unsigned int nbytes; /* Number of significant whole bytes */
unsigned int nbits; /* Number of significant leftover bits */
-
+
REQUIRE(a != NULL && b != NULL);
if (a->family != b->family)
return (ISC_FALSE);
-
+
switch (a->family) {
case AF_INET:
pa = (const unsigned char *) &a->type.in;
@@ -125,7 +125,7 @@ isc_netaddr_totext(const isc_netaddr_t *netaddr, isc_buffer_t *target) {
if (alen > isc_buffer_availablelength(target))
return (ISC_R_NOSPACE);
-
+
isc_buffer_putmem(target, (unsigned char *)abuf, alen);
return (ISC_R_SUCCESS);
@@ -148,7 +148,7 @@ isc_netaddr_format(isc_netaddr_t *na, char *array, unsigned int size) {
else
result = ISC_R_NOSPACE;
}
-
+
if (result != ISC_R_SUCCESS) {
snprintf(array, size,
"",
@@ -161,7 +161,7 @@ isc_result_t
isc_netaddr_masktoprefixlen(const isc_netaddr_t *s, unsigned int *lenp) {
unsigned int nbits, nbytes, ipbytes, i;
const unsigned char *p;
-
+
switch (s->family) {
case AF_INET:
p = (const unsigned char *) &s->type.in;
diff --git a/lib/isc/nls/Makefile.in b/lib/isc/nls/Makefile.in
index 5967f9bb1f..d48bb85f01 100644
--- a/lib/isc/nls/Makefile.in
+++ b/lib/isc/nls/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1999, 2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.9 2000/07/27 09:52:23 tale Exp $
+# $Id: Makefile.in,v 1.10 2000/08/01 01:30:57 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/nls/msgcat.c b/lib/isc/nls/msgcat.c
index 91e48bf500..f9600c6027 100644
--- a/lib/isc/nls/msgcat.c
+++ b/lib/isc/nls/msgcat.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: msgcat.c,v 1.7 2000/07/27 09:52:24 tale Exp $ */
+/* $Id: msgcat.c,v 1.8 2000/08/01 01:30:58 tale Exp $ */
/*
* Principal Author: Bob Halley
diff --git a/lib/isc/ondestroy.c b/lib/isc/ondestroy.c
index 79b762f136..ea6064a8e2 100644
--- a/lib/isc/ondestroy.c
+++ b/lib/isc/ondestroy.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ondestroy.c,v 1.8 2000/07/27 09:51:03 tale Exp $ */
+/* $Id: ondestroy.c,v 1.9 2000/08/01 01:29:38 tale Exp $ */
#include
@@ -54,7 +54,7 @@ isc_ondestroy_register(isc_ondestroy_t *ondest, isc_task_t *task,
isc_task_attach(task, &thetask);
theevent->ev_sender = thetask;
-
+
ISC_LIST_APPEND(ondest->events, theevent, ev_link);
return (ISC_R_SUCCESS);
@@ -64,7 +64,7 @@ void
isc_ondestroy_notify(isc_ondestroy_t *ondest, void *sender) {
isc_event_t *eventp;
isc_task_t *task;
-
+
REQUIRE(VALID_ONDESTROY(ondest));
eventp = ISC_LIST_HEAD(ondest->events);
@@ -73,11 +73,11 @@ isc_ondestroy_notify(isc_ondestroy_t *ondest, void *sender) {
task = eventp->ev_sender;
eventp->ev_sender = sender;
-
+
isc_task_sendanddetach(&task, &eventp);
eventp = ISC_LIST_HEAD(ondest->events);
}
}
-
+
diff --git a/lib/isc/print.c b/lib/isc/print.c
index 522efc5f71..7d7c02e5e7 100644
--- a/lib/isc/print.c
+++ b/lib/isc/print.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: print.c,v 1.12 2000/07/27 09:51:05 tale Exp $ */
+/* $Id: print.c,v 1.13 2000/08/01 01:29:39 tale Exp $ */
#include
@@ -83,7 +83,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
long double ldbl;
#endif
char fmt[32];
-
+
INSIST(str != NULL);
INSIST(format != NULL);
@@ -141,7 +141,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
char *e;
width = strtoul(format, &e, 10);
format = e;
- }
+ }
/*
* Precision.
@@ -380,7 +380,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
size--;
pad--;
}
- if (precision != 0)
+ if (precision != 0)
while (precision > 0 && *cp != '\0' &&
size > 1) {
*str++ = *cp++;
@@ -406,7 +406,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
if (left) {
*str++ = c;
size--;
- }
+ }
while (width-- > 0 && size > 1) {
*str++ = ' ';
size--;
@@ -497,7 +497,7 @@ isc_print_vsnprintf(char *str, size_t size, const char *format, va_list ap) {
*
* precisions > 324 don't make much sence.
* if we cap the precision at 512 we will not
- * overflow buf.
+ * overflow buf.
*/
if (precision > 512)
precision = 512;
diff --git a/lib/isc/pthreads/Makefile.in b/lib/isc/pthreads/Makefile.in
index a8e1bcaec5..800998808b 100644
--- a/lib/isc/pthreads/Makefile.in
+++ b/lib/isc/pthreads/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.13 2000/07/27 09:52:25 tale Exp $
+# $Id: Makefile.in,v 1.14 2000/08/01 01:30:59 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/pthreads/condition.c b/lib/isc/pthreads/condition.c
index 1f71d9cf9b..a72d69772f 100644
--- a/lib/isc/pthreads/condition.c
+++ b/lib/isc/pthreads/condition.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: condition.c,v 1.23 2000/07/27 09:52:26 tale Exp $ */
+/* $Id: condition.c,v 1.24 2000/08/01 01:31:00 tale Exp $ */
#include
diff --git a/lib/isc/pthreads/include/Makefile.in b/lib/isc/pthreads/include/Makefile.in
index 7d64aa2c8d..57d11ac279 100644
--- a/lib/isc/pthreads/include/Makefile.in
+++ b/lib/isc/pthreads/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.9 2000/07/27 09:52:28 tale Exp $
+# $Id: Makefile.in,v 1.10 2000/08/01 01:31:03 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/pthreads/include/isc/Makefile.in b/lib/isc/pthreads/include/isc/Makefile.in
index 0ad55a306a..c174c6f63e 100644
--- a/lib/isc/pthreads/include/isc/Makefile.in
+++ b/lib/isc/pthreads/include/isc/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.10 2000/07/27 09:52:30 tale Exp $
+# $Id: Makefile.in,v 1.11 2000/08/01 01:31:04 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/pthreads/include/isc/condition.h b/lib/isc/pthreads/include/isc/condition.h
index b5681bc60b..4c5a6c49ba 100644
--- a/lib/isc/pthreads/include/isc/condition.h
+++ b/lib/isc/pthreads/include/isc/condition.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: condition.h,v 1.17 2000/07/27 09:52:31 tale Exp $ */
+/* $Id: condition.h,v 1.18 2000/08/01 01:31:05 tale Exp $ */
#ifndef ISC_CONDITION_H
#define ISC_CONDITION_H 1
diff --git a/lib/isc/pthreads/include/isc/mutex.h b/lib/isc/pthreads/include/isc/mutex.h
index dd129206bc..269122b6d8 100644
--- a/lib/isc/pthreads/include/isc/mutex.h
+++ b/lib/isc/pthreads/include/isc/mutex.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: mutex.h,v 1.15 2000/07/27 09:52:32 tale Exp $ */
+/* $Id: mutex.h,v 1.16 2000/08/01 01:31:06 tale Exp $ */
#ifndef ISC_MUTEX_H
#define ISC_MUTEX_H 1
diff --git a/lib/isc/pthreads/include/isc/once.h b/lib/isc/pthreads/include/isc/once.h
index a9c3a8a587..e75e442486 100644
--- a/lib/isc/pthreads/include/isc/once.h
+++ b/lib/isc/pthreads/include/isc/once.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: once.h,v 1.6 2000/07/27 09:52:33 tale Exp $ */
+/* $Id: once.h,v 1.7 2000/08/01 01:31:07 tale Exp $ */
#ifndef ISC_ONCE_H
#define ISC_ONCE_H 1
diff --git a/lib/isc/pthreads/include/isc/thread.h b/lib/isc/pthreads/include/isc/thread.h
index cb7785240d..e1b7528029 100644
--- a/lib/isc/pthreads/include/isc/thread.h
+++ b/lib/isc/pthreads/include/isc/thread.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: thread.h,v 1.17 2000/07/27 09:52:34 tale Exp $ */
+/* $Id: thread.h,v 1.18 2000/08/01 01:31:08 tale Exp $ */
#ifndef ISC_THREAD_H
#define ISC_THREAD_H 1
diff --git a/lib/isc/pthreads/thread.c b/lib/isc/pthreads/thread.c
index fbee251bd0..578d3d6126 100644
--- a/lib/isc/pthreads/thread.c
+++ b/lib/isc/pthreads/thread.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: thread.c,v 1.6 2000/07/27 09:52:27 tale Exp $ */
+/* $Id: thread.c,v 1.7 2000/08/01 01:31:01 tale Exp $ */
#include
diff --git a/lib/isc/quota.c b/lib/isc/quota.c
index 75c8d5a1e4..c6dd2fab7d 100644
--- a/lib/isc/quota.c
+++ b/lib/isc/quota.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: quota.c,v 1.7 2000/07/27 09:51:06 tale Exp $ */
+/* $Id: quota.c,v 1.8 2000/08/01 01:29:40 tale Exp $ */
#include
@@ -56,7 +56,7 @@ isc_quota_release(isc_quota_t *quota) {
LOCK("a->lock);
INSIST(quota->used > 0);
quota->used--;
- UNLOCK("a->lock);
+ UNLOCK("a->lock);
}
isc_result_t
diff --git a/lib/isc/random.c b/lib/isc/random.c
index cb8a62a317..43e85795f6 100644
--- a/lib/isc/random.c
+++ b/lib/isc/random.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: random.c,v 1.8 2000/07/27 09:51:07 tale Exp $ */
+/* $Id: random.c,v 1.9 2000/08/01 01:29:41 tale Exp $ */
#include
@@ -100,7 +100,7 @@ isc_random_get(isc_random_t *r, isc_uint32_t *val)
REQUIRE(val != NULL);
UNUSED(r);
-
+
initialize();
#if 0
diff --git a/lib/isc/ratelimiter.c b/lib/isc/ratelimiter.c
index a4c6820273..5c3a4c3f31 100644
--- a/lib/isc/ratelimiter.c
+++ b/lib/isc/ratelimiter.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ratelimiter.c,v 1.15 2000/07/27 09:51:08 tale Exp $ */
+/* $Id: ratelimiter.c,v 1.16 2000/08/01 01:29:42 tale Exp $ */
#include
@@ -60,7 +60,7 @@ isc_ratelimiter_create(isc_mem_t *mctx, isc_timermgr_t *timermgr,
isc_result_t result;
isc_ratelimiter_t *rl;
INSIST(ratelimiterp != NULL && *ratelimiterp == NULL);
-
+
rl = isc_mem_get(mctx, sizeof(*rl));
if (rl == NULL)
return ISC_R_NOMEMORY;
@@ -87,7 +87,7 @@ isc_ratelimiter_create(isc_mem_t *mctx, isc_timermgr_t *timermgr,
* (soon) have events outstanding.
*/
rl->refs++;
-
+
ISC_EVENT_INIT(&rl->shutdownevent,
sizeof(isc_event_t),
0, NULL, ISC_RATELIMITEREVENT_SHUTDOWN,
@@ -125,7 +125,7 @@ isc_ratelimiter_setpertic(isc_ratelimiter_t *rl, isc_uint32_t pertic) {
pertic = 1;
rl->pertic = pertic;
}
-
+
isc_result_t
isc_ratelimiter_enqueue(isc_ratelimiter_t *rl, isc_task_t *task,
isc_event_t **eventp)
@@ -224,14 +224,14 @@ isc_ratelimiter_shutdown(isc_ratelimiter_t *rl) {
*/
ev = &rl->shutdownevent;
isc_task_send(rl->task, &ev);
-
+
UNLOCK(&rl->lock);
}
static void
ratelimiter_shutdowncomplete(isc_task_t *task, isc_event_t *event) {
isc_ratelimiter_t *rl = (isc_ratelimiter_t *)event->ev_arg;
-
+
UNUSED(task);
isc_ratelimiter_detach(&rl);
diff --git a/lib/isc/result.c b/lib/isc/result.c
index 8dfe61260f..a6d7c33bee 100644
--- a/lib/isc/result.c
+++ b/lib/isc/result.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: result.c,v 1.45 2000/07/27 09:51:09 tale Exp $ */
+/* $Id: result.c,v 1.46 2000/08/01 01:29:43 tale Exp $ */
#include
diff --git a/lib/isc/rwlock.c b/lib/isc/rwlock.c
index 0b39d4704b..02277d1f15 100644
--- a/lib/isc/rwlock.c
+++ b/lib/isc/rwlock.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: rwlock.c,v 1.18 2000/07/30 17:57:48 bwelling Exp $ */
+/* $Id: rwlock.c,v 1.19 2000/08/01 01:29:44 tale Exp $ */
#include
diff --git a/lib/isc/serial.c b/lib/isc/serial.c
index 449870fd9e..7f5ba638f2 100644
--- a/lib/isc/serial.c
+++ b/lib/isc/serial.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: serial.c,v 1.5 2000/07/27 09:51:11 tale Exp $ */
+/* $Id: serial.c,v 1.6 2000/08/01 01:29:45 tale Exp $ */
#include
#include
diff --git a/lib/isc/sha1.c b/lib/isc/sha1.c
index 3f8fa9e378..91f5a7cd46 100644
--- a/lib/isc/sha1.c
+++ b/lib/isc/sha1.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sha1.c,v 1.8 2000/07/27 09:51:12 tale Exp $ */
+/* $Id: sha1.c,v 1.9 2000/08/01 01:29:47 tale Exp $ */
/* $NetBSD: sha1.c,v 1.5 2000/01/22 22:19:14 mycroft Exp $ */
/* $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ */
diff --git a/lib/isc/sockaddr.c b/lib/isc/sockaddr.c
index e02c8c2914..70de863e06 100644
--- a/lib/isc/sockaddr.c
+++ b/lib/isc/sockaddr.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sockaddr.c,v 1.43 2000/07/27 09:51:13 tale Exp $ */
+/* $Id: sockaddr.c,v 1.44 2000/08/01 01:29:48 tale Exp $ */
#include
@@ -122,7 +122,7 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
/*
* Do the port first, giving us the opportunity to check for
- * unsupported address families before calling
+ * unsupported address families before calling
* isc_netaddr_fromsockaddr().
*/
switch (sockaddr->type.sa.sa_family) {
@@ -135,18 +135,18 @@ isc_sockaddr_totext(const isc_sockaddr_t *sockaddr, isc_buffer_t *target) {
default:
return (ISC_R_FAILURE);
}
-
+
plen = strlen(pbuf);
INSIST(plen < sizeof(pbuf));
-
+
isc_netaddr_fromsockaddr(&netaddr, sockaddr);
result = isc_netaddr_totext(&netaddr, target);
if (result != ISC_R_SUCCESS)
return (result);
-
+
if (1 + plen + 1 > isc_buffer_availablelength(target))
return (ISC_R_NOSPACE);
-
+
isc_buffer_putmem(target, (const unsigned char *)"#", 1);
isc_buffer_putmem(target, (const unsigned char *)pbuf, plen);
@@ -181,7 +181,7 @@ isc_sockaddr_hash(const isc_sockaddr_t *sockaddr, isc_boolean_t address_only) {
const unsigned char *s;
unsigned int h = 0;
unsigned int g;
-
+
/*
* Provide a hash value for 'sockaddr'.
*/
@@ -336,7 +336,7 @@ isc_sockaddr_fromnetaddr(isc_sockaddr_t *sockaddr, const isc_netaddr_t *na,
sockaddr->type.sin.sin_port = htons(port);
break;
case AF_INET6:
- sockaddr->length = sizeof sockaddr->type.sin6;
+ sockaddr->length = sizeof sockaddr->type.sin6;
#ifdef ISC_PLATFORM_HAVESALEN
sockaddr->type.sin6.sin6_len = sizeof sockaddr->type.sin6;
#endif
diff --git a/lib/isc/string.c b/lib/isc/string.c
index 8a0f9cb890..2e476e7e7d 100644
--- a/lib/isc/string.c
+++ b/lib/isc/string.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: string.c,v 1.4 2000/07/27 09:51:15 tale Exp $ */
+/* $Id: string.c,v 1.5 2000/08/01 01:29:49 tale Exp $ */
#include
@@ -32,7 +32,7 @@ isc_string_touint64(char *source, char **end, int base) {
char *s = source;
char *o;
char c;
-
+
if ((base < 0) || (base == 1) || (base > 36)) {
*end = source;
return (0);
@@ -58,7 +58,7 @@ isc_string_touint64(char *source, char **end, int base) {
overflow = ~0;
overflow /= base;
tmp = 0;
-
+
while ((c = *s) != 0) {
c = tolower(c);
/* end ? */
diff --git a/lib/isc/symtab.c b/lib/isc/symtab.c
index 093620789a..66012a403e 100644
--- a/lib/isc/symtab.c
+++ b/lib/isc/symtab.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1996-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: symtab.c,v 1.19 2000/07/27 09:51:16 tale Exp $ */
+/* $Id: symtab.c,v 1.20 2000/08/01 01:29:50 tale Exp $ */
#include
diff --git a/lib/isc/task.c b/lib/isc/task.c
index 530cbf2446..60dac065f3 100644
--- a/lib/isc/task.c
+++ b/lib/isc/task.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task.c,v 1.68 2000/07/27 22:24:54 bwelling Exp $ */
+/* $Id: task.c,v 1.69 2000/08/01 01:29:51 tale Exp $ */
/*
* Principal Author: Bob Halley
@@ -224,7 +224,7 @@ static inline isc_boolean_t
task_shutdown(isc_task_t *task) {
isc_boolean_t was_idle = ISC_FALSE;
isc_event_t *event, *prev;
-
+
/*
* Caller must be holding the task's lock.
*/
@@ -331,7 +331,7 @@ static inline isc_boolean_t
task_send(isc_task_t *task, isc_event_t **eventp) {
isc_boolean_t was_idle = ISC_FALSE;
isc_event_t *event;
-
+
/*
* Caller must be holding the task lock.
*/
@@ -355,7 +355,7 @@ task_send(isc_task_t *task, isc_event_t **eventp) {
*eventp = NULL;
return (was_idle);
-}
+}
void
isc_task_send(isc_task_t *task, isc_event_t **eventp) {
@@ -710,7 +710,7 @@ run(void *uap) {
/*
* Again we're trying to hold the lock for as short a time as possible
* and to do as little locking and unlocking as possible.
- *
+ *
* In both while loops, the appropriate lock must be held before the
* while body starts. Code which acquired the lock at the top of
* the loop would be more readable, but would result in a lot of
@@ -738,7 +738,7 @@ run(void *uap) {
* unlocks. Also note that the lock is not held when the while
* condition is tested, which may or may not be important, depending
* on the expression.
- *
+ *
* As written:
*
* LOCK();
@@ -772,7 +772,7 @@ run(void *uap) {
XTHREADTRACE("awake");
}
XTHREADTRACE("working");
-
+
task = HEAD(manager->ready_tasks);
if (task != NULL) {
unsigned int dispatch_count = 0;
@@ -785,7 +785,7 @@ run(void *uap) {
/*
* Note we only unlock the manager lock if we actually
- * have a task to do. We must reacquire the manager
+ * have a task to do. We must reacquire the manager
* lock before exiting the 'if (task != NULL)' block.
*/
DEQUEUE(manager->ready_tasks, task, ready_link);
@@ -816,7 +816,7 @@ run(void *uap) {
EMPTY(task->events) &&
!TASK_SHUTTINGDOWN(task)) {
isc_boolean_t was_idle;
-
+
/*
* There are no references and no
* pending events for this task,
@@ -930,7 +930,7 @@ manager_free(isc_taskmgr_t *manager) {
}
isc_result_t
-isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
+isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
unsigned int default_quantum, isc_taskmgr_t **managerp)
{
unsigned int i, started = 0;
@@ -987,7 +987,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
*/
for (i = 0; i < workers; i++) {
if (isc_thread_create(run, manager,
- &manager->threads[manager->workers]) ==
+ &manager->threads[manager->workers]) ==
ISC_R_SUCCESS) {
manager->workers++;
started++;
@@ -998,7 +998,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
if (started == 0) {
manager_free(manager);
return (ISC_R_NOTHREADS);
- }
+ }
*managerp = manager;
diff --git a/lib/isc/taskpool.c b/lib/isc/taskpool.c
index 87440f4cb3..3320a14888 100644
--- a/lib/isc/taskpool.c
+++ b/lib/isc/taskpool.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: taskpool.c,v 1.8 2000/07/27 09:51:18 tale Exp $ */
+/* $Id: taskpool.c,v 1.9 2000/08/01 01:29:52 tale Exp $ */
#include
@@ -28,7 +28,7 @@
***/
struct isc_taskpool {
- isc_mem_t * mctx;
+ isc_mem_t * mctx;
unsigned int ntasks;
isc_task_t ** tasks;
};
@@ -44,7 +44,7 @@ isc_taskpool_create(isc_taskmgr_t *tmgr, isc_mem_t *mctx,
unsigned int i;
isc_taskpool_t *pool;
isc_result_t result;
-
+
INSIST(ntasks > 0);
pool = isc_mem_get(mctx, sizeof *pool);
if (pool == NULL)
@@ -52,7 +52,7 @@ isc_taskpool_create(isc_taskmgr_t *tmgr, isc_mem_t *mctx,
pool->mctx = mctx;
pool->ntasks = ntasks;
pool->tasks = isc_mem_get(mctx, ntasks * sizeof(isc_task_t *));
- for (i = 0; i < ntasks; i++)
+ for (i = 0; i < ntasks; i++)
pool->tasks[i] = NULL;
for (i = 0; i < ntasks; i++) {
result = isc_task_create(tmgr, quantum, &pool->tasks[i]);
diff --git a/lib/isc/timer.c b/lib/isc/timer.c
index 8a3784e996..bc84c6a976 100644
--- a/lib/isc/timer.c
+++ b/lib/isc/timer.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: timer.c,v 1.53 2000/07/27 09:51:19 tale Exp $ */
+/* $Id: timer.c,v 1.54 2000/08/01 01:29:53 tale Exp $ */
#include
@@ -92,7 +92,7 @@ schedule(isc_timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) {
isc_time_t due;
int cmp;
- /*
+ /*
* Note: the caller must ensure locking.
*/
@@ -115,7 +115,7 @@ schedule(isc_timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) {
else
due = timer->expires;
}
-
+
/*
* Schedule the timer.
*/
@@ -168,7 +168,7 @@ deschedule(isc_timer_t *timer) {
isc_boolean_t need_wakeup = ISC_FALSE;
isc_timermgr_t *manager;
- /*
+ /*
* The caller must ensure locking.
*/
@@ -317,7 +317,7 @@ isc_timer_create(isc_timermgr_t *manager, isc_timertype_t type,
result = ISC_R_SUCCESS;
if (result == ISC_R_SUCCESS)
APPEND(manager->timers, timer, link);
-
+
UNLOCK(&manager->lock);
if (result != ISC_R_SUCCESS) {
@@ -461,11 +461,11 @@ isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) {
LOCK(&timer->lock);
timer->references++;
UNLOCK(&timer->lock);
-
+
*timerp = timer;
}
-void
+void
isc_timer_detach(isc_timer_t **timerp) {
isc_timer_t *timer;
isc_boolean_t free_timer = ISC_FALSE;
@@ -484,7 +484,7 @@ isc_timer_detach(isc_timer_t **timerp) {
if (timer->references == 0)
free_timer = ISC_TRUE;
UNLOCK(&timer->lock);
-
+
if (free_timer)
destroy(timer);
@@ -550,7 +550,7 @@ dispatch(isc_timermgr_t *manager, isc_time_t *now) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"couldn't allocate event");
}
-
+
timer->index = 0;
isc_heap_delete(manager->heap, 1);
manager->nscheduled--;
@@ -566,7 +566,7 @@ dispatch(isc_timermgr_t *manager, isc_time_t *now) {
manager->due = timer->due;
done = ISC_TRUE;
}
- }
+ }
}
static isc_threadresult_t
@@ -641,7 +641,7 @@ isc_timermgr_create(isc_mem_t *mctx, isc_timermgr_t **managerp) {
manager = isc_mem_get(mctx, sizeof *manager);
if (manager == NULL)
return (ISC_R_NOMEMORY);
-
+
manager->magic = TIMER_MANAGER_MAGIC;
manager->mctx = NULL;
manager->done = ISC_FALSE;
diff --git a/lib/isc/unix/Makefile.in b/lib/isc/unix/Makefile.in
index 44e2b33913..f8b196602a 100644
--- a/lib/isc/unix/Makefile.in
+++ b/lib/isc/unix/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.30 2000/07/27 09:52:35 tale Exp $
+# $Id: Makefile.in,v 1.31 2000/08/01 01:31:10 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/unix/app.c b/lib/isc/unix/app.c
index a976108649..53f373736c 100644
--- a/lib/isc/unix/app.c
+++ b/lib/isc/unix/app.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: app.c,v 1.22 2000/07/27 09:52:36 tale Exp $ */
+/* $Id: app.c,v 1.23 2000/08/01 01:31:11 tale Exp $ */
#include
@@ -91,7 +91,7 @@ handle_signal(int sig, void (*handler)(int)) {
strerror(errno));
return (ISC_R_UNEXPECTED);
}
-
+
return (ISC_R_SUCCESS);
}
@@ -112,7 +112,7 @@ isc_app_start(void) {
presult = pthread_init();
if (presult != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
- "isc_app_start() pthread_init: %s",
+ "isc_app_start() pthread_init: %s",
strerror(presult));
return (ISC_R_UNEXPECTED);
}
@@ -185,14 +185,14 @@ isc_app_start(void) {
sigaddset(&sset, SIGINT) != 0 ||
sigaddset(&sset, SIGTERM) != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
- "isc_app_start() sigsetops: %s",
+ "isc_app_start() sigsetops: %s",
strerror(errno));
return (ISC_R_UNEXPECTED);
}
presult = pthread_sigmask(SIG_BLOCK, &sset, NULL);
if (presult != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
- "isc_app_start() pthread_sigmask: %s",
+ "isc_app_start() pthread_sigmask: %s",
strerror(presult));
return (ISC_R_UNEXPECTED);
}
@@ -232,7 +232,7 @@ isc_app_onrun(isc_mem_t *mctx, isc_task_t *task, isc_taskaction_t action,
result = ISC_R_NOMEMORY;
goto unlock;
}
-
+
ISC_LIST_APPEND(on_run, event, ev_link);
result = ISC_R_SUCCESS;
@@ -280,7 +280,7 @@ isc_app_run(void) {
}
}
-
+
UNLOCK(&lock);
#ifndef HAVE_SIGWAIT
@@ -311,7 +311,7 @@ isc_app_run(void) {
sigaddset(&sset, SIGINT) != 0 ||
sigaddset(&sset, SIGTERM) != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
- "isc_app_run() sigsetops: %s",
+ "isc_app_run() sigsetops: %s",
strerror(errno));
return (ISC_R_UNEXPECTED);
}
@@ -343,7 +343,7 @@ isc_app_run(void) {
*/
if (sigemptyset(&sset) != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
- "isc_app_run() sigsetops: %s",
+ "isc_app_run() sigsetops: %s",
strerror(errno));
return (ISC_R_UNEXPECTED);
}
@@ -368,7 +368,7 @@ isc_app_shutdown(void) {
*/
LOCK(&lock);
-
+
REQUIRE(running);
if (shutdown_requested)
@@ -381,7 +381,7 @@ isc_app_shutdown(void) {
if (want_kill) {
#ifdef HAVE_LINUXTHREADS
int result;
-
+
result = pthread_kill(main_thread, SIGTERM);
if (result != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
@@ -411,7 +411,7 @@ isc_app_reload(void) {
*/
LOCK(&lock);
-
+
REQUIRE(running);
/*
@@ -425,7 +425,7 @@ isc_app_reload(void) {
if (want_kill) {
#ifdef HAVE_LINUXTHREADS
int result;
-
+
result = pthread_kill(main_thread, SIGHUP);
if (result != 0) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
diff --git a/lib/isc/unix/dir.c b/lib/isc/unix/dir.c
index 36997fe959..bf7ba43380 100644
--- a/lib/isc/unix/dir.c
+++ b/lib/isc/unix/dir.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dir.c,v 1.12 2000/07/27 09:52:38 tale Exp $ */
+/* $Id: dir.c,v 1.13 2000/08/01 01:31:12 tale Exp $ */
/* Principal Authors: DCL */
@@ -51,7 +51,7 @@ isc_dir_init(isc_dir_t *dir) {
}
/*
- * Allocate workspace and open directory stream. If either one fails,
+ * Allocate workspace and open directory stream. If either one fails,
* NULL will be returned.
*/
isc_result_t
@@ -92,7 +92,7 @@ isc_dir_read(isc_dir_t *dir) {
return (ISC_R_NOMORE);
/*
- * Make sure that the space for the name is long enough.
+ * Make sure that the space for the name is long enough.
*/
if (sizeof(dir->entry.name) <= strlen(entry->d_name))
return (ISC_R_UNEXPECTED);
diff --git a/lib/isc/unix/entropy.c b/lib/isc/unix/entropy.c
index 4b9e259808..d4d3c2206b 100644
--- a/lib/isc/unix/entropy.c
+++ b/lib/isc/unix/entropy.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: entropy.c,v 1.46 2000/07/27 09:52:39 tale Exp $ */
+/* $Id: entropy.c,v 1.47 2000/08/01 01:31:13 tale Exp $ */
#include
@@ -708,7 +708,7 @@ isc_entropy_getdata(isc_entropy_t *ent, void *data, unsigned int length,
isc_sha1_update(&hash, (void *)(ent->pool.pool),
RND_POOLWORDS * 4);
isc_sha1_final(&hash, digest);
-
+
/*
* Stir the extracted data (all of it) back into the pool.
*/
diff --git a/lib/isc/unix/errno2result.c b/lib/isc/unix/errno2result.c
index 86f2d3e9bb..4c626b81eb 100644
--- a/lib/isc/unix/errno2result.c
+++ b/lib/isc/unix/errno2result.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: errno2result.c,v 1.3 2000/07/27 09:52:40 tale Exp $ */
+/* $Id: errno2result.c,v 1.4 2000/08/01 01:31:14 tale Exp $ */
#include
diff --git a/lib/isc/unix/errno2result.h b/lib/isc/unix/errno2result.h
index 34cf2f2f94..af7ff31c0e 100644
--- a/lib/isc/unix/errno2result.h
+++ b/lib/isc/unix/errno2result.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: errno2result.h,v 1.4 2000/07/27 09:52:41 tale Exp $ */
+/* $Id: errno2result.h,v 1.5 2000/08/01 01:31:15 tale Exp $ */
#ifndef UNIX_ERRNO2RESULT_H
#define UNIX_ERRNO2RESULT_H 1
diff --git a/lib/isc/unix/file.c b/lib/isc/unix/file.c
index 1151476142..48beaea7a9 100644
--- a/lib/isc/unix/file.c
+++ b/lib/isc/unix/file.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: file.c,v 1.19 2000/07/27 09:52:42 tale Exp $ */
+/* $Id: file.c,v 1.20 2000/08/01 01:31:16 tale Exp $ */
#include
@@ -45,10 +45,10 @@
static isc_result_t
file_stats(const char *file, struct stat *stats) {
isc_result_t result = ISC_R_SUCCESS;
-
+
if (stat(file, stats) != 0)
result = isc__errno2result(errno);
-
+
return (result);
}
@@ -126,20 +126,20 @@ isc_file_mktemplate(const char *path, char *buf, size_t buflen) {
if (s != NULL) {
if ((s - path + 1 + sizeof(TEMPLATE)) > buflen)
return (ISC_R_NOSPACE);
-
+
strncpy(buf, path, s - path + 1);
buf[s - path + 1] = '\0';
strcat(buf, TEMPLATE);
} else {
if (sizeof(TEMPLATE) > buflen)
return (ISC_R_NOSPACE);
-
+
strcpy(buf, TEMPLATE);
}
-
+
return (ISC_R_SUCCESS);
}
-
+
isc_result_t
isc_file_openunique(char *templet, FILE **fp) {
int fd;
@@ -173,7 +173,7 @@ isc_file_openunique(char *templet, FILE **fp) {
isc_result_t
isc_file_remove(const char *filename) {
int r;
-
+
r = unlink(filename);
if (r == 0)
return (ISC_R_SUCCESS);
diff --git a/lib/isc/unix/fsaccess.c b/lib/isc/unix/fsaccess.c
index 8132b7c226..b820795fda 100644
--- a/lib/isc/unix/fsaccess.c
+++ b/lib/isc/unix/fsaccess.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: fsaccess.c,v 1.4 2000/07/27 09:52:43 tale Exp $ */
+/* $Id: fsaccess.c,v 1.5 2000/08/01 01:31:18 tale Exp $ */
#include
#include
diff --git a/lib/isc/unix/ifiter_ioctl.c b/lib/isc/unix/ifiter_ioctl.c
index 3dd03b0bd1..526e1700e7 100644
--- a/lib/isc/unix/ifiter_ioctl.c
+++ b/lib/isc/unix/ifiter_ioctl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,12 +15,12 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ifiter_ioctl.c,v 1.12 2000/07/27 09:52:44 tale Exp $ */
+/* $Id: ifiter_ioctl.c,v 1.13 2000/08/01 01:31:19 tale Exp $ */
/*
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
* See netintro(4).
- */
+ */
#ifndef SIOCGLIFCONF
#define SIOCGLIFCONF SIOCGIFCONF
#define lifc_len ifc_len
@@ -45,7 +45,7 @@
#endif
-#define IFITER_MAGIC 0x49464954U /* IFIT. */
+#define IFITER_MAGIC 0x49464954U /* IFIT. */
#define VALID_IFITER(t) ((t) != NULL && (t)->magic == IFITER_MAGIC)
struct isc_interfaceiter {
@@ -77,7 +77,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
REQUIRE(mctx != NULL);
REQUIRE(iterp != NULL);
REQUIRE(*iterp == NULL);
-
+
iter = isc_mem_get(mctx, sizeof(*iter));
if (iter == NULL)
return (ISC_R_NOMEMORY);
@@ -95,7 +95,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
result = ISC_R_UNEXPECTED;
goto socket_failure;
}
-
+
/*
* Get the interface configuration, allocating more memory if
* necessary.
@@ -108,7 +108,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
result = ISC_R_NOMEMORY;
goto alloc_failure;
}
-
+
memset(&iter->ifc.lifc_len, 0, sizeof(iter->ifc.lifc_len));
#ifdef ISC_HAVE_LIFC_FAMILY
iter->ifc.lifc_family = AF_UNSPEC;
@@ -146,18 +146,18 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
* retry.
*/
if (iter->ifc.lifc_len + 2 * sizeof(struct lifreq)
- < iter->bufsize)
+ < iter->bufsize)
break;
}
if (iter->bufsize >= IFCONF_BUFSIZE_MAX) {
- UNEXPECTED_ERROR(__FILE__, __LINE__,
+ UNEXPECTED_ERROR(__FILE__, __LINE__,
"get interface configuration: "
"maximum buffer size exceeded");
result = ISC_R_UNEXPECTED;
goto ioctl_failure;
}
isc_mem_put(mctx, iter->buf, iter->bufsize);
-
+
iter->bufsize *= 2;
}
@@ -167,7 +167,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
*/
iter->pos = (unsigned int) -1;
iter->result = ISC_R_FAILURE;
-
+
iter->magic = IFITER_MAGIC;
*iterp = iter;
return (ISC_R_SUCCESS);
@@ -177,7 +177,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
alloc_failure:
(void) close(iter->socket);
-
+
socket_failure:
isc_mem_put(mctx, iter, sizeof *iter);
return (result);
@@ -196,25 +196,25 @@ internal_current(isc_interfaceiter_t *iter) {
struct lifreq *ifrp;
struct lifreq lifreq;
int family;
-
+
REQUIRE(VALID_IFITER(iter));
REQUIRE (iter->pos < (unsigned int) iter->ifc.lifc_len);
-
+
ifrp = (struct lifreq *)((char *) iter->ifc.lifc_req + iter->pos);
-
+
memset(&lifreq, 0, sizeof lifreq);
memcpy(&lifreq, ifrp, sizeof lifreq);
family = lifreq.lifr_addr.ss_family;
if (family != AF_INET)
- return (ISC_R_IGNORE);
-
+ return (ISC_R_IGNORE);
+
memset(&iter->current, 0, sizeof(iter->current));
iter->current.af = family;
-
+
INSIST(sizeof(lifreq.lifr_name) <= sizeof(iter->current.name));
memcpy(iter->current.name, lifreq.lifr_name, sizeof(lifreq.lifr_name));
-
+
get_addr(family, &iter->current.address,
(struct sockaddr *)&lifreq.lifr_addr);
@@ -223,20 +223,20 @@ internal_current(isc_interfaceiter_t *iter) {
*/
iter->current.flags = 0;
-
+
/*
* Ignore the HP/UX warning about "interger overflow during
* conversion. It comes from its own macro definition,
* and is really hard to shut up.
*/
if (ioctl(iter->socket, SIOCGLIFFLAGS, (char *) &lifreq) < 0) {
- UNEXPECTED_ERROR(__FILE__, __LINE__,
+ UNEXPECTED_ERROR(__FILE__, __LINE__,
"%s: getting interface flags: %s",
lifreq.lifr_name,
strerror(errno));
return (ISC_R_IGNORE);
}
-
+
if ((lifreq.lifr_flags & IFF_UP) != 0)
iter->current.flags |= INTERFACE_F_UP;
@@ -257,7 +257,7 @@ internal_current(isc_interfaceiter_t *iter) {
*/
if (ioctl(iter->socket, SIOCGLIFDSTADDR, (char *)&lifreq)
< 0) {
- UNEXPECTED_ERROR(__FILE__, __LINE__,
+ UNEXPECTED_ERROR(__FILE__, __LINE__,
"%s: getting destination address: %s",
lifreq.lifr_name,
strerror(errno));
@@ -269,7 +269,7 @@ internal_current(isc_interfaceiter_t *iter) {
/*
* Get the network mask.
- */
+ */
memset(&lifreq, 0, sizeof lifreq);
memcpy(&lifreq, ifrp, sizeof lifreq);
switch (family) {
@@ -288,7 +288,7 @@ internal_current(isc_interfaceiter_t *iter) {
return (ISC_R_IGNORE);
}
get_addr(family, &iter->current.netmask,
- (struct sockaddr *)&lifreq.lifr_addr);
+ (struct sockaddr *)&lifreq.lifr_addr);
break;
case AF_INET6: {
#ifdef lifr_addrlen
@@ -308,12 +308,12 @@ internal_current(isc_interfaceiter_t *iter) {
break;
}
}
-
+
return (ISC_R_SUCCESS);
}
/*
- * Step the iterator to the next interface. Unlike
+ * Step the iterator to the next interface. Unlike
* isc_interfaceiter_next(), this may leave the iterator
* positioned on an interface that will ultimately
* be ignored. Return ISC_R_NOMORE if there are no more
@@ -324,9 +324,9 @@ internal_next(isc_interfaceiter_t *iter) {
struct lifreq *ifrp;
REQUIRE (iter->pos < (unsigned int) iter->ifc.lifc_len);
-
+
ifrp = (struct lifreq *)((char *) iter->ifc.lifc_req + iter->pos);
-
+
#ifdef ISC_PLATFORM_HAVESALEN
if (ifrp->lifr_addr.sa_len > sizeof(struct sockaddr))
iter->pos += sizeof(ifrp->lifr_name) + ifrp->lifr_addr.sa_len;
@@ -336,7 +336,7 @@ internal_next(isc_interfaceiter_t *iter) {
if (iter->pos >= (unsigned int) iter->ifc.lifc_len)
return (ISC_R_NOMORE);
-
+
return (ISC_R_SUCCESS);
}
diff --git a/lib/isc/unix/ifiter_sysctl.c b/lib/isc/unix/ifiter_sysctl.c
index 7b903c77df..7740188ca2 100644
--- a/lib/isc/unix/ifiter_sysctl.c
+++ b/lib/isc/unix/ifiter_sysctl.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,13 +15,13 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ifiter_sysctl.c,v 1.9 2000/07/27 09:52:45 tale Exp $ */
+/* $Id: ifiter_sysctl.c,v 1.10 2000/08/01 01:31:20 tale Exp $ */
/*
* Obtain the list of network interfaces using sysctl.
* See TCP/IP Illustrated Volume 2, sections 19.8, 19.14,
* and 19.16.
- */
+ */
#include
#include
@@ -39,7 +39,7 @@
: sizeof(long))
#endif
-#define IFITER_MAGIC 0x49464953U /* IFIS. */
+#define IFITER_MAGIC 0x49464953U /* IFIS. */
#define VALID_IFITER(t) ((t) != NULL && (t)->magic == IFITER_MAGIC)
struct isc_interfaceiter {
@@ -56,23 +56,23 @@ struct isc_interfaceiter {
static int mib[6] = {
CTL_NET,
- PF_ROUTE,
- 0,
+ PF_ROUTE,
+ 0,
0, /* Any address family. */
- NET_RT_IFLIST,
+ NET_RT_IFLIST,
0 /* Flags. */
};
-
+
isc_result_t
isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
isc_interfaceiter_t *iter;
isc_result_t result;
size_t bufsize;
- size_t bufused;
+ size_t bufused;
REQUIRE(mctx != NULL);
REQUIRE(iterp != NULL);
REQUIRE(*iterp == NULL);
-
+
iter = isc_mem_get(mctx, sizeof(*iter));
if (iter == NULL)
return (ISC_R_NOMEMORY);
@@ -85,7 +85,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
*/
bufsize = 0;
if (sysctl(mib, 6, NULL, &bufsize, NULL, (size_t) 0) < 0) {
- UNEXPECTED_ERROR(__FILE__, __LINE__,
+ UNEXPECTED_ERROR(__FILE__, __LINE__,
"getting interface list size: sysctl: %s",
strerror(errno));
result = ISC_R_UNEXPECTED;
@@ -101,7 +101,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
bufused = bufsize;
if (sysctl(mib, 6, iter->buf, &bufused, NULL, (size_t) 0) < 0) {
- UNEXPECTED_ERROR(__FILE__, __LINE__,
+ UNEXPECTED_ERROR(__FILE__, __LINE__,
"getting interface list: sysctl: %s",
strerror(errno));
result = ISC_R_UNEXPECTED;
@@ -116,7 +116,7 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
*/
iter->pos = (unsigned int) -1;
iter->result = ISC_R_FAILURE;
-
+
iter->magic = IFITER_MAGIC;
*iterp = iter;
return (ISC_R_SUCCESS);
@@ -139,34 +139,34 @@ isc_interfaceiter_create(isc_mem_t *mctx, isc_interfaceiter_t **iterp) {
static isc_result_t
internal_current(isc_interfaceiter_t *iter) {
struct ifa_msghdr *ifam, *ifam_end;
-
+
REQUIRE(VALID_IFITER(iter));
REQUIRE (iter->pos < (unsigned int) iter->bufused);
ifam = (struct ifa_msghdr *) ((char *) iter->buf + iter->pos);
ifam_end = (struct ifa_msghdr *) ((char *) iter->buf + iter->bufused);
-
+
if (ifam->ifam_type == RTM_IFINFO) {
struct if_msghdr *ifm = (struct if_msghdr *) ifam;
struct sockaddr_dl *sdl = (struct sockaddr_dl *) (ifm + 1);
unsigned int namelen;
memset(&iter->current, 0, sizeof(iter->current));
-
+
namelen = sdl->sdl_nlen;
if (namelen > sizeof(iter->current.name) - 1)
namelen = sizeof(iter->current.name) - 1;
-
+
memcpy(iter->current.name, sdl->sdl_data, namelen);
iter->current.flags = 0;
if ((ifam->ifam_flags & IFF_UP) != 0)
iter->current.flags |= INTERFACE_F_UP;
-
+
if ((ifam->ifam_flags & IFF_POINTOPOINT) != 0)
iter->current.flags |= INTERFACE_F_POINTTOPOINT;
-
+
if ((ifam->ifam_flags & IFF_LOOPBACK) != 0)
iter->current.flags |= INTERFACE_F_LOOPBACK;
@@ -191,7 +191,7 @@ internal_current(isc_interfaceiter_t *iter) {
continue;
INSIST(sa < (struct sockaddr *) ifam_end);
-
+
switch (i) {
case RTAX_NETMASK: /* Netmask */
mask_sa = sa;
@@ -223,18 +223,18 @@ internal_current(isc_interfaceiter_t *iter) {
if (addr_sa == NULL)
return (ISC_R_IGNORE);
-
+
family = addr_sa->sa_family;
if (family != AF_INET) /* XXX IP6 */
return (ISC_R_IGNORE);
iter->current.af = family;
-
+
get_addr(family, &iter->current.address, addr_sa);
if (mask_sa != NULL)
get_addr(family, &iter->current.netmask, mask_sa);
-
+
if (dst_sa != NULL &&
(iter->current.flags & IFF_POINTOPOINT) != 0)
get_addr(family, &iter->current.dstaddress, dst_sa);
@@ -247,7 +247,7 @@ internal_current(isc_interfaceiter_t *iter) {
}
/*
- * Step the iterator to the next interface. Unlike
+ * Step the iterator to the next interface. Unlike
* isc_interfaceiter_next(), this may leave the iterator
* positioned on an interface that will ultimately
* be ignored. Return ISC_R_NOMORE if there are no more
@@ -257,14 +257,14 @@ static isc_result_t
internal_next(isc_interfaceiter_t *iter) {
struct ifa_msghdr *ifam;
REQUIRE (iter->pos < (unsigned int) iter->bufused);
-
+
ifam = (struct ifa_msghdr *) ((char *) iter->buf + iter->pos);
iter->pos += ifam->ifam_msglen;
if (iter->pos >= iter->bufused)
return (ISC_R_NOMORE);
-
+
return (ISC_R_SUCCESS);
}
diff --git a/lib/isc/unix/include/Makefile.in b/lib/isc/unix/include/Makefile.in
index 58b0addf0a..dd3b10fad0 100644
--- a/lib/isc/unix/include/Makefile.in
+++ b/lib/isc/unix/include/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.9 2000/07/27 09:52:57 tale Exp $
+# $Id: Makefile.in,v 1.10 2000/08/01 01:31:31 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/unix/include/isc/Makefile.in b/lib/isc/unix/include/isc/Makefile.in
index 1467ed3a6a..6da25ed16a 100644
--- a/lib/isc/unix/include/isc/Makefile.in
+++ b/lib/isc/unix/include/isc/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1998-2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.22 2000/07/27 09:52:58 tale Exp $
+# $Id: Makefile.in,v 1.23 2000/08/01 01:31:32 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/unix/include/isc/app.h b/lib/isc/unix/include/isc/app.h
index 76c03fef33..2e2955291a 100644
--- a/lib/isc/unix/include/isc/app.h
+++ b/lib/isc/unix/include/isc/app.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: app.h,v 1.7 2000/07/27 09:52:59 tale Exp $ */
+/* $Id: app.h,v 1.8 2000/08/01 01:31:34 tale Exp $ */
#ifndef ISC_APP_H
#define ISC_APP_H 1
diff --git a/lib/isc/unix/include/isc/dir.h b/lib/isc/unix/include/isc/dir.h
index 33584cba69..44d73a10f6 100644
--- a/lib/isc/unix/include/isc/dir.h
+++ b/lib/isc/unix/include/isc/dir.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dir.h,v 1.10 2000/07/27 09:53:00 tale Exp $ */
+/* $Id: dir.h,v 1.11 2000/08/01 01:31:35 tale Exp $ */
/* Principal Authors: DCL */
diff --git a/lib/isc/unix/include/isc/int.h b/lib/isc/unix/include/isc/int.h
index 2c1569d151..d1a640ef20 100644
--- a/lib/isc/unix/include/isc/int.h
+++ b/lib/isc/unix/include/isc/int.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: int.h,v 1.7 2000/07/27 09:53:01 tale Exp $ */
+/* $Id: int.h,v 1.8 2000/08/01 01:31:36 tale Exp $ */
#ifndef ISC_INT_H
#define ISC_INT_H 1
diff --git a/lib/isc/unix/include/isc/keyboard.h b/lib/isc/unix/include/isc/keyboard.h
index 7bd9e89f6e..26b2c86776 100644
--- a/lib/isc/unix/include/isc/keyboard.h
+++ b/lib/isc/unix/include/isc/keyboard.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keyboard.h,v 1.4 2000/07/31 20:36:08 bwelling Exp $ */
+/* $Id: keyboard.h,v 1.5 2000/08/01 01:31:37 tale Exp $ */
#ifndef ISC_KEYBOARD_H
#define ISC_KEYBOARD_H 1
diff --git a/lib/isc/unix/include/isc/net.h b/lib/isc/unix/include/isc/net.h
index 2cbb12d72f..4cd94e6388 100644
--- a/lib/isc/unix/include/isc/net.h
+++ b/lib/isc/unix/include/isc/net.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: net.h,v 1.22 2000/07/27 09:53:04 tale Exp $ */
+/* $Id: net.h,v 1.23 2000/08/01 01:31:38 tale Exp $ */
#ifndef ISC_NET_H
#define ISC_NET_H 1
diff --git a/lib/isc/unix/include/isc/netdb.h b/lib/isc/unix/include/isc/netdb.h
index aa390f1fc3..dcca04000a 100644
--- a/lib/isc/unix/include/isc/netdb.h
+++ b/lib/isc/unix/include/isc/netdb.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: netdb.h,v 1.4 2000/07/27 09:53:05 tale Exp $ */
+/* $Id: netdb.h,v 1.5 2000/08/01 01:31:39 tale Exp $ */
#ifndef ISC_NETDB_H
#define ISC_NETDB_H 1
diff --git a/lib/isc/unix/include/isc/offset.h b/lib/isc/unix/include/isc/offset.h
index a7e356024d..a63ab443c6 100644
--- a/lib/isc/unix/include/isc/offset.h
+++ b/lib/isc/unix/include/isc/offset.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: offset.h,v 1.8 2000/07/27 09:53:06 tale Exp $ */
+/* $Id: offset.h,v 1.9 2000/08/01 01:31:40 tale Exp $ */
#ifndef ISC_OFFSET_H
#define ISC_OFFSET_H 1
diff --git a/lib/isc/unix/include/isc/stdtime.h b/lib/isc/unix/include/isc/stdtime.h
index 6062716f29..5dfa31ea6e 100644
--- a/lib/isc/unix/include/isc/stdtime.h
+++ b/lib/isc/unix/include/isc/stdtime.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: stdtime.h,v 1.6 2000/07/27 09:53:07 tale Exp $ */
+/* $Id: stdtime.h,v 1.7 2000/08/01 01:31:41 tale Exp $ */
#ifndef ISC_STDTIME_H
#define ISC_STDTIME_H 1
diff --git a/lib/isc/unix/include/isc/time.h b/lib/isc/unix/include/isc/time.h
index 1b114a74bf..366d367092 100644
--- a/lib/isc/unix/include/isc/time.h
+++ b/lib/isc/unix/include/isc/time.h
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.h,v 1.23 2000/07/27 09:53:08 tale Exp $ */
+/* $Id: time.h,v 1.24 2000/08/01 01:31:42 tale Exp $ */
#ifndef ISC_TIME_H
#define ISC_TIME_H 1
diff --git a/lib/isc/unix/interfaceiter.c b/lib/isc/unix/interfaceiter.c
index c0ad61c879..f8ddb803a2 100644
--- a/lib/isc/unix/interfaceiter.c
+++ b/lib/isc/unix/interfaceiter.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: interfaceiter.c,v 1.18 2000/07/27 09:52:46 tale Exp $ */
+/* $Id: interfaceiter.c,v 1.19 2000/08/01 01:31:21 tale Exp $ */
#include
@@ -44,14 +44,14 @@
/*
* Extract the network address part from a "struct sockaddr".
- *
+ *
* The address family is given explicity
* instead of using src->sa_family, because the latter does not work
* for copying a network mask obtained by SIOCGIFNETMASK (it does
* not have a valid address family).
*/
-static void
+static void
get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src) {
dst->family = family;
switch (family) {
@@ -98,12 +98,12 @@ isc_result_t
isc_interfaceiter_first(isc_interfaceiter_t *iter) {
isc_result_t result;
- REQUIRE(VALID_IFITER(iter));
+ REQUIRE(VALID_IFITER(iter));
iter->pos = 0;
for (;;) {
result = internal_current(iter);
- if (result != ISC_R_IGNORE)
+ if (result != ISC_R_IGNORE)
break;
result = internal_next(iter);
if (result != ISC_R_SUCCESS)
@@ -116,7 +116,7 @@ isc_interfaceiter_first(isc_interfaceiter_t *iter) {
isc_result_t
isc_interfaceiter_next(isc_interfaceiter_t *iter) {
isc_result_t result;
-
+
REQUIRE(VALID_IFITER(iter));
REQUIRE(iter->result == ISC_R_SUCCESS);
diff --git a/lib/isc/unix/ipv6.c b/lib/isc/unix/ipv6.c
index f765dc6606..3a96dd8e23 100644
--- a/lib/isc/unix/ipv6.c
+++ b/lib/isc/unix/ipv6.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ipv6.c,v 1.5 2000/07/27 09:52:47 tale Exp $ */
+/* $Id: ipv6.c,v 1.6 2000/08/01 01:31:22 tale Exp $ */
#include
diff --git a/lib/isc/unix/keyboard.c b/lib/isc/unix/keyboard.c
index beb5b4d30b..fbcaa48b84 100644
--- a/lib/isc/unix/keyboard.c
+++ b/lib/isc/unix/keyboard.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: keyboard.c,v 1.6 2000/07/31 20:36:07 bwelling Exp $ */
+/* $Id: keyboard.c,v 1.7 2000/08/01 01:31:23 tale Exp $ */
#include
diff --git a/lib/isc/unix/net.c b/lib/isc/unix/net.c
index e589032a28..2e2afdcd90 100644
--- a/lib/isc/unix/net.c
+++ b/lib/isc/unix/net.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: net.c,v 1.11 2000/07/27 09:52:50 tale Exp $ */
+/* $Id: net.c,v 1.12 2000/08/01 01:31:24 tale Exp $ */
#include
diff --git a/lib/isc/unix/os.c b/lib/isc/unix/os.c
index ce48cbf634..a8c11e9772 100644
--- a/lib/isc/unix/os.c
+++ b/lib/isc/unix/os.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: os.c,v 1.4 2000/07/27 09:52:51 tale Exp $ */
+/* $Id: os.c,v 1.5 2000/08/01 01:31:25 tale Exp $ */
#include
diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c
index b6d2398208..52b36069f3 100644
--- a/lib/isc/unix/socket.c
+++ b/lib/isc/unix/socket.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: socket.c,v 1.152 2000/07/27 09:52:52 tale Exp $ */
+/* $Id: socket.c,v 1.153 2000/08/01 01:31:27 tale Exp $ */
#include
@@ -1256,7 +1256,7 @@ isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp) {
LOCK(&sock->lock);
sock->references++;
UNLOCK(&sock->lock);
-
+
*socketp = sock;
}
@@ -1264,7 +1264,7 @@ isc_socket_attach(isc_socket_t *sock, isc_socket_t **socketp) {
* Dereference a socket. If this is the last reference to it, clean things
* up by destroying the socket.
*/
-void
+void
isc_socket_detach(isc_socket_t **socketp) {
isc_socket_t *sock;
isc_boolean_t kill_socket = ISC_FALSE;
@@ -1279,7 +1279,7 @@ isc_socket_detach(isc_socket_t **socketp) {
if (sock->references == 0)
kill_socket = ISC_TRUE;
UNLOCK(&sock->lock);
-
+
if (kill_socket)
destroy(&sock);
@@ -1810,7 +1810,7 @@ watcher(void *uap) {
}
}
#endif
-
+
UNLOCK(&manager->lock);
cc = select(maxfd, &readfds, &writefds, NULL, NULL);
@@ -1931,9 +1931,9 @@ watcher(void *uap) {
manager->fdstate[i] = CLOSED;
FD_CLR(i, &manager->read_fds);
FD_CLR(i, &manager->write_fds);
-
+
close(i);
-
+
continue;
}
@@ -1995,7 +1995,7 @@ isc_socketmgr_create(isc_mem_t *mctx, isc_socketmgr_t **managerp) {
manager = isc_mem_get(mctx, sizeof *manager);
if (manager == NULL)
return (ISC_R_NOMEMORY);
-
+
manager->magic = SOCKET_MANAGER_MAGIC;
manager->mctx = NULL;
memset(manager->fds, 0, sizeof(manager->fds));
diff --git a/lib/isc/unix/stdio.c b/lib/isc/unix/stdio.c
index 0e2f5bb0e5..67e42b65b4 100644
--- a/lib/isc/unix/stdio.c
+++ b/lib/isc/unix/stdio.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: stdio.c,v 1.3 2000/07/27 09:52:53 tale Exp $ */
+/* $Id: stdio.c,v 1.4 2000/08/01 01:31:28 tale Exp $ */
#include
@@ -29,7 +29,7 @@
isc_result_t
isc_stdio_open(const char *filename, const char *mode, FILE **fp) {
FILE *f;
-
+
f = fopen(filename, mode);
if (f == NULL)
return (isc__errno2result(errno));
@@ -63,7 +63,7 @@ isc_result_t
isc_stdio_read(void *ptr, size_t size, size_t nmemb, FILE *f, size_t *nret) {
isc_result_t result = ISC_R_SUCCESS;
size_t r;
-
+
clearerr(f);
r = fread(ptr, size, nmemb, f);
if (r != nmemb) {
@@ -83,7 +83,7 @@ isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
{
isc_result_t result = ISC_R_SUCCESS;
size_t r;
-
+
clearerr(f);
r = fwrite(ptr, size, nmemb, f);
if (r != nmemb)
@@ -96,7 +96,7 @@ isc_stdio_write(const void *ptr, size_t size, size_t nmemb, FILE *f,
isc_result_t
isc_stdio_flush(FILE *f) {
int r;
-
+
r = fflush(f);
if (r == 0)
return (ISC_R_SUCCESS);
@@ -107,7 +107,7 @@ isc_stdio_flush(FILE *f) {
isc_result_t
isc_stdio_sync(FILE *f) {
int r;
-
+
r = fsync(fileno(f));
if (r == 0)
return (ISC_R_SUCCESS);
diff --git a/lib/isc/unix/stdtime.c b/lib/isc/unix/stdtime.c
index d6fa1f5dc4..9db52e17fe 100644
--- a/lib/isc/unix/stdtime.c
+++ b/lib/isc/unix/stdtime.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1999, 2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: stdtime.c,v 1.8 2000/07/27 09:52:55 tale Exp $ */
+/* $Id: stdtime.c,v 1.9 2000/08/01 01:31:29 tale Exp $ */
#include
@@ -32,9 +32,9 @@ isc_stdtime_get(isc_stdtime_t *t) {
* Set 't' to the number of seconds since 00:00:00 UTC, January 1,
* 1970.
*/
-
+
REQUIRE(t != NULL);
-
+
RUNTIME_CHECK(gettimeofday(&tv, NULL) != -1);
INSIST(tv.tv_usec >= 0 && tv.tv_usec < 1000000);
diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c
index 0893bbc804..f6dc61e0bb 100644
--- a/lib/isc/unix/time.c
+++ b/lib/isc/unix/time.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: time.c,v 1.27 2000/07/27 09:52:56 tale Exp $ */
+/* $Id: time.c,v 1.28 2000/08/01 01:31:30 tale Exp $ */
#include
@@ -34,7 +34,7 @@
#define US_PER_S 1000000 /* Microseconds per second. */
/*
- * All of the INSIST()s checks of nanoseconds < NS_PER_S are for
+ * All of the INSIST()s checks of nanoseconds < NS_PER_S are for
* consistency checking of the type. In lieu of magic numbers, it
* is the best we've got. The check is only performed on functions which
* need an initialized type.
@@ -137,9 +137,9 @@ isc_time_now(isc_time_t *t) {
/*
* Set *t to the current absolute time.
*/
-
+
REQUIRE(t != NULL);
-
+
if (gettimeofday(&tv, NULL) == -1) {
UNEXPECTED_ERROR(__FILE__, __LINE__, strerror(errno));
return (ISC_R_UNEXPECTED);
@@ -156,7 +156,7 @@ isc_time_now(isc_time_t *t) {
return (ISC_R_UNEXPECTED);
/*
- * Ensure the tv_sec value fits in t->seconds.
+ * Ensure the tv_sec value fits in t->seconds.
*/
if (sizeof(tv.tv_sec) > sizeof(t->seconds) &&
((tv.tv_sec | (unsigned int)-1) ^ (unsigned int)-1) != 0)
@@ -175,7 +175,7 @@ isc_time_nowplusinterval(isc_time_t *t, isc_interval_t *i) {
/*
* Set *t to the current absolute time + i.
*/
-
+
REQUIRE(t != NULL);
REQUIRE(i != NULL);
INSIST(i->nanoseconds < NS_PER_S);
@@ -342,7 +342,7 @@ isc_time_secondsastimet(isc_time_t *t, time_t *secondsp) {
* about "signed versus unsigned" while trying to determine if the
* the unsigned int t->seconds is out range for tv_sec, which is
* pretty much only true if time_t is a signed integer of the same
- * size as the return value of isc_time_seconds.
+ * size as the return value of isc_time_seconds.
*
* The use of the 64 bit integer ``i'' takes advantage of C's
* conversion rules to either zero fill or sign extend the widened
diff --git a/lib/isc/version.c b/lib/isc/version.c
index 6d1f3eed42..a1aa355bfa 100644
--- a/lib/isc/version.c
+++ b/lib/isc/version.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: version.c,v 1.7 2000/07/27 09:51:20 tale Exp $ */
+/* $Id: version.c,v 1.8 2000/08/01 01:29:54 tale Exp $ */
char isc_version[] = VERSION;
diff --git a/lib/isc/win32/Makefile.in b/lib/isc/win32/Makefile.in
index 10670cc17d..75d9efadd9 100644
--- a/lib/isc/win32/Makefile.in
+++ b/lib/isc/win32/Makefile.in
@@ -1,9 +1,9 @@
# Copyright (C) 1999, 2000 Internet Software Consortium.
-#
+#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -13,7 +13,7 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-# $Id: Makefile.in,v 1.6 2000/07/27 09:53:09 tale Exp $
+# $Id: Makefile.in,v 1.7 2000/08/01 01:31:44 tale Exp $
srcdir = @srcdir@
VPATH = @srcdir@
diff --git a/lib/isc/win32/condition.c b/lib/isc/win32/condition.c
index 7f8eb2459c..f9b04f49ae 100644
--- a/lib/isc/win32/condition.c
+++ b/lib/isc/win32/condition.c
@@ -1,10 +1,10 @@
/*
* Copyright (C) 1998-2000 Internet Software Consortium.
- *
+ *
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: condition.c,v 1.13 2000/07/27 09:53:10 tale Exp $ */
+/* $Id: condition.c,v 1.14 2000/08/01 01:31:45 tale Exp $ */
#include