Commit graph

41 commits

Author SHA1 Message Date
Danny Mayer
5236050c0f Add support for win32 2001-07-18 02:37:15 +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
Danny Mayer
f47c41b5fe htons expects an unsigned short for the argument 2001-06-28 06:02:18 +00:00
Brian Wellington
91425b5e72 730. [bug] lwres_getaddrinfo() returns the correct result when
it fails to contact a server. [RT #768]
2001-02-08 00:31:21 +00:00
Brian Wellington
d378ec4758 The return value of lwres_net_pton was checked for != 0 in a few places,
not == 1.
2001-01-31 22:06:33 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
fa5a42fbad 670. [bug] The lwres replacements for getaddrinfo and
getipnodebyname didn't properly check for the
                        existence of the sockaddr sa_len field.
2001-01-09 01:26:43 +00:00
David Lawrence
d7f98c32d3 line > 79 columns 2000-12-06 00:35:44 +00:00
Brian Wellington
8f80322fb5 Support for lwresd on addresses other than 127.0.0.1. 2000-10-05 22:27:54 +00:00
Brian Wellington
12688cc9fc #include <resolv.h> is not needed, and causes problems on AIX. 2000-09-19 21:21:59 +00:00
David Lawrence
5896a3af18 In lwres_getaddrinfo() when checking for numeric addresses, the ntmp char array
was only initialized and used when LWRES_HAVE_SIN6_SCOPE_ID was defined,
but was declared and used outside a protective #ifdef.  I moved the
declaration and one use of it into #ifdef protection.
2000-08-02 16:08:41 +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
Brian Wellington
0308460880 Some of the lwres functions weren't calling lwres_conf_parse. 2000-07-07 19:43:10 +00:00
Andreas Gustafsson
855bda3de3 new joint ISC/BSDI copyright message as requested by
Paul Borman <prb@bsdi.com>
2000-07-03 17:44:22 +00:00
Brian Wellington
c614882bd8 typo 2000-06-27 00:41:13 +00:00
Brian Wellington
50719689ef coding style 2000-06-27 00:24:12 +00:00
Andreas Gustafsson
aa57fcf820 two more unchecked calls to strdup() found by Brian 2000-06-26 22:50:20 +00:00
Andreas Gustafsson
f264d3cb2c sense of strcmp() wrong; missing test of strdup() return value
(find by Brian by inspection)
2000-06-26 22:30:32 +00:00
David Lawrence
b602710169 update_copyrights 2000-06-21 22:20:18 +00:00
Michael Graff
efe2f579ba add LWRES_CONTEXT_SERVERMODE 2000-06-15 23:48:11 +00:00
Michael Graff
8313838954 Conditionalize setting of struct sockaddr_in6's sin6_scope_id member.
Some machines have it, older ipv6 flavors do not.
2000-06-15 21:52:21 +00:00
Michael Graff
2193d51910 latest patches from pr 135 2000-06-15 18:49:54 +00:00
Michael Graff
99dd8505ed Bring up to spec. Patches from pr 134, 135 2000-06-15 18:28:11 +00:00
David Lawrence
ca81c3971c Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

Minor other ISC style cleanups.
2000-06-01 17:39:26 +00:00
David Lawrence
80056496f0 line 307: remark(1692): prototyped function redeclared without prototype.
Fixed.
2000-05-14 03:26:31 +00:00
David Lawrence
f2fdfe7c42 Silence "end-of-loop condition not reached" warnings from Solaris compiler 2000-05-10 03:33:57 +00:00
David Lawrence
6b7257f756 include config.h 2000-04-28 02:08:20 +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
Bob Halley
5b64759e40 deal with strsep portability. grr. 2000-02-04 06:17:22 +00:00
Bob Halley
35c842e05d deal with lwres portability issues 2000-02-04 06:04:16 +00:00
Mark Andrews
af9cfbc643 move reference implementations into lwres_ namespace. 2000-02-03 21:54:10 +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
Mark Andrews
c69eec29aa lwres_getaddrsbyname called with v4 flag when v6 required. 2000-02-01 06:55:36 +00:00
Mark Andrews
fccbfc6504 complete prototype 2000-01-28 01:56:36 +00:00
Mark Andrews
af5315fd93 <string.h> -> <isc/sting.h> for strsep(). 2000-01-21 02:03:16 +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
Mark Andrews
a32d332e52 Remove AI_MASK 2000-01-18 23:38:19 +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
Mark Andrews
1a03b5e685 checkpoint. 2000-01-17 03:16:25 +00:00
Mark Andrews
5d1293f3d3 gethostbyname2() -> lwres_getaddrsbyname() 2000-01-14 05:15:52 +00:00
Mark Andrews
7d2b275f7e checkpoint 2000-01-14 03:01:00 +00:00