Commit graph

80 commits

Author SHA1 Message Date
Michael Graff
efe2f579ba add LWRES_CONTEXT_SERVERMODE 2000-06-15 23:48:11 +00:00
Andreas Gustafsson
7cbfebb762 probe for ipv6 before using it 2000-06-13 00:39:35 +00:00
David Lawrence
7a932015dc include stdlib.h for exit() 2000-06-08 20:36:58 +00:00
Andreas Gustafsson
35b86d647d accidentally removed the wrong source line in previous change 2000-06-08 17:40:55 +00:00
Andreas Gustafsson
d5ffdc427e make log messages conform to current coding standards 2000-06-08 17:38:06 +00:00
Andreas Gustafsson
18859007f4 make log messages conform to current coding standards 2000-06-08 17:36:52 +00:00
Andreas Gustafsson
a0d7622028 removed debugging printfs and memory statistics 2000-06-08 16:54:36 +00:00
Andreas Gustafsson
13d6df2c6f detach from dispatches, destroy dispatch manager 2000-06-08 16:54:03 +00:00
Andreas Gustafsson
9fde61b058 event sender field was NULL 2000-06-07 19:35:17 +00:00
Andreas Gustafsson
3eb48635d7 when binding to the lwres protocol port fails, log an error message
and exit instead of catching an assertion
2000-06-07 19:27:17 +00:00
Andreas Gustafsson
7e3d72d624 RT #130: explicitly create dispatches for the lwresd resolver 2000-06-07 19:07:53 +00:00
Andreas Gustafsson
701866622e commented 2000-06-07 19:00:12 +00:00
David Lawrence
e3f5561ec9 DP()'s format argument prototyped as const.
A pointers-to-function should not be cast to a pointer-to-object.
2000-06-01 18:53:53 +00:00
Michael Graff
d98c74e2ec set the default destination port in the view, and use it when returning addresses from the adb. 2000-06-01 00:30:58 +00:00
David Lawrence
8a01e235df this program does not use anything from libomapi 2000-05-24 22:19:41 +00:00
David Lawrence
ddd5fe8756 cast void * pointer to dns_byaddr_t * when comparing, to shut up irix compiler 2000-05-24 03:17:51 +00:00
Michael Graff
8648b6190d correct args to a function 2000-05-10 23:52:42 +00:00
Michael Graff
ca9739800f implement dns_dispatchmgr_t, replacing dns_dispatchlist_t. Use it throughout the library/server. 2000-05-10 21:34:50 +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
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
Michael Graff
c90f5e8d1e Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext(). 2000-05-03 21:11:40 +00:00
Michael Graff
58ff88cca7 use 'flags' rather than 'attributes' and rename pkt->flags to pkt->pktflags 2000-05-02 18:46:44 +00:00
David Lawrence
5117e028b6 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:35:37 +00:00
Andreas Gustafsson
82ca33427b declare arguments as UNUSED() when used in assertions only 2000-04-28 01:24:18 +00:00
David Lawrence
6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Michael Graff
08a768e82a Infrastructure to allow use of alternate openssl libraries. Default is still to use our internal, now renamed, version. 2000-04-20 18:27:43 +00:00
Michael Graff
e44487bfc2 convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:22:44 +00:00
Bob Halley
738b9aa3de isc_task_create() API change 2000-04-12 01:41:21 +00:00
David Lawrence
b295930144 bin/lwresd/client.c needs <string.h> for memset() prototype 2000-04-06 16:15:28 +00:00
Andreas Gustafsson
f4d3780cb6 moved several #includes from bin/lwresd/client.h to .c files 2000-04-04 20:13:36 +00:00
Michael Graff
915723e400 Copy addresses out, rather than keeping pointers to them from a buffer. This
simplifies code at the expense of copying more.  It is, however, the
easiest way to get sortlist working correctly.  ipv6 addresses now sort
as well.
2000-03-12 01:58:41 +00:00
Michael Graff
d736db6dc5 lwres get-addr-by-name returns a linked list, not an array, of names. This
was needed to make adding the sortlist code, which will be checked in
in a few minutes.
2000-03-10 23:11:36 +00:00
Michael Graff
2311073ce0 handle resolv.conf 'search' line, client side. Also, fix a bug in lwresd that would return success, but no addresses, for NXDOMAIN or NXRRSET. 2000-03-10 22:11:14 +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
Michael Graff
7eecba1d43 use forwarders from resolv.conf 2000-02-18 03:53:56 +00:00
Michael Graff
d85ad40f97 remove hex dump of packets sent 2000-02-18 03:53:35 +00:00
Michael Graff
1fc244c82f parse /etc/resolv.conf, but don't yet do much about it. 2000-02-18 01:37:38 +00:00
Michael Graff
9094466faf return 'lame' servers, too. This is after all why I put that flag there... 2000-02-16 17:21:41 +00:00
Michael Graff
5be443d94b implement a 10 minute bitstring-reverse-query avoidance if we tried once and
it failed with ISC_R_FAILURE, DNS_R_SERVFAIL, or DNS_R_FORMERR.
This makes it so we don't try the bitstring lookup when it will most
likely fail.
2000-02-16 01:51:17 +00:00
Michael Graff
543da41dbb fix a memory leak I just created. 2000-02-14 22:54:03 +00:00
Michael Graff
9a3210af1b implement noop, fix memory leaks 2000-02-14 21:56:08 +00:00
Michael Graff
cf53d35e3d kill return; at end of function 2000-02-14 21:21:03 +00:00
Michael Graff
1f44824581 use bitstrings first, then nibble mode 2000-02-14 21:11:52 +00:00
Andreas Gustafsson
3fe86e8ae7 include ${CFLAGS} on linker command line so that
"configure CFLAGS=-pg && make" does the right thing
2000-02-14 18:46:16 +00:00
Michael Graff
b44c3c7399 try nibble mode first, and if that fails, try bitstring mode. This should be
reversed at some point, but not until more people use bitstrings
2000-02-04 01:14:17 +00:00
Bob Halley
ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Michael Graff
736a33e263 don't free the event twice. 2000-02-03 20:50:06 +00:00
Michael Graff
0194d7c3b1 Fix a logic flow bug. There be ohters, which I will fix asap 2000-02-03 18:46:38 +00:00
Mark Andrews
9a79198176 lint 2000-02-02 01:09:56 +00:00
Bob Halley
0a7f99e6d6 lint 2000-02-01 23:33:39 +00:00