2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00
Commit Graph

658 Commits

Author SHA1 Message Date
David Lawrence
229f8a97f7 duplicate log message filtering functionality via isc_log_write1() and
isc_log_vwrite1(), configurable over X seconds using
isc_log_setduplicateinterval().

isc_log_vwrite renamed to static isc_log_doit(), isc_log_vwrite() created
as wrapper for isc_log_doit().

don't do a second test on ISC_LOG_PRINTLEVEL when logging the message to add
a colon-space, since the colon-space is already in level_string.

print "no_module: " if a module has not been specified (but PRINTMODULE was),
to keep tokenization nice and clean for future log-file parsing programs
without looking quite like a bug, which is what happens with:
  Oct 25 15:51:07 dns_general: : notice: This should be in file 1/1
instead of
  Oct 25 15:51:07 dns_general: no_module: notice: This should be in file 1/1
1999-10-25 19:55:06 +00:00
David Lawrence
1b038dbf06 Prototypes and documentation for isc_log_write1(), isc_log_vwrite1(),
isc_log_setduplicateinterval() and isc_log_getduplicateinterval().
1999-10-25 19:47:42 +00:00
Bob Halley
bad8294771 add const to filename args 1999-10-25 18:42:09 +00:00
Mark Andrews
42c479991f in6addr_any and in6addr_loopback should be "const" 1999-10-25 16:33:13 +00:00
Mark Andrews
0f0ed7ea47 Add "const" to input only arguements. 1999-10-25 14:37:04 +00:00
Mark Andrews
8cdac11df1 Correct comment 1999-10-25 13:11:13 +00:00
James Brister
54570ba7ff Added isc_sockaddr_eqaddr and its protoype: compares only the addresses
(and not the port values) of two isc_sockaddr_t.
1999-10-25 10:07:37 +00:00
Bob Halley
f0f28e6ac3 nitpicking 1999-10-23 00:28:53 +00:00
Bob Halley
d409ceeda4 do not require ': ' in module/category names 1999-10-22 19:30:38 +00:00
Michael Graff
88d0cafafc add random.h 1999-10-22 00:58:47 +00:00
Andreas Gustafsson
584ba0e67d Created a new type isc_taskpool_t, a pool of isc_task_t
objects to be shared by multiple users.  This is intended for use by things
like zones, which would need hordes of tasks if each one had a separate task.
1999-10-21 00:32:15 +00:00
Michael Graff
09dbb18c6d add isc_random_t, and all the isc_random_*() function to use it. Right now it is
a pretty empty type, but it would be good to flesh it out so each random state
will be separated from one another.  Right now they all just lock
around rand(), which isn't perfect, but good enough for what I need
today.
1999-10-20 23:25:17 +00:00
Michael Graff
78b2f25c9a add isc_mem_setname() 1999-10-19 01:22:39 +00:00
David Lawrence
ea872078bf define isc_interval_zero and isc_time_epoch 1999-10-17 22:26:09 +00:00
James Brister
59c6f0e26b If logging context is NULL in isc_log_vwrite(), then bail before
doing any REQUIREs that require it being non-NULL.
1999-10-15 19:04:38 +00:00
Michael Graff
e4b9761b0e fix mismatched parans 1999-10-13 22:52:42 +00:00
David Lawrence
98c29e4bd3 cast a suitably range checked long to isc_uint8_t when assigned to isc_uint8_t 1999-10-11 20:16:33 +00:00
David Lawrence
7046378cf8 include isc/print.h for vsnprintf 1999-10-11 16:10:06 +00:00
David Lawrence
135808ceb1 use vsnprintf, now portable because of isc/print.c.
removed static forward declaration of isc_log_vwrite(), now public.
declared assignchannel() as static.
1999-10-11 14:50:51 +00:00
David Lawrence
899f7f9af5 ah, oops. need stdargs.h for va_list type. 1999-10-11 14:12:31 +00:00
David Lawrence
6ffc076c08 isc_log_vwrite is now a public function 1999-10-11 13:28:49 +00:00
David Lawrence
00a1623a59 isc_log_vwrite is now a public function 1999-10-11 13:16:42 +00:00
James Brister
5f42ef032d Fixed CPP macro name that wasn't changed when platform.h was created. 1999-10-10 17:11:41 +00:00
Mark Andrews
fce52c2b8c `A prototype should be a prototype. 1999-10-09 13:24:37 +00:00
David Lawrence
4ad9b25e6d new function isc_time_microdiff 1999-10-09 02:40:32 +00:00
David Lawrence
d3e7d196cd isc_time_millidiff is now isc_time_microdiff 1999-10-09 02:39:53 +00:00
Andreas Gustafsson
91c49d591c use ISC_PLATFORM_HAVESALEN, not ISC_NET_HAVESALEN 1999-10-09 01:31:29 +00:00
David Lawrence
25ebcfe710 fixed some string manipulation that was aesthetically unpleasing to me.
it must have been the percocet that made me do it the other way.  sorry.
1999-10-08 21:55:31 +00:00
Bob Halley
139154bd98 fix the makefile fixes added because nmake sucks 1999-10-08 16:40:38 +00:00
Bob Halley
5d454a5920 using $? is bad 1999-10-07 16:28:23 +00:00
David Lawrence
83e8c58817 moved to unix/include/isc/int.h 1999-10-07 02:39:23 +00:00
David Lawrence
eac339874d no more unistd.h; use remove() from stdio rather than unlink() 1999-10-07 02:10:10 +00:00
David Lawrence
bc39100623 added "-I ../unix/include" ... because ultimately int.h needs to go there, and currently i need the unix string changed to win32 when building on NT 1999-10-06 19:48:27 +00:00
David Lawrence
7c47a2a03c netdb.h for win32 1999-10-06 19:43:19 +00:00
David Lawrence
a72b5fec9d makefiles and cvsignores for the win32 subtree 1999-10-06 19:41:39 +00:00
David Lawrence
156d37e2dc dir.h added to HEADERS 1999-10-06 19:41:01 +00:00
David Lawrence
09da984c2c commandline.h added to HEADERS 1999-10-06 19:40:20 +00:00
David Lawrence
f164ff7b52 win32 needs inet_pton() 1999-10-06 19:37:25 +00:00
David Lawrence
a91a5c2322 New CPP macros ISC_DIR_NAMEMAX and ISC_DIR_PATHMAX; win32 are based
on _MAX_FNAME and _MAX_PATH, unix are "reasonable values" (256 and 1024)
because unix is inconsistent about this.
1999-10-06 19:36:13 +00:00
David Lawrence
b21507bc8d makefiles and cvsignores for the win32 subtree 1999-10-06 19:32:37 +00:00
David Lawrence
7182ad9121 removed the mutex method 1999-10-06 19:25:41 +00:00
David Lawrence
af97e49f21 + commandline.c
+ WIN32OBJS
1999-10-06 19:23:36 +00:00
David Lawrence
d209a67373 BSD short option getopt, name mangled for the ISC. 1999-10-06 19:23:05 +00:00
Bob Halley
66100d11b5 define socket types in types.h 1999-10-05 21:22:02 +00:00
Bob Halley
51917258db build system cleanups; improved include handling 1999-10-05 19:52:30 +00:00
Bob Halley
10ba7f6f56 lint 1999-10-05 19:50:53 +00:00
James Brister
0ef59eaa9f Let client turn off the INSIST that all memory is freed (parser needs this
due to yacc).
1999-10-02 21:20:03 +00:00
David Lawrence
a252c2771f include isc/net.h, do not include sys/socket.h, netinet/in.h or arpa/inet.h,
and/or use type in_port_t instead of unsigned int for ports
1999-10-02 02:54:16 +00:00
David Lawrence
8671e8306b configure ISC_NET_NEEDPORTT if "typedef isc_uint16_t in_port_t" is needed 1999-10-01 02:11:34 +00:00
David Lawrence
0307846c71 AIX does not define NAME_MAX or PATH_MAX by default. It would either
need a special cpp macro like _XPG4 defined or the name buffer would
need to be dynamically allocated based on pathconf(), which is
undesirably complicated.  Instead 255 is used as a suitably sized NAME_MAX
and 1024 in place of PATH_MAX.
1999-10-01 01:12:04 +00:00