Commit Graph
536 Commits
Author SHA1 Message Date
Andreas Gustafsson add0155318 added isc_ratelimiter_t, a helper object that lets you
dispatch events to a task with a guaranteed minimum interval
1999-11-17 01:29:44 +00:00
Bob Halley f924db5119 1000 nanoseconds in a microsecond, not 10000 1999-11-04 21:40:49 +00:00
Mark Andrews 19c5c23ef6 fix compiler warning: While loop condition is always non-zero.
nxt_30.c enforce type range to 1..127. DNS_R_RANGE otherwise.
1999-11-03 01:07:02 +00:00
Bob Halley 89c250649e initialize uninitialized variable 1999-11-01 22:57:30 +00:00
Bob Halley 176323fd5e set msg_namelen to the right size 1999-11-01 22:51:19 +00:00
Mark Andrews a81da453ff remove compiler warnings 1999-11-01 04:45:19 +00:00
Bob Halley 431fb211db include unistd.h to get prototype for chdir 1999-10-31 19:29:48 +00:00
Bob Halley 8d43223900 isc_dir_open api change 1999-10-31 19:09:23 +00:00
Bob Halley 0e1bef59f0 add isc_dir_chdir; change argument order of isc_dir_open 1999-10-31 19:08:17 +00:00
Bob Halley 4a73cf8ee0 update copyrights 1999-10-31 18:42:01 +00:00
Bob Halley a5cda71d84 fix bad return value 1999-10-31 00:06:38 +00:00
Bob Halley 8393bb7925 eliminate type warning 1999-10-31 00:01:47 +00:00
Bob Halley eb2c85b103 ISC_NET_HAVEIPV6 -> ISC_PLATFORM_HAVEIPV6 1999-10-30 03:53:19 +00:00
Bob Halley 89acdfd744 add comment documenting needed conversion 1999-10-30 03:52:58 +00:00
Andreas Gustafsson 297d85a324 silenced compiler warning 1999-10-30 01:37:55 +00:00
Andreas Gustafsson 74da83876c don't do pointer arithmetic on null pointers 1999-10-30 01:35:18 +00:00
Andreas Gustafsson 9ed7290e07 new isc_sockaddr_totext() had a comparison backwards 1999-10-30 01:00:05 +00:00
Andreas Gustafsson 91fbf6ef97 the new isc_sockaddr_totext() now null terminates the text;
the terminating null is not part of the buffer's used region
1999-10-29 23:53:26 +00:00
Andreas Gustafsson e5b0c46fbb added isc_buffer_putmem() 1999-10-29 23:50:55 +00:00
Andreas Gustafsson 4ed0c326e6 isc_sockaddr_totext() now writes to an isc_buf_t, not
a dynamically allocated string
1999-10-29 23:46:27 +00:00
Mark Andrews 90adbb5f1c Remove various "enumerated type mixed with another type" warnings.
More still to be removed.
#define ISC_TF(x) to covert logical result to isc_boolean_t
1999-10-29 12:56:58 +00:00
Mark Andrews f859f35d85 Reverse previous commit. 1999-10-29 07:18:53 +00:00
Mark Andrews fe37278859 in6_addr.s6_addr is *always* an array. 1999-10-29 06:36:05 +00:00
Mark Andrews 30020941e4 ISC_TRUE not 1 1999-10-29 06:07:17 +00:00
Mark Andrews 946092177d fix arguements to ctype macros. 1999-10-29 04:25:11 +00:00
Andreas Gustafsson cdd5e37820 isc_netaddr_t now has a "family" field 1999-10-28 23:09:01 +00:00
Andreas Gustafsson 0e42fb6588 ISC_NET_HAVESALEN -> ISC_PLATFORM_HAVESALEN 1999-10-28 01:36:36 +00:00
Bob Halley b622f2b07b ISC_MEM_FILL was corrupting memory when the block being allocated or freed
was bigger than the memory context's max size.

Force alignment to 8 bytes, since some otherwise 32-bit platforms have a 64
bit "long long".
1999-10-27 20:55:21 +00:00
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