2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

4372 Commits

Author SHA1 Message Date
David Lawrence
5d49890aca isc/net.h required for ntohl on some platforms 2000-05-08 20:18:35 +00:00
David Lawrence
f675434978 return rather than exit from main() to shut up HP/UX 2000-05-08 20:12:46 +00:00
David Lawrence
8e591e2046 "do { ... } while (1)" to shut up HP/UX 2000-05-08 20:07:58 +00:00
David Lawrence
edf7c005be return(1) rather than exit(1) from main() to shut up HP/UX 2000-05-08 20:06:05 +00:00
Michael Graff
ab7c671292 add <stdlib.h> for mkstemp on NetBSD 2000-05-08 20:05:27 +00:00
David Lawrence
8764af86f7 /*
* Compilers that use an older prototype for recvfrom() will
	 * warn about the type of the sixth parameter, fromlen.  It
	 * is now standardized as unsigned, specifically as socklen_t.
	 */

(... but the code itself still uses unsigned int.  This comment was added
because HP/UX is complaining now even as other compilers stopped complaining
when it was changed from signed int to unsigned int.)
2000-05-08 19:53:50 +00:00
James Brister
131c2e2e9d No longer validate category names upon config file parsing. 2000-05-08 19:52:03 +00:00
David Lawrence
7bb0f11636 stdlib.h needed on HP/UX for abs() 2000-05-08 19:30:10 +00:00
David Lawrence
6028d1ce03 Needs string.h for function prototypes. For some reason gcc and other
compilers do not warn about the missing str*/mem* prototypes.
2000-05-08 19:23:32 +00:00
David Lawrence
64574939c4 Removed useless third parameter to MPINIT macro which was always true,
because it was causing HP/UX to barf up eight lines of:

cc: "adb.c", line 2219: warning 509: Condition always evaluates to true: If clause will always be executed.
2000-05-08 18:47:02 +00:00
James Brister
e06abf2270 Update for unistd.h and conflog.c changes. 2000-05-08 18:45:12 +00:00
James Brister
a466582ff0 Copy functions were not assigning result to output parameter. Now they are. 2000-05-08 18:42:38 +00:00
James Brister
3cb5571edf Include unistd.h so FreeBSD doesn't complain about getopt() prototype
missing.
2000-05-08 18:37:58 +00:00
David Lawrence
454e318ef6 include string.h for memcpy; gcc fails to warn about its absence, but hp doesn't 2000-05-08 18:37:22 +00:00
David Lawrence
28beeb7067 fromlen changed from int to unsigned int 2000-05-08 17:57:01 +00:00
David Lawrence
5990bedbac changed authlen from signed int to unsigned int in omapi_message_send 2000-05-08 16:32:23 +00:00
David Lawrence
6e3a8256ee need <sys/time.h> on some platforms 2000-05-08 16:30:49 +00:00
David Lawrence
8abddcd3f2 rdata.c needs to include string.h before memcpy is used.
since rdata.c is including string.h, the individual rdata files do not need to.
2000-05-08 16:12:30 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
595babf627 Many changes that I'm sure probably no one cares about enough to
discuss, since I think I'm the only one who has ever run this
or probably ever will.

Still far from perfect, of course.  It's just an auxiliary tool that
whose output needs human interpretation.

But basically ...
   see whether a public header will compile stand-alone.
   recommend ISC_MAGIC_VALID where appropriate.
   use "print" consistent throughout, instead of print/warn.
   ignore a couple of special files.
   fixed some conditions that caused premature termination of checking
2000-05-08 14:15:44 +00:00
David Lawrence
d5b840e737 check redundant/useless header file inclusion in source modules 2000-05-08 14:08:46 +00:00
David Lawrence
41da7fdc55 "no references to to memory" -> "no references to memory"
Wrapped a line that was exactly 80 columns.
CVe: ----------------------------------------------------------------------
2000-05-08 13:58:47 +00:00
David Lawrence
81e92fbafa Some files are co-copyright with Network Associates 2000-05-08 13:52:42 +00:00
David Lawrence
0e5b8234ba don't build sdig by default, now that a full-featured dig is available 2000-05-08 13:35:02 +00:00
David Lawrence
6245328332 build dig/host before bulding tests 2000-05-08 13:34:07 +00:00
David Lawrence
a8d1c8621c comment about SHUTUP_SPUTAUX 2000-05-08 13:26:16 +00:00
James Brister
e411a986b9 Update for new 'database' statement in zone. 2000-05-08 12:54:31 +00:00
Mark Andrews
c6ce77b4dc 155. [bug] ns_notify_start() was not detaching the found zone. 2000-05-08 07:26:37 +00:00
Michael Graff
163bf7444f A slight hack to make bsdi 4.01 work again, since it needs netinet6/in6.h to be included 2000-05-06 22:53:20 +00:00
James Brister
65c9645ca7 Support new 'database' statement in zone.
database "quoted-string";
2000-05-06 10:18:48 +00:00
Michael Graff
7aedafe2e3 remove debugging echo 2000-05-06 02:15:10 +00:00
Michael Graff
6c41175537 add isc_sockaddr_any() and isc_sockaddr_any6 to set up a wildcarded address/port for v4 and v6 sockaddrs 2000-05-06 01:49:43 +00:00
Michael Graff
96e3bc37e6 document that before send*() or recv*() may be called, the socket must be bound either via connect() or bind() 2000-05-06 01:49:07 +00:00
Michael Graff
ece3d6c356 Cause runtime probing of v6 addresses to fail, even if we can actually
make v6 sockets, but we do not have struct in6_pktinfo.

Add a check in configure.in for struct in6_pktinfo.

Use the result of that check to define (if needed) in6_pktinfo in net.h.

This change makes us build on platforms that have SOME ipv6 structures
(like in6_addr, etc) but not enough to be useful to us.

Note:  Before making an ipv6 socket the code should verify that ipv6
sockets can be made using isc_net_probeipv6().  It should also
check for v4 sockets using isc_net_probeipv4() to be consistant.
2000-05-06 01:30:32 +00:00
Michael Graff
7c80c51030 include libtool.m4 from aclocal.m4, to make upgrading libtool easier. aclocal.m4 may shortly get more macros. 2000-05-06 01:26:57 +00:00
Michael Sawyer
6c7a2db63c Add +trace option, change some of the behavior of other options. 2000-05-06 01:16:07 +00:00
Andreas Gustafsson
76a33ffee5 log dns library warnings to stderr even when not verbose;
do not prefix stderr messages with time stamp
2000-05-06 00:54:14 +00:00
Andreas Gustafsson
1d7172079d typos 2000-05-06 00:53:49 +00:00
Andreas Gustafsson
2e6c976751 include severity level in log messages printed on stderr 2000-05-06 00:50:41 +00:00
Andreas Gustafsson
b4780360a4 log dns library warnings to stderr even when not verbose;
do not prefix stderr messages with time stamp
2000-05-06 00:48:53 +00:00
Mark Andrews
5159c42783 153. [func] dns_rdata_tostruct() 'mxtc' is now optional. If 'mctx'
is NULL then you need to preserve the 'rdata' until
                      you have finished using the structure as there may be
                      references to the associated memory.  If 'mctx' is non
                      NULL it is guarenteed that there are no references to
                      to memory addsociated with 'rdata'.

                      dns_rdata_freestruct() must be called if 'mctx' was
                      non NULL and may safely be called if 'mctx' was NULL.

Finish implementing 153 for IN specific types.
naptr_35.h some of the lengths should be 8 bits.
2000-05-05 23:20:10 +00:00
Andreas Gustafsson
3364cad7e4 keygen dumped core if domain name argument was omitted from
command line
2000-05-05 20:15:48 +00:00
Andreas Gustafsson
dd3fc76a33 item 148 contained multiple user-visible changes and was
labeled [func + cleanup]; split it into multiple items
2000-05-05 20:14:56 +00:00
Andreas Gustafsson
01757e5311 added check for missing domain name argument 2000-05-05 19:55:56 +00:00
Andreas Gustafsson
e79be811b0 cannot use 'inline' in header files because <config.h> has
not been included yet to undefine it on platforms that do not support it
2000-05-05 18:22:16 +00:00
Andreas Gustafsson
5466ce3f27 fromstruct_* functions needlessly used dns_name_towire() to do
a simple name data copy, thereby requiring a non-NULL mctx
2000-05-05 18:15:02 +00:00
Andreas Gustafsson
f830ac6764 dns_name_fromwire:5 test expected dns_name_fromwire() to
detect unwanted compression but did not set the 'strict' flag
2000-05-05 17:48:57 +00:00
Andreas Gustafsson
bffbdf7545 cache all response RRs before validating 2000-05-05 17:26:47 +00:00
Andreas Gustafsson
8d501088b7 tostruct_ns() used the wrong mctx 2000-05-05 17:24:21 +00:00
Mark Andrews
9281e7aa77 Implement / convert to new API for tostuct() and freestruct().
Define dns_rdata_loc_t structure.
x25 length is only 8 bits.
2000-05-05 05:50:14 +00:00