Mark Andrews
cbdd3a318b
update lib copyrights
2004-03-06 08:15:48 +00:00
Mark Andrews
330673ab12
sync with HEAD
2003-10-10 06:34:10 +00:00
Mark Andrews
9052beb238
pullup
...
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2003-08-11 05:28:23 +00:00
Mark Andrews
c1df871a18
silence compiler warnings (HPUX/11i)
2003-07-23 06:57:59 +00:00
Andreas Gustafsson
001d1ceec6
coding style
2001-07-19 16:59:32 +00:00
Mark Andrews
3489d64bde
"or equals" rather than "not equals"
2001-07-19 04:57:46 +00:00
Danny Mayer
7181165333
Add support for win32
2001-07-19 02:50:12 +00:00
Andreas Gustafsson
1858039a0e
spacing
2001-07-10 21:13:07 +00:00
Andreas Gustafsson
34729dbcb3
split lwres/net.h into separate Unix and Win32 version to facilitate
...
porting; rely on that header for networking definitions rather than redundantly
including OS-dependent headers from the various lwres .c files
2001-07-10 18:26:12 +00:00
Brian Wellington
5733d25b06
921. [bug] lwres returned an incorrect error code if it received
...
a truncated message.
920. [func] Increase the lwres receive buffer size to 16K.
[RT #1451 ]
2001-07-02 20:46:31 +00:00
Brian Wellington
90c845947a
#include <time.h>
2001-06-07 00:45:35 +00:00
Mark Andrews
363cb30a83
703. [port] sys/select.h is needed on older platforms. [RT #695 ]
2001-01-23 03:07:18 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Andreas Gustafsson
5b34d8267e
revision 1.30 broke the default lwres address of 127.0.0.1
...
by incorrectly assuming that lwres_addr_parse() parses an address in string
form (it actually parses an address in lwres wire form)
2000-10-17 20:09:19 +00:00
Brian Wellington
3c0a818977
IPv6 portability
2000-10-12 21:39:23 +00:00
Brian Wellington
8f80322fb5
Support for lwresd on addresses other than 127.0.0.1.
2000-10-05 22:27:54 +00:00
Andreas Gustafsson
7bee275ebe
added lwres_context_send(), lwres_socket_recv(),
...
lwres_context_getsocket() to support clients doing async lookups
2000-08-22 16:20:21 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
Brian Wellington
68aa880dd5
remove unnecessary calls to fcntl().
2000-07-07 19:10:00 +00:00
Brian Wellington
1d1d2fa57a
Seed a (not really) random value with time(NULL), not the pointer value.
2000-06-26 20:30:37 +00:00
David Lawrence
9c3531d72a
add RCS id string
2000-06-22 22:00:42 +00:00
Brian Wellington
412e5c6211
Add lwres_udp_port, so that test programs can use a different port.
2000-06-19 21:56:48 +00:00
Michael Graff
efe2f579ba
add LWRES_CONTEXT_SERVERMODE
2000-06-15 23:48:11 +00:00
David Lawrence
03a0fca86d
define and use LWRES_SOCKADDR_LEN_T for recvfrom() and stop compiler warnings
...
by casting the sixth parameter of recvfrom() to void *, as with
lib/isc/unix/socket.c.
2000-05-24 05:22:36 +00:00
David Lawrence
74cf566d92
"context.c", line 195: remark(1506): implicit conversion from "unsigned int"
...
to "long": rounding, sign extension, or loss of accuracy may result
Fixed by ensuring unsigned long ctx->timeout does not overflow the signed
long timeout.tv_sec.
2000-05-14 03:20:17 +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
David Lawrence
28beeb7067
fromlen changed from int to unsigned int
2000-05-08 17:57:01 +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
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
01933e9302
start changing from 'int' returns to 'lwres_result_t'
2000-02-23 01:46:34 +00:00
Michael Graff
7a166c5c61
completely decouple the lwres library from libisc. Bad michael for using isc/int.h and isc/lang.h, bad Mark for adding isc/tring.h, isc/net.h, and a few others.
2000-02-03 01:28:52 +00:00
Michael Graff
a4987cc031
pull the timeout from the context, that's what it is there for.
2000-02-02 23:22:56 +00:00
Michael Graff
d257033612
Thanks to Mark's fix, select() actually wasn't broken, I was. Use NULL for write/except fds again
2000-02-02 00:34:46 +00:00
Mark Andrews
f738cdef3d
#include <sys/time.h>
...
Use LWRES_DEFAULT_TIMEOUT instead of LWRES_R_TIMEOUT to set select timout.
2000-02-01 06:46:47 +00:00
Michael Graff
b91bbaf50c
implement timeouts
2000-02-01 02:59:40 +00:00
Michael Graff
1a70537f01
fix a bug introduced with today's changes.
2000-01-25 02:16:00 +00:00
Michael Graff
8cd870e3f5
return LWRES_R_* result codes (all are negative values, otehr than success, which is 0)
2000-01-24 21:57:07 +00:00
Andreas Gustafsson
f2edc636b0
use sendto() instead of send() because the latter is
...
broken on OSF1
2000-01-24 20:19:13 +00:00
Michael Graff
6448ffb2b9
use unsigned char, not void * in our buffers
2000-01-20 00:11:52 +00:00
Mark Andrews
369083db00
Link get*.c into build
...
INADDR_LOOPBACK is not defined for all OSs
2000-01-18 05:37:19 +00:00
Michael Graff
c1cfd8ef05
close the socket on context destroy
2000-01-18 01:45:09 +00:00
Michael Graff
7dbf5a0b64
implement actual network I/O for lw resolver. All I/O is run through the
...
context, where the sockets are cached. This means one context per thread.
2000-01-18 01:43:12 +00:00
Michael Graff
e4f074a2c2
checkpoint
2000-01-14 21:55:44 +00:00
Michael Graff
64bed6c543
Checkpoint yesterday's work
2000-01-14 17:28:54 +00:00