Commit graph

127 commits

Author SHA1 Message Date
Michael Graff
99dd8505ed Bring up to spec. Patches from pr 134, 135 2000-06-15 18:28:11 +00:00
David Lawrence
ed71ea51c6 Silence a few more warnings:
+ missing sigwait prototype on BSD/OS 4.0/4.0.1
 + PTHREAD_ONCE_INIT unbraced initializer warnings on Solaris 2.8.
 + IN6ADDR_ANY_INIT unbraced initializer warnings on BSD/OS 4.*, Linux and
   Solaris 2.8.
2000-06-06 16:06:50 +00:00
David Lawrence
a5e5d67faa gai_strerror is spec'd by RFC 2133 as char *, with no const qualifier.
I'll have to see about how this can be handled more suitably by the code,
but for now, the return value has been revered to not being const qualified.
2000-06-01 18:29:27 +00:00
David Lawrence
8612a0d515 gai_strerror returns const char * now; this change was (erroneously) only made
to netdb.h in my local tree, not to the file that generates it ...
2000-06-01 18:10:37 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence
e6ce1a0ea9 use _PLATFORM_NEEDINETIN6H 2000-05-18 22:43:48 +00:00
David Lawrence
e52750239e Changed the CPP symbol it uses from *_HAVENETINET6* to *_NEEDNETINET6*
to better clarify what is going on with regard to the symbol.
2000-05-13 18:18:08 +00:00
Mark Andrews
17d0495c33 160. [cleanup] getnet*() are not going to be implemented at this
stage.
2000-05-09 02:21:58 +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
James Brister
edcd66a7dd Fixed typo. 2000-05-02 19:43:34 +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
Michael Graff
46fb173b20 add 'attributes' flags to lwres packets 2000-05-02 18:18:45 +00:00
Michael Graff
98e8a46972 comments from code review 2000-04-26 21:54:50 +00:00
Michael Graff
a02ad3bc33 bump to more aliases and more addresses 2000-04-25 22:46:09 +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
dda4bfe649 update copyrights 2000-03-23 19:52:19 +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
a193a7a1f0 s/int/lwres_result_t/ 2000-02-24 00:12:40 +00:00
Michael Graff
01933e9302 start changing from 'int' returns to 'lwres_result_t' 2000-02-23 01:46:34 +00:00
Michael Graff
9ca3879f71 formatting nits, and make 'search' work. 2000-02-18 01:09:36 +00:00
James Brister
4838e5f7c2 various declarations for resolv.conf parser. 2000-02-16 17:42:16 +00:00
Bob Halley
a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Bob Halley
0dc24b49b8 ensure we have size_t defined. 2000-02-07 22:35:31 +00:00
Bob Halley
35c842e05d deal with lwres portability issues 2000-02-04 06:04:16 +00:00
Bob Halley
b25b18a41e add 2000-02-04 06:02:06 +00:00
Andreas Gustafsson
b008da894e suppress compiler warnings about redefining macros on OSF/1 2000-02-04 01:20:56 +00:00
Bob Halley
0fffa9dcca update copyright 2000-02-03 23:17:52 +00:00
Mark Andrews
af9cfbc643 move reference implementations into lwres_ namespace. 2000-02-03 21:54:10 +00:00
Mark Andrews
c2a716690f typo 2000-02-03 02:21:18 +00:00
Mark Andrews
89147fdde8 complete isc/lang.h -> lwres/lang.h transition. 2000-02-03 02:17:07 +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
b91bbaf50c implement timeouts 2000-02-01 02:59:40 +00:00
Michael Graff
573be0bc6d misc parsing and rendering nits 2000-01-28 00:33:14 +00:00
Mark Andrews
ea02307209 aix/solaris checkpoint 2000-01-27 13:04:15 +00:00
Mark Andrews
fb878b9043 @include <isc/net.h> 2000-01-27 12:19:58 +00:00
Mark Andrews
76942b0fed checkpoint 2000-01-27 08:08:03 +00:00
Mark Andrews
4d4c128237 add appropriate const's 2000-01-26 23:47:00 +00:00
Michael Graff
0974e30e20 limit to 8 aliases, not 16 2000-01-26 01:16:24 +00:00
Michael Graff
1a70537f01 fix a bug introduced with today's changes. 2000-01-25 02:16:00 +00:00
Michael Graff
a7512aefd8 Set a somewhat arbitrary limit on the number of host aliases we'll return. 2000-01-25 01:50:12 +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
Mark Andrews
f1890a6c56 int endhostent support 2000-01-24 12:10:49 +00:00
Mark Andrews
8bddb73c66 Add support for differing gethostbyaddr(), sethostent() and endhostent(). 2000-01-24 01:16:43 +00:00
Mark Andrews
ebd4c01b59 seperate test for AI_NUMERICHOST 2000-01-21 05:34:53 +00:00
Mark Andrews
eda879bf41 Check for AI_NUMERICHOST seperately. 2000-01-21 02:08:24 +00:00
Michael Graff
88ed7381f1 checkpoint; return lengths of each name as well as the name itself. 2000-01-20 23:58:27 +00:00
Michael Graff
6448ffb2b9 use unsigned char, not void * in our buffers 2000-01-20 00:11:52 +00:00
Mark Andrews
a32d332e52 Remove AI_MASK 2000-01-18 23:38:19 +00:00
Bob Halley
1b18bdae7d cleanup netdb.h 2000-01-18 21:13:29 +00:00
Bob Halley
0b79f0bbb2 add netdb.h 2000-01-18 21:11:40 +00:00
Andreas Gustafsson
1a087ddc8f #endif was misspelled as #define 2000-01-18 17:28:25 +00:00
Mark Andrews
b133182edd Initial code 2000-01-18 05:34:22 +00:00
Michael Graff
0d9f5384a1 Implement lwres_getnamebyaddr() 2000-01-18 01:54:42 +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
3b248999e6 parsing/rendering completed. 2000-01-17 23:11:49 +00:00
Michael Graff
c05e003dce checkpoint 2000-01-17 21:38:54 +00:00
Michael Graff
e4f074a2c2 checkpoint 2000-01-14 21:55:44 +00:00
Michael Graff
057393025c incldue lwpacket, we need it 2000-01-14 20:24:02 +00:00
Michael Graff
658db10162 noop packets are now fully functional. 2000-01-14 18:43:30 +00:00
Michael Graff
64bed6c543 Checkpoint yesterday's work 2000-01-14 17:28:54 +00:00
Michael Graff
43236eb0e1 snapshot 2000-01-13 01:08:05 +00:00
Michael Graff
d2955f8cbf contextfree -> freecontext 2000-01-12 02:09:01 +00:00
Michael Graff
495591bf3a update copyrights on newly added lwres files 2000-01-12 02:06:01 +00:00
Michael Graff
43b81d7151 add more header files 2000-01-12 01:57:29 +00:00
Michael Graff
cfb4e3459f add function prototypes for noop 2000-01-12 01:56:34 +00:00
Michael Graff
01086ae943 change several unsigned int to isc_uint32_t or isc_uint16_t, and start on the simpliest of all services, noop (aka ping) 2000-01-12 01:50:19 +00:00
Michael Graff
42a2ad71a1 add recvlength 2000-01-12 00:33:38 +00:00
Michael Graff
123d63ebb2 Some changes Bob suggested, including a lwres_context_t that is opaque, and is used to set options. 2000-01-12 00:19:04 +00:00
Michael Graff
3231b400f3 build two files, now 2000-01-11 23:15:11 +00:00
Michael Graff
57cd0c8166 structure and function definitions for lwres calls 2000-01-11 23:10:15 +00:00
Michael Graff
f9fdb43a91 add lwres_buffer_t 2000-01-11 23:09:56 +00:00
Michael Graff
1590e3d9c6 s/isc_/lwres_/ in many places, and clean up. 2000-01-11 23:09:28 +00:00
Michael Graff
3ab5f06566 update copyrights 2000-01-11 21:48:36 +00:00
Michael Graff
071817dc76 add .cvsignore's 2000-01-11 21:43:10 +00:00
Michael Graff
818a7a5d46 add Makefile.in's 2000-01-11 21:41:45 +00:00
Michael Graff
43ea6a67a2 check in preliminary lw packet format. The names may change, but I don't
want to lose this while on vacation.
1999-12-24 01:11:51 +00:00