2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 21:47:59 +00:00

794 Commits

Author SHA1 Message Date
Michael Graff
b206fa17b2 allocate space for cmsg more correctly. Grr. 2000-03-15 20:05:06 +00:00
Michael Graff
788354c051 Currently, descriptors with changes are sent to the watcher via a pipe.
Previously, both ends were set to non-blocking I/O.  Now, only the
reader is set non-blocking.  This means the writer will block for a while
if the pipe fills, but since the watcher is in a different thread from
the reader, the pipe will eventually drain, and the writer can continue.

This is really nothing more than a lock, just not a mutex-type lock.
2000-03-15 19:48:11 +00:00
Bob Halley
4dcfb5fb22 lint 2000-03-14 19:27:55 +00:00
Michael Graff
ae8d0aedd6 implement pktinfo through dispatcher -> named client 2000-03-14 03:30:52 +00:00
Michael Graff
0205c5a4ad fix case where CMSG_SPACE() is not a macro 2000-03-13 21:09:56 +00:00
David Lawrence
912ccd2554 include milliseconds when doing ISC_LOG_PRINTTIME 2000-03-10 17:53:16 +00:00
David Lawrence
11d732daac added isc_time_seconds, isc_time_nanoseconds
fixed isc_time_settoepoch and isc_time_isepoch
2000-03-10 17:50:36 +00:00
David Lawrence
114d0d1642 added isc_time_seconds, isc_time_nanoseconds 2000-03-10 17:49:27 +00:00
David Lawrence
1be10d46cb require name != NULL in *byname 2000-03-04 16:41:14 +00:00
David Lawrence
ff30a206ec added isc_log_categorybyname and isc_log_modulebyname 2000-03-04 00:43:40 +00:00
James Brister
20fc568036 isc_mem_allocate debug macro had too many arguments. 2000-03-02 04:00:46 +00:00
David Lawrence
a8d34ca88c remove ISC_LOG_DEBUGONLY from comment about default_debug 2000-03-01 21:30:49 +00:00
Andreas Gustafsson
1620f03517 don't set ISC_LOG_DEBUGONLY on the default_debug channel 2000-03-01 20:38:58 +00:00
David Lawrence
863ac191b4 ISC_LOG_DEBUGONLY flag added.
Documentation updates to reflect recent code changes:
   isc_logconfig_*
   ISC_LOG_DEBUGONLY
2000-03-01 17:33:04 +00:00
David Lawrence
a40cc3249f isc_logchannel, isc_logchannellist, and isc_logmessage now use the isc list
macros.

ISC_LOG_DEBUGONLY flag for a channel added, to mark a channel that should
only be used if the debugging level is non-zero.

Use ISC_LOG_DEBUGONLY for default_debug.

REQUIRE the context is valid for isc_logconfig_get, and ENSURE that
the configuration returned is non-NULL.

Other miscellaneous cleanups.
2000-03-01 17:31:56 +00:00
David Lawrence
5f89718b7d Debugging versions of isc_mem_allocate, isc_mem_free and isc_mem_strdup.
This allows memory allocation/freeing to be tracked with ISC_MEM_DEBUG
as with isc_mem_get/isc_mem_put.   (To get the debugging information
before, mem.c itself needed to be recompiled with ISC_MEM_DEBUG on.)
2000-02-26 19:59:30 +00:00
David Lawrence
edcd1247ad isc_log_create now has three parameters, the additional one used to
return an isc_logconfig_t.  isc_log_cretechannel and isc_log_usechannel
now take an isc_logconfig_t instead of an isc_log_t; this is to address
reconfiguration in a multithreaded environment.

isc_logconfig_create, isc_logconfig_get, isc_logconfig_use and
isc_logconfig_destroy were added to work with the new isc_logconfig_t type.

isc_logregister_categories and dns_log_init are now both void rather than
returning isc_result_t.
2000-02-26 19:57:02 +00:00
Andreas Gustafsson
193738b819 introduced @SA@ macro for use as the filename extension
of static library archive files in Makefile rules
2000-02-23 23:02:28 +00:00
Andreas Gustafsson
453393955a inappropriate use of @A@ caused definition of
> two conflicting rules for building libisc.la when using
libtool (RT #62)
2000-02-23 18:12:31 +00:00
Andreas Gustafsson
c0d0a59d1b removed newlines from UNEXPECTED_ERROR() messages 2000-02-17 19:58:59 +00:00
Andreas Gustafsson
b356893425 added isc_netaddr_equal() 2000-02-15 00:28:48 +00:00
Andreas Gustafsson
cae053a51f INSIST that no quota is in use when the quota object is
destroyed
2000-02-10 22:17:54 +00:00
James Brister
80d19f3523 Support ondestroy notification for isc_mem_t. 2000-02-10 16:10:41 +00:00
James Brister
71a1b26df0 Build ondestroy.c now too. 2000-02-10 16:09:44 +00:00
James Brister
e32ccd2b77 Supporting type and routines for ondestroy event notifcation. 2000-02-10 16:05:13 +00:00
Andreas Gustafsson
5d82424f5d New source file netaddr.c; new functions isc_netaddr_eqprefix(),
isc_netaddr_masktoprefixlen(), isc_netaddr_fromsockaddr(),
isc_netaddr_fromin(), isc_netaddr_fromin6(), isc_sockaddr_fromnetaddr();
new result code ISC_R_MASKNONCONTIG
2000-02-09 22:52:37 +00:00
Andreas Gustafsson
427c9218c2 isc_socket_connect() leaked memory when connect() returned
EHOSTUNREACH
2000-02-09 19:02:40 +00:00
Bob Halley
a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Bob Halley
927aa19430 fix incorrect memcpy() in resize [RT 15] 2000-02-07 19:11:59 +00:00
Andreas Gustafsson
e46ff30aec ignore IPv6 interfaces before attempting to get their flags;
they are ignored by named anyway, and getting their flags seems to fail on
Solaris 8ea (RT #16)
2000-02-07 18:59:39 +00:00
Andreas Gustafsson
461a00bbde ignore any ioctl() errors that may occur during interface
iteration (after reporting them); in particular, do not INSIST() that
no such errors occur.  Clarify the way this works by using the new
ISC_R_IGNORE result code.
2000-02-07 18:39:20 +00:00
Andreas Gustafsson
3a2487c9e3 added new result code ISC_R_IGNORE, to be used
by the interface iterator internals to indicate that an
interface is to be ignored.  Previously ISC_R_FAILURE was
used for this purpose.
2000-02-07 18:35:37 +00:00
Bob Halley
4dafa5b8ed add missing .h files 2000-02-04 01:41:25 +00:00
Bob Halley
ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Michael Graff
5726326ccd fix? a socket problem with canceling things, again 2000-02-02 19:00:01 +00:00
David Lawrence
6ad69891ee use ISC_PLATFORM_NETINET6_IN6_H, don't use config.h 2000-02-02 13:26:22 +00:00
David Lawrence
2b556032fd (un)define ISC_PLATFORM_HAVENETINET6IN6H 2000-02-02 13:25:22 +00:00
Bob Halley
6e1e90b9b6 Undo 1.100 which caused problems on platforms other than Linux. 2000-02-02 02:34:30 +00:00
Andreas Gustafsson
7b24a94d11 typo in comment 2000-02-02 00:41:26 +00:00
Andreas Gustafsson
d5017b061c typo in comment 2000-02-02 00:38:28 +00:00
Andreas Gustafsson
386fef57fa don't write to freed memory 2000-02-01 17:27:23 +00:00
Andreas Gustafsson
f316fb9a63 needless use of void pointers made debugging hard 2000-02-01 00:18:35 +00:00
David Lawrence
c5f33ba0f0 added isc_sockaddr_getport 2000-01-31 21:52:17 +00:00
Andreas Gustafsson
994a1996e4 spell ISC_*_H in uppercase 2000-01-31 17:41:49 +00:00
Andreas Gustafsson
3d659a692a mkstemp() requires <stdlib.h> on NetBSD 2000-01-31 17:36:02 +00:00
Mark Andrews
b1058f88f9 Add isc_mktemplate and isc_ufile 2000-01-31 07:31:31 +00:00
Mark Andrews
d2f992a5fb Only use %ll? when long long int != long int. 2000-01-28 01:48:45 +00:00
Mark Andrews
8a1930d026 Add test for long long int == long int. 2000-01-28 01:47:25 +00:00
Bob Halley
2314617d4a Fix problem with canceling connecting sockets.
The manager will no longer try to dispatch internal events for dead sockets,
preventing a situation where the ref count could go from 0 back to 1!
2000-01-28 01:31:21 +00:00
Bob Halley
043c6c62e6 add isc_sockaddr_setport() 2000-01-26 19:22:41 +00:00